Blinky build error using SDK 2.9.1 and toolchain 2.9.1

Hi,

I am using nRF52840 DK and I am following Nordic Academy nRF Connect SDK Fundamentals. I installed SDK 2.9.1 and toolchain 2.9.1

I copied the sample blinky and encountering this error below. How do I solve this problem.

 -- Configuring incomplete, errors occurred!
See also "C:/nordic2/ncsfund/l1_e2/build/CMakeFiles/CMakeOutput.log".
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\b620d30767\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/b620d30767/opt/bin/python.exe '-Bc:\nordic2\ncsfund\l1_e2\build' -GNinja -DBOARD=nrf52840dk/nrf52840 -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=c:/nordic2/ncsfund/l1_e2 '-SC:\ncs\v2.9.1\zephyr\share\sysbuild' '-DAPP_DIR:PATH=c:\nordic2\ncsfund\l1_e2'

Regards,

Markel

Parents
  • Hi, 

    I cannot find ncsfund/l1_e2 in this repository https://github.com/NordicDeveloperAcademy/ncs-fund/tree/main/v2.9.0-v2.7.0 

    -DBOARD_ROOT=c:/nordic2/ncsfund/l1_e2

    Could you remove this setting for nRF52840DK? I guess it cannot find the nRF52840 board confirmation under that path. 

    Regards,
    Amanda H.

  • Hi Amanda,

    The procedure at nRF Connect SDK Fundamentals Exercise 1 is to rename blinky to l1_e2.

    If I do not rename the blinky example and build configuration using SDK 2.4.2 and toolchain 2.4.2, it build without errors.

    However, If I build configuration using SDK 2.9.1 and toolchain 2.9.1 I get the build errors. See, pic below.

  • Could you provide the completed build log and support information generated from the right top of the Welcome view?

  • See, attached file.

    Executing task: nRF Connect: Generate config nrf52840dk/nrf52840 for c:\nordic2\ncsfund\blinky 
    
    Building blinky
    C:\WINDOWS\system32\cmd.exe /d /s /c "west build --build-dir c:/nordic2/ncsfund/blinky/build c:/nordic2/ncsfund/blinky --pristine --board nrf52840dk/nrf52840 -- -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=c:/nordic2/ncsfund/blinky"
    
    -- west build: generating a build system
    Loading Zephyr module(s) (Zephyr base): sysbuild_default
    -- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: C:/ncs/v2.9.1/zephyr/.cache
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf52840dk, qualifiers: nrf52840
    Parsing C:/ncs/v2.9.1/zephyr/share/sysbuild/Kconfig
    Loaded configuration 'C:/nordic2/ncsfund/blinky/build/_sysbuild/empty.conf'
    Merged configuration 'C:/nordic2/ncsfund/blinky/build/_sysbuild/empty.conf'
    Configuration saved to 'C:/nordic2/ncsfund/blinky/build/zephyr/.config'
    Kconfig header saved to 'C:/nordic2/ncsfund/blinky/build/_sysbuild/autoconf.h'
    -- 
       ****************************
       * Running CMake for blinky *
       ****************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/nordic2/ncsfund/blinky
    -- CMake version: 3.21.0
    -- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: C:/ncs/v2.9.1/zephyr/.cache
    -- Zephyr version: 3.7.99 (C:/ncs/v2.9.1/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf52840dk, qualifiers: nrf52840
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/b620d30767/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/ncs/v2.9.1/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840.dts
    -- Generated zephyr.dts: C:/nordic2/ncsfund/blinky/build/blinky/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/nordic2/ncsfund/blinky/build/blinky/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/nordic2/ncsfund/blinky/build/blinky/zephyr/dts.cmake
    
    warning: HAS_CMSIS_CORE (defined at modules\cmsis\Kconfig:7) has direct dependencies 0 with value n, but is currently being y-selected by the following symbols:
     - CPU_CORTEX_M (defined at C:/ncs/v2.9.1/zephyr/arch/arm\core/Kconfig:6), with value y, direct dependencies ARM (value: y), and select condition ARM (value: y)
    
    error: Aborting due to Kconfig warnings
    
    Parsing C:/ncs/v2.9.1/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v2.9.1/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840_defconfig'
    Merged configuration 'C:/nordic2/ncsfund/blinky/prj.conf'
    Merged configuration 'C:/nordic2/ncsfund/blinky/build/blinky/zephyr/.config.sysbuild'
    CMake Error at C:/ncs/v2.9.1/zephyr/cmake/modules/kconfig.cmake:396 (message):
      command failed with return code: 1
    Call Stack (most recent call first):
      C:/ncs/v2.9.1/nrf/cmake/modules/kconfig.cmake:29 (include)
      C:/ncs/v2.9.1/zephyr/cmake/modules/zephyr_default.cmake:133 (include)
      C:/ncs/v2.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      C:/ncs/v2.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:4 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):
      CMake configure failed for Zephyr project: blinky
    
      Location: C:/nordic2/ncsfund/blinky
    Call Stack (most recent call first):
      cmake/modules/sysbuild_images.cmake:20 (ExternalZephyrProject_Cmake)
      cmake/modules/sysbuild_default.cmake:20 (include)
      C:/ncs/v2.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
      C:/ncs/v2.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      C:/ncs/v2.9.1/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
      template/CMakeLists.txt:10 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    See also "C:/nordic2/ncsfund/blinky/build/CMakeFiles/CMakeOutput.log".
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\b620d30767\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/b620d30767/opt/bin/python.exe '-Bc:\nordic2\ncsfund\blinky\build' -GNinja -DBOARD=nrf52840dk/nrf52840 -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=c:/nordic2/ncsfund/blinky '-SC:\ncs\v2.9.1\zephyr\share\sysbuild' '-DAPP_DIR:PATH=c:\nordic2\ncsfund\blinky'
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it. 

