I am a beginner on nRF trying to build my first application following this tutorial nRF Connect for VS Code tutorials - YouTube with my board - nRF52 DK with nRF52832. I followed the tutorial step by step until I got errors when building the configuration.
There are 1 fatal error and 2 warnings popped up which I could not find a way to solve it.
Please help to explain why they occur and how to solve them, and is there any way to prevent it happens again.
Thanks a lot.
Fatal error:
"command failed with return code: 1" in "kconfig.cmake"
Warning 1:
"the hex symbol NRF_MODEM_LIB_SHMEM_CTRL_SIZE (defined at C:/Nordic/v2.2.0/nrf\lib\nrf_modem_lib\Kconfig.modemlib:158) has a non-hex default NRF_MODEM_SHMEM_CTRL_SIZE (undefined)" in "Kconfig.modemlib"
Warning 2:
"the default selection OPENTHREAD_LIBRARY (undefined) of <choice OPENTHREAD_IMPLEMENTATION> (defined at C:/Nordic/v2.2.0/nrf\subsys/net/openthread/Kconfig.defconfig:29, subsys/net/l2/openthread/Kconfig:36) is not contained in the choice" in "Kconfig.defconfig"
------------------------------------------------------------------------------------
Raw Terminal output:
* Executing task: nRF Connect: Generate config nrf52dk_nrf52832 for c:\Nordic\myApp\HelloWorld Building HelloWorld west build --build-dir c:\Nordic\myApp\HelloWorld\build c:\Nordic\myApp\HelloWorld --pristine --board nrf52dk_nrf52832 -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y -DBOARD_ROOT:STRING="c:/Nordic/myApp/HelloWorld" -- west build: generating a build system Loading Zephyr default modules (Zephyr base). -- Application: C:/Nordic/myApp/HelloWorld -- Found Python3: C:/Nordic/toolchains/v2.2.0/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter -- Cache files will be written to: C:/Nordic/v2.2.0/zephyr/.cache -- Zephyr version: 3.2.99 (C:/Nordic/v2.2.0/zephyr) -- Found west (found suitable version "0.14.0", minimum required is "0.7.1") -- Board: nrf52dk_nrf52832 -- Found host-tools: zephyr 0.15.1 (C:/Nordic/toolchains/v2.2.0/opt/zephyr-sdk) -- Found toolchain: zephyr 0.15.1 (C:/Nordic/toolchains/v2.2.0/opt/zephyr-sdk) -- Found Dtc: C:/Nordic/toolchains/v2.2.0/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") -- Found BOARD.dts: C:/Nordic/v2.2.0/zephyr/boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832.dts -- Generated zephyr.dts: C:/Nordic/myApp/HelloWorld/build/zephyr/zephyr.dts -- Generated devicetree_generated.h: C:/Nordic/myApp/HelloWorld/build/zephyr/include/generated/devicetree_generated.h -- Including generated dts.cmake file: C:/Nordic/myApp/HelloWorld/build/zephyr/dts.cmake warning: the hex symbol NRF_MODEM_LIB_SHMEM_CTRL_SIZE (defined at C:/Nordic/v2.2.0/nrf\lib\nrf_modem_lib\Kconfig.modemlib:158) has a non-hex default NRF_MODEM_SHMEM_CTRL_SIZE (undefined) warning: the default selection OPENTHREAD_LIBRARY (undefined) of <choice OPENTHREAD_IMPLEMENTATION> (defined at C:/Nordic/v2.2.0/nrf\subsys/net/openthread/Kconfig.defconfig:29, subsys/net/l2/openthread/Kconfig:36) is not contained in the choice error: Aborting due to Kconfig warnings Parsing C:/Nordic/v2.2.0/zephyr/Kconfig Loaded configuration 'C:/Nordic/v2.2.0/zephyr/boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832_defconfig' Merged configuration 'C:/Nordic/myApp/HelloWorld/prj.conf' Merged configuration 'C:/Nordic/myApp/HelloWorld/build/zephyr/misc/generated/extra_kconfig_options.conf' CMake Error at C:/Nordic/v2.2.0/zephyr/cmake/modules/kconfig.cmake:328 (message): command failed with return code: 1 Call Stack (most recent call first): C:/Nordic/v2.2.0/nrf/cmake/modules/kconfig.cmake:29 (include) C:/Nordic/v2.2.0/zephyr/cmake/modules/zephyr_default.cmake:108 (include) C:/Nordic/v2.2.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include) C:/Nordic/v2.2.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate) CMakeLists.txt:4 (find_package) -- Configuring incomplete, errors occurred! FATAL ERROR: command exited with status 1: 'c:\Nordic\toolchains\v2.2.0\opt\bin\cmake.EXE' '-DWEST_PYTHON=c:\Nordic\toolchains\v2.2.0\opt\bin\python.exe' '-Bc:\Nordic\myApp\HelloWorld\build' -GNinja -DBOARD=nrf52dk_nrf52832 -DNCS_TOOLCHAIN_VERSION:STRING=NONE -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y -DBOARD_ROOT:STRING=c:/Nordic/myApp/HelloWorld '-Sc:\Nordic\myApp\HelloWorld' * The terminal process terminated with exit code: 1. * Terminal will be reused by tasks, press any key to close it.