Greetings,
I created a new application in VS Code using the NCS based and loaded the Radio Test Sample.
I have created/loaded and run multiple different nrf & zephyr samples without any such issue. The procedure on how to create/load a sample is clear as explained in Nordic's Fundamentals Course (using the "Create a new application" in the nRF Connect extension's 'Welcome' field for VS Code). I have done this multiple times with multiple samples with no issues.
When I tried building it, using the nRF 52840 DK Build configuration ( which specifies the DK as supported ) the following error came up.
* Executing task: nRF Connect: Generate config nrf52840dk_nrf52840 for c:\ncs\radio_test Building radio_test west build --build-dir c:\ncs\radio_test\build c:\ncs\radio_test --pristine --board nrf52840dk_nrf52840 -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DBOARD_ROOT:STRING="c:/ncs/feel_v2_fw/feel_v2_fw;c:/ncs/feel_v2_fw/feel_v2_fw_dfu;c:/ncs/radio_test" -- west build: generating a build system Loading Zephyr default modules (Zephyr base). -- Application: C:/ncs/radio_test -- Found Python3: C:/ncs/toolchains/v2.1.0/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter -- Cache files will be written to: C:/ncs/v2.1.0/zephyr/.cache -- Zephyr version: 3.1.99 (C:/ncs/v2.1.0/zephyr) -- Found west (found suitable version "0.14.0", minimum required is "0.7.1") -- Board: nrf52840dk_nrf52840 -- Found host-tools: zephyr 0.14.1 (C:/ncs/toolchains/v2.1.0/opt/zephyr-sdk) -- Found dtc: C:/ncs/toolchains/v2.1.0/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") -- Found toolchain: zephyr 0.14.1 (C:/ncs/toolchains/v2.1.0/opt/zephyr-sdk) -- Found BOARD.dts: C:/ncs/v2.1.0/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts -- Generated zephyr.dts: C:/ncs/radio_test/build/zephyr/zephyr.dts -- Generated devicetree_unfixed.h: C:/ncs/radio_test/build/zephyr/include/generated/devicetree_unfixed.h -- Generated device_extern.h: C:/ncs/radio_test/build/zephyr/include/generated/device_extern.h -- Including generated dts.cmake file: C:/ncs/radio_test/build/zephyr/dts.cmake Parsing C:/ncs/radio_test/Kconfig C:/ncs/v2.1.0/zephyr/scripts/kconfig/kconfig.py: C:/ncs/radio_test/Kconfig:10: 'C:/ncs/radio_test\../../bluetooth/direct_test_mode/src/fem/Kconfig' not found (in 'rsource "../../bluetooth/direct_test_mode/src/fem/Kconfig"'). Check that environment variables are set correctly (e.g. $srctree, which is set to 'C:/ncs/v2.1.0/zephyr'). Also note that unset environment variables expand to the empty string. CMake Error at C:/ncs/v2.1.0/zephyr/cmake/modules/kconfig.cmake:293 (message): command failed with return code: 1 Call Stack (most recent call first): C:/ncs/v2.1.0/zephyr/cmake/modules/zephyr_default.cmake:121 (include) C:/ncs/v2.1.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include) C:/ncs/v2.1.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate) CMakeLists.txt:9 (find_package) -- Configuring incomplete, errors occurred! FATAL ERROR: command exited with status 1: 'c:\ncs\toolchains\v2.1.0\opt\bin\cmake.EXE' '-DWEST_PYTHON=c:\ncs\toolchains\v2.1.0\opt\bin\python.exe' '-Bc:\ncs\radio_test\build' -GNinja -DBOARD=nrf52840dk_nrf52840 -DNCS_TOOLCHAIN_VERSION:STRING=NONE '-DBOARD_ROOT:STRING=c:/ncs/feel_v2_fw/feel_v2_fw;c:/ncs/feel_v2_fw/feel_v2_fw_dfu;c:/ncs/radio_test' '-Sc:\ncs\radio_test'
I tried creating/loading the sample in a different directory without success.
Could you please suggest or provide some insight on what could be causing this and how to fix it?
Thank you very much for your time!
Best regards,
Stavros