Hi,
I am working with NCS 2.2.0, nRF52840 dev kit, Visual Studio Code for nRF. I am trying to configure any of nRF Thread examples that are part of NCS 2.2.0. I am getting errors when configuring any of these examples. It looks like that there are missing in configuration some definitions for nRF symbols that are part of Thread library. I describe only CLI example, similar problems can be observed with all other examples.
I tried the CLI example in the simplest form, w/o any Kconfig fragment. The same problem can be seen if I configure a Kconfig fragment. I run project build from VSC nRF extension. Below is a log output.
* Executing task: nRF Connect: Generate config nrf52840dk_nrf52840 for d:\ncs\v2.2.0\nrf\samples\openthread\cli Building cli west build --build-dir d:\ncs\v2.2.0\nrf\samples\openthread\cli\build d:\ncs\v2.2.0\nrf\samples\openthread\cli --pristine --board nrf52840dk_nrf52840 -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y -DBOARD_ROOT:STRING="d:/ncs/v2.2.0/nrf/samples/openthread/cli;d:/ncs/v2.2.0/nrf/samples/openthread/coap_client;d:/ncs/v2.2.0/nrf/samples/openthread/coap_server;d:/ncs/v2.2.0/nrf/samples/openthread/coprocessor;d:." -- west build: generating a build system Loading Zephyr default modules (Zephyr base). -- Application: D:/ncs/v2.2.0/nrf/samples/openthread/cli -- Found Python3: D:/ncs/toolchains/v2.2.0/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter -- Cache files will be written to: D:/ncs/v2.2.0/zephyr/.cache -- Zephyr version: 3.2.99 (D:/ncs/v2.2.0/zephyr) -- Found west (found suitable version "0.14.0", minimum required is "0.7.1") -- Board: nrf52840dk_nrf52840 -- Found host-tools: zephyr 0.15.1 (D:/ncs/toolchains/v2.2.0/opt/zephyr-sdk) -- Found toolchain: zephyr 0.15.1 (D:/ncs/toolchains/v2.2.0/opt/zephyr-sdk) -- Found Dtc: D:/ncs/toolchains/v2.2.0/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") -- Found BOARD.dts: D:/ncs/v2.2.0/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts -- Found devicetree overlay: D:/ncs/v2.2.0/nrf/samples/openthread/cli/boards/nrf52840dk_nrf52840.overlay -- Generated zephyr.dts: D:/ncs/v2.2.0/nrf/samples/openthread/cli/build/zephyr/zephyr.dts -- Generated devicetree_generated.h: D:/ncs/v2.2.0/nrf/samples/openthread/cli/build/zephyr/include/generated/devicetree_generated.h -- Including generated dts.cmake file: D:/ncs/v2.2.0/nrf/samples/openthread/cli/build/zephyr/dts.cmake Parsing D:/ncs/v2.2.0/nrf/samples/openthread/cli/Kconfig Loaded configuration 'D:/ncs/v2.2.0/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig' Merged configuration 'D:/ncs/v2.2.0/nrf/samples/openthread/cli/prj.conf' Merged configuration 'D:/ncs/v2.2.0/nrf/samples/openthread/cli/build/zephyr/misc/generated/extra_kconfig_options.conf' D:/ncs/v2.2.0/nrf/samples/openthread/cli/prj.conf:14: warning: attempt to assign the value 'y' to the undefined symbol OPENTHREAD_NORDIC_LIBRARY_MASTER D:/ncs/v2.2.0/nrf/samples/openthread/cli/prj.conf:23: warning: attempt to assign the value 'n' to the undefined symbol MBEDTLS_SHA1_C error: Aborting due to Kconfig warnings CMake Error at D:/ncs/v2.2.0/zephyr/cmake/modules/kconfig.cmake:328 (message): command failed with return code: 1 Call Stack (most recent call first): D:/ncs/v2.2.0/nrf/cmake/modules/kconfig.cmake:29 (include) D:/ncs/v2.2.0/zephyr/cmake/modules/zephyr_default.cmake:108 (include) D:/ncs/v2.2.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include) D:/ncs/v2.2.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate) CMakeLists.txt:8 (find_package) -- Configuring incomplete, errors occurred! FATAL ERROR: command exited with status 1: 'd:\ncs\toolchains\v2.2.0\opt\bin\cmake.EXE' '-DWEST_PYTHON=d:\ncs\toolchains\v2.2.0\opt\bin\python.exe' '-Bd:\ncs\v2.2.0\nrf\samples\openthread\cli\build' -GNinja -DBOARD=nrf52840dk_nrf52840 -DNCS_TOOLCHAIN_VERSION:STRING=NONE -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y '-DBOARD_ROOT:STRING=d:/ncs/v2.2.0/nrf/samples/openthread/cli;d:/ncs/v2.2.0/nrf/samples/openthread/coap_client;d:/ncs/v2.2.0/nrf/samples/openthread/coap_server;d:/ncs/v2.2.0/nrf/samples/openthread/coprocessor;d:.' '-Sd:\ncs\v2.2.0\nrf\samples\openthread\cli'
I am not sure if I have some NCS configuration problem (standard installation using Toolchain manager), I missed something in project configuration or there is some problem in NCS 2.2.0. Any advise is appreciated.
Thanx.
Best regards,
peter