Reply
  • See, attached file.

    Executing task: nRF Connect: Generate config nrf52840dk/nrf52840 for c:\nordic2\ncsfund\blinky 
    
    Building blinky
    C:\WINDOWS\system32\cmd.exe /d /s /c "west build --build-dir c:/nordic2/ncsfund/blinky/build c:/nordic2/ncsfund/blinky --pristine --board nrf52840dk/nrf52840 -- -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=c:/nordic2/ncsfund/blinky"
    
    -- west build: generating a build system
    Loading Zephyr module(s) (Zephyr base): sysbuild_default
    -- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: C:/ncs/v2.9.1/zephyr/.cache
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf52840dk, qualifiers: nrf52840
    Parsing C:/ncs/v2.9.1/zephyr/share/sysbuild/Kconfig
    Loaded configuration 'C:/nordic2/ncsfund/blinky/build/_sysbuild/empty.conf'
    Merged configuration 'C:/nordic2/ncsfund/blinky/build/_sysbuild/empty.conf'
    Configuration saved to 'C:/nordic2/ncsfund/blinky/build/zephyr/.config'
    Kconfig header saved to 'C:/nordic2/ncsfund/blinky/build/_sysbuild/autoconf.h'
    -- 
       ****************************
       * Running CMake for blinky *
       ****************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/nordic2/ncsfund/blinky
    -- CMake version: 3.21.0
    -- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: C:/ncs/v2.9.1/zephyr/.cache
    -- Zephyr version: 3.7.99 (C:/ncs/v2.9.1/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf52840dk, qualifiers: nrf52840
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/b620d30767/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/ncs/v2.9.1/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840.dts
    -- Generated zephyr.dts: C:/nordic2/ncsfund/blinky/build/blinky/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/nordic2/ncsfund/blinky/build/blinky/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/nordic2/ncsfund/blinky/build/blinky/zephyr/dts.cmake
    
    warning: HAS_CMSIS_CORE (defined at modules\cmsis\Kconfig:7) has direct dependencies 0 with value n, but is currently being y-selected by the following symbols:
     - CPU_CORTEX_M (defined at C:/ncs/v2.9.1/zephyr/arch/arm\core/Kconfig:6), with value y, direct dependencies ARM (value: y), and select condition ARM (value: y)
    
    error: Aborting due to Kconfig warnings
    
    Parsing C:/ncs/v2.9.1/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v2.9.1/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840_defconfig'
    Merged configuration 'C:/nordic2/ncsfund/blinky/prj.conf'
    Merged configuration 'C:/nordic2/ncsfund/blinky/build/blinky/zephyr/.config.sysbuild'
    CMake Error at C:/ncs/v2.9.1/zephyr/cmake/modules/kconfig.cmake:396 (message):
      command failed with return code: 1
    Call Stack (most recent call first):
      C:/ncs/v2.9.1/nrf/cmake/modules/kconfig.cmake:29 (include)
      C:/ncs/v2.9.1/zephyr/cmake/modules/zephyr_default.cmake:133 (include)
      C:/ncs/v2.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      C:/ncs/v2.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:4 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):
      CMake configure failed for Zephyr project: blinky
    
      Location: C:/nordic2/ncsfund/blinky
    Call Stack (most recent call first):
      cmake/modules/sysbuild_images.cmake:20 (ExternalZephyrProject_Cmake)
      cmake/modules/sysbuild_default.cmake:20 (include)
      C:/ncs/v2.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
      C:/ncs/v2.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      C:/ncs/v2.9.1/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
      template/CMakeLists.txt:10 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    See also "C:/nordic2/ncsfund/blinky/build/CMakeFiles/CMakeOutput.log".
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\b620d30767\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/b620d30767/opt/bin/python.exe '-Bc:\nordic2\ncsfund\blinky\build' -GNinja -DBOARD=nrf52840dk/nrf52840 -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=c:/nordic2/ncsfund/blinky '-SC:\ncs\v2.9.1\zephyr\share\sysbuild' '-DAPP_DIR:PATH=c:\nordic2\ncsfund\blinky'
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it. 

Children
Related