Hello everyone and hello kindly nRF support team!!
One question again sry. I am using SDK 1.9.1 through VS Code and working on the nRF Connect SDK Tutorial - Part 2 - 3.2 light_controller example.
When I try to build and flash the self created project light_controller, described in the tutorial I get the error seen in the terminal
> Executing task: nRF Connect: Generate config nrf5340dk_nrf5340_cpuapp_ns for c:\my_projects\light_controller < Building light_controller west build --build-dir c:\my_projects\light_controller\build c:\my_projects\light_controller --pristine --board nrf5340dk_nrf5340_cpuapp_ns -- -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=On -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y -- west build: generating a build system Including boilerplate (Zephyr base): C:/nordicsemi/v1.9.1/zephyr/cmake/app/boilerplate.cmake -- Application: C:/my_projects/light_controller -- Zephyr version: 2.7.99 (C:/nordicsemi/v1.9.1/zephyr), build: v2.7.99-ncs1-1 -- Found Python3: C:/nordicsemi/v1.9.1/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter -- Found west (found suitable version "0.12.0", minimum required is "0.7.1") -- Board: nrf5340dk_nrf5340_cpuapp_ns -- Cache files will be written to: C:/nordicsemi/v1.9.1/zephyr/.cache -- Found dtc: C:/nordicsemi/v1.9.1/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") -- Found toolchain: gnuarmemb (c:/nordicsemi/v1.9.1/toolchain/opt) -- Found BOARD.dts: C:/nordicsemi/v1.9.1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_ns.dts -- Generated zephyr.dts: C:/my_projects/light_controller/build/zephyr/zephyr.dts -- Generated devicetree_unfixed.h: C:/my_projects/light_controller/build/zephyr/include/generated/devicetree_unfixed.h -- Generated device_extern.h: C:/my_projects/light_controller/build/zephyr/include/generated/device_extern.h -- Including generated dts.cmake file: C:/my_projects/light_controller/build/zephyr/dts.cmake C:\my_projects\light_controller\prj.conf:2: warning: attempt to assign the value 'y' to the undefined symbol DEPRECATED_ZEPHYR_INT_TYPES Parsing C:/nordicsemi/v1.9.1/zephyr/Kconfig Loaded configuration 'C:/nordicsemi/v1.9.1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_ns_defconfig' Merged configuration 'C:/my_projects/light_controller/prj.conf' Merged configuration 'C:/my_projects/light_controller/build/zephyr/misc/generated/extra_kconfig_options.conf' error: Aborting due to Kconfig warnings CMake Error at C:\nordicsemi\v1.9.1\zephyr\cmake\kconfig.cmake:272 (message): command failed with return code: 1 Call Stack (most recent call first): C:\nordicsemi\v1.9.1\zephyr\cmake\app\boilerplate.cmake:544 (include) C:\nordicsemi\v1.9.1\zephyr\share\zephyr-package\cmake\ZephyrConfig.cmake:24 (include) C:\nordicsemi\v1.9.1\zephyr\share\zephyr-package\cmake\ZephyrConfig.cmake:35 (include_boilerplate) c:\my_projects\light_controller\build\CMakeLists.txt:3 (find_package) -- Configuring incomplete, errors occurred! FATAL ERROR: command exited with status 1: 'c:\nordicsemi\v1.9.1\toolchain\opt\bin\cmake.EXE' '-DWEST_PYTHON=c:\nordicsemi\v1.9.1\toolchain\opt\bin\python.exe' '-Bc:\my_projects\light_controller\build' '-Sc:\my_projects\light_controller' -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp_ns -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=On -DNCS_TOOLCHAIN_VERSION:STRING=NONE -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y The terminal process terminated with exit code: 1. Terminal will be reused by tasks, press any key to close it. > Executing task: nRF Connect: Dynamic Build Task < Building light_controller west build --build-dir c:\my_projects\light_controller\build c:\my_projects\light_controller -- west build: generating a build system Including boilerplate (Zephyr base (cached)): C:/nordicsemi/v1.9.1/zephyr/cmake/app/boilerplate.cmake -- Application: C:/my_projects/light_controller -- Zephyr version: 2.7.99 (C:/nordicsemi/v1.9.1/zephyr), build: v2.7.99-ncs1-1 -- Found west (found suitable version "0.12.0", minimum required is "0.7.1") -- Board: nrf5340dk_nrf5340_cpuapp_ns -- Cache files will be written to: C:/nordicsemi/v1.9.1/zephyr/.cache -- Found dtc: C:/nordicsemi/v1.9.1/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") -- Found toolchain: gnuarmemb (c:/nordicsemi/v1.9.1/toolchain/opt) -- Found BOARD.dts: C:/nordicsemi/v1.9.1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_ns.dts -- Generated zephyr.dts: C:/my_projects/light_controller/build/zephyr/zephyr.dts -- Generated devicetree_unfixed.h: C:/my_projects/light_controller/build/zephyr/include/generated/devicetree_unfixed.h -- Generated device_extern.h: C:/my_projects/light_controller/build/zephyr/include/generated/device_extern.h -- Including generated dts.cmake file: C:/my_projects/light_controller/build/zephyr/dts.cmake C:\my_projects\light_controller\prj.conf:2: warning: attempt to assign the value 'y' to the undefined symbol DEPRECATED_ZEPHYR_INT_TYPES error: Aborting due to Kconfig warnings Parsing C:/nordicsemi/v1.9.1/zephyr/Kconfig Loaded configuration 'C:/nordicsemi/v1.9.1/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_ns_defconfig' Merged configuration 'C:/my_projects/light_controller/prj.conf' Merged configuration 'C:/my_projects/light_controller/build/zephyr/misc/generated/extra_kconfig_options.conf' CMake Error at C:\nordicsemi\v1.9.1\zephyr\cmake\kconfig.cmake:272 (message): command failed with return code: 1 Call Stack (most recent call first): C:\nordicsemi\v1.9.1\zephyr\cmake\app\boilerplate.cmake:544 (include) C:\nordicsemi\v1.9.1\zephyr\share\zephyr-package\cmake\ZephyrConfig.cmake:24 (include) C:\nordicsemi\v1.9.1\zephyr\share\zephyr-package\cmake\ZephyrConfig.cmake:40 (include_boilerplate) c:\my_projects\light_controller\build\CMakeLists.txt:3 (find_package) -- Configuring incomplete, errors occurred! FATAL ERROR: command exited with status 1: 'c:\nordicsemi\v1.9.1\toolchain\opt\bin\cmake.EXE' '-DWEST_PYTHON=c:\nordicsemi\v1.9.1\toolchain\opt\bin\python.exe' '-Bc:\my_projects\light_controller\build' '-Sc:\my_projects\light_controller' -GNinja The terminal process terminated with exit code: 1. Terminal will be reused by tasks, press any key to close it.
Sry for the bad input, is ther a better way to show the output of my error?
Okay so I tried to downgrade (SDK tag v1.4.0) my SDK like describend in the same tutorial
through command prompt git checkout v1.4.0 and west upgrade , afterwards downloaded the sdk, because the tutorial was written at the time of this SDK version
I dont know if everything is right selected in the build setup now for sdk v1.4.0 becaus there are nrf5340df or nrf5340pdk boards available.
still same errors
> Executing task: nRF Connect: Generate config nrf5340dk_nrf5340_cpuappns for c:\my_projects\light_controller < Building light_controller west build --build-dir c:\my_projects\light_controller\build c:\my_projects\light_controller --pristine --board nrf5340dk_nrf5340_cpuappns -- -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=On -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y -- west build: generating a build system Including boilerplate (Zephyr base): C:/nordicsemi/v1.4.0/zephyr/cmake/app/boilerplate.cmake -- Application: C:/my_projects/light_controller -- Zephyr version: 2.4.0 (C:/nordicsemi/v1.4.0/zephyr) -- Found Python3: C:/nordicsemi/v1.4.0/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter -- Found west (found suitable version "0.7.2", minimum required is "0.7.1") -- Board: nrf5340dk_nrf5340_cpuappns -- Cache files will be written to: C:/nordicsemi/v1.4.0/zephyr/.cache -- Found dtc: C:/nordicsemi/v1.4.0/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") -- Found toolchain: gnuarmemb (c:/nordicsemi/v1.4.0/toolchain/opt) -- Found BOARD.dts: C:/nordicsemi/v1.4.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuappns.dts -- Generated zephyr.dts: C:/my_projects/light_controller/build/zephyr/zephyr.dts -- Generated devicetree_unfixed.h: C:/my_projects/light_controller/build/zephyr/include/generated/devicetree_unfixed.h C:\my_projects\light_controller\build\zephyr\misc\generated\extra_kconfig_options.conf:3: warning: attempt to assign the value 'y' to the undefined symbol DEBUG_THREAD_INFO error: Aborting due to Kconfig warnings Parsing C:/nordicsemi/v1.4.0/zephyr/Kconfig Loaded configuration 'C:/nordicsemi/v1.4.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuappns_defconfig' Merged configuration 'C:/my_projects/light_controller/prj.conf' Merged configuration 'C:/my_projects/light_controller/build/zephyr/misc/generated/extra_kconfig_options.conf' CMake Error at C:\nordicsemi\v1.4.0\zephyr\cmake\kconfig.cmake:239 (message): command failed with return code: 1 Call Stack (most recent call first): C:\nordicsemi\v1.4.0\zephyr\cmake\app\boilerplate.cmake:591 (include) C:\nordicsemi\v1.4.0\zephyr\share\zephyr-package\cmake\ZephyrConfig.cmake:24 (include) C:\nordicsemi\v1.4.0\zephyr\share\zephyr-package\cmake\ZephyrConfig.cmake:35 (include_boilerplate) c:\my_projects\light_controller\build\CMakeLists.txt:3 (find_package) -- Configuring incomplete, errors occurred! FATAL ERROR: command exited with status 1: 'c:\nordicsemi\v1.4.0\toolchain\opt\bin\cmake.EXE' '-DWEST_PYTHON=c:\nordicsemi\v1.4.0\toolchain\opt\bin\python.exe' '-Bc:\my_projects\light_controller\build' '-Sc:\my_projects\light_controller' -GNinja -DBOARD=nrf5340dk_nrf5340_cpuappns -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=On -DNCS_TOOLCHAIN_VERSION:STRING=NONE -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y The terminal process terminated with exit code: 1. Terminal will be reused by tasks, press any key to close it. > Executing task: nRF Connect: Dynamic Build Task < Building light_controller west build --build-dir c:\my_projects\light_controller\build c:\my_projects\light_controller -- west build: generating a build system Including boilerplate (Zephyr base (cached)): C:/nordicsemi/v1.4.0/zephyr/cmake/app/boilerplate.cmake -- Application: C:/my_projects/light_controller -- Zephyr version: 2.4.0 (C:/nordicsemi/v1.4.0/zephyr) -- Found west (found suitable version "0.7.2", minimum required is "0.7.1") -- Board: nrf5340dk_nrf5340_cpuappns -- Cache files will be written to: C:/nordicsemi/v1.4.0/zephyr/.cache -- Found dtc: C:/nordicsemi/v1.4.0/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") -- Found toolchain: gnuarmemb (c:/nordicsemi/v1.4.0/toolchain/opt) -- Found BOARD.dts: C:/nordicsemi/v1.4.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuappns.dts -- Generated zephyr.dts: C:/my_projects/light_controller/build/zephyr/zephyr.dts -- Generated devicetree_unfixed.h: C:/my_projects/light_controller/build/zephyr/include/generated/devicetree_unfixed.h C:\my_projects\light_controller\build\zephyr\misc\generated\extra_kconfig_options.conf:3: warning: attempt to assign the value 'y' to the undefined symbol DEBUG_THREAD_INFO error: Aborting due to Kconfig warnings Parsing C:/nordicsemi/v1.4.0/zephyr/Kconfig Loaded configuration 'C:/nordicsemi/v1.4.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuappns_defconfig' Merged configuration 'C:/my_projects/light_controller/prj.conf' Merged configuration 'C:/my_projects/light_controller/build/zephyr/misc/generated/extra_kconfig_options.conf' CMake Error at C:\nordicsemi\v1.4.0\zephyr\cmake\kconfig.cmake:239 (message): command failed with return code: 1 Call Stack (most recent call first): C:\nordicsemi\v1.4.0\zephyr\cmake\app\boilerplate.cmake:591 (include) C:\nordicsemi\v1.4.0\zephyr\share\zephyr-package\cmake\ZephyrConfig.cmake:24 (include) C:\nordicsemi\v1.4.0\zephyr\share\zephyr-package\cmake\ZephyrConfig.cmake:40 (include_boilerplate) c:\my_projects\light_controller\build\CMakeLists.txt:3 (find_package) -- Configuring incomplete, errors occurred! FATAL ERROR: command exited with status 1: 'c:\nordicsemi\v1.4.0\toolchain\opt\bin\cmake.EXE' '-DWEST_PYTHON=c:\nordicsemi\v1.4.0\toolchain\opt\bin\python.exe' '-Bc:\my_projects\light_controller\build' '-Sc:\my_projects\light_controller' -GNinja The terminal process terminated with exit code: 1. Terminal will be reused by tasks, press any key to close it.
Hello_world project and everything before the turorial was working.
Thank you for your help,
Christoph