I have an nRF5340 and am trying to build the multicore/hello_world sample for it in VS Code with the nRF Connect extension pack. I've created a new application from the sample and have added a build configuration that looks like so:
I've selected the right target, optimized for debugging, and enabled sysbuild. I have not changed any of the sample files. When I try to build this, I get:
west build --build-dir c:/hello_world/build c:/hello_world --pristine --board nrf5340dk_nrf5340_cpuapp_ns --sysbuild -- -DNCS_TOOLCHAIN_VERSION=NONE -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y -DCONF_FILE=c:/hello_world/prj.conf -DBOARD_ROOT=c:/medical-resupply-firmware -- west build: generating a build system Loading Zephyr module(s) (Zephyr base): extensions sysbuild_extensions python west root zephyr_module boards shields sysbuild_kconfig -- Found Python3: C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe (found suitable version "3.8.2", minimum required is "3.8") found components: Interpreter -- Cache files will be written to: C:/ncs/v2.5.0/zephyr/.cache -- Found west (found suitable version "1.1.0", minimum required is "0.14.0") -- Board: nrf5340dk_nrf5340_cpuapp_ns Parsing c:/hello_world/Kconfig.sysbuild Loaded configuration 'C:/hello_world/build/empty.conf' Merged configuration 'C:/hello_world/build/empty.conf' Merged configuration 'C:/hello_world/build/empty.conf' Configuration saved to 'C:/hello_world/build/zephyr/.config' Kconfig header saved to 'C:/hello_world/build/autoconf.h' CMake Error at C:/hello_world/sysbuild.cmake:19 (add_dependencies): Cannot add target-level dependencies to non-existent target "hello_world". The add_dependencies works for top-level logical targets created by the add_executable, add_library, or add_custom_target commands. If you want to add file-level dependencies see the DEPENDS option of the add_custom_target and add_custom_command commands. Call Stack (most recent call first): cmake/modules/sysbuild_extensions.cmake:620 (include) CMakeLists.txt:32 (sysbuild_add_subdirectory) CMake Error at cmake/modules/sysbuild_extensions.cmake:648 (message): hello_world does not exist. Remember to call ExternalZephyrProject_Add(APPLICATION hello_world ...) first. Call Stack (most recent call first): C:/hello_world/sysbuild.cmake:21 (sysbuild_add_dependencies) cmake/modules/sysbuild_extensions.cmake:620 (include) CMakeLists.txt:32 (sysbuild_add_subdirectory) -- Configuring incomplete, errors occurred! See also "C:/hello_world/build/CMakeFiles/CMakeOutput.log". FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe '-Bc:\hello_world\build' -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp_ns -DNCS_TOOLCHAIN_VERSION=NONE -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y -DCONF_FILE=c:/hello_world/prj.conf '-SC:\ncs\v2.5.0\zephyr\share\sysbuild' '-DAPP_DIR:PATH=c:\hello_world'
Any thoughts on why the unmodified sample won't build?