Trouble migrating from NCS 2.7 to 2.9

trying to build matter sample example light_bulb but getting error :

nRF connect sdk v2.9.0 & tool chain v2.9.0 using 

board nrf21540dk/nrf52840 

following are the building logs 

Executing task: nRF Connect: Build [pristine]: light_bulb_33/build (active) 

Building template
west build --build-dir /home/nistantritech/light_bulb_33/build /home/nistantritech/light_bulb_33 --pristine --board nrf21540dk/nrf52840 -- -DNCS_TOOLCHAIN_VERSION=NONE -DCONF_FILE=/home/nistantritech/light_bulb_33/prj.conf -DEXTRA_CONF_FILE=boards/nrf21540dk_nrf52840.conf -DDTC_OVERLAY_FILE=boards/nrf21540dk_nrf52840.overlay -DSHIELD=nrf21540ek -DBOARD_ROOT=/home/nistantritech/light_bulb_33

-- west build: generating a build system
Loading Zephyr module(s) (Zephyr base): sysbuild_default
-- Found Python3: /home/nistantritech/ncs/toolchains/b77d8c1312/usr/local/bin/python3.12 (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /home/nistantritech/.cache/zephyr
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf21540dk, qualifiers: nrf52840
-- Shield(s): nrf21540ek
Parsing /home/nistantritech/light_bulb_33/Kconfig.sysbuild
Loaded configuration '/home/nistantritech/light_bulb_33/build/_sysbuild/empty.conf'
Merged configuration '/home/nistantritech/light_bulb_33/sysbuild.conf'
Configuration saved to '/home/nistantritech/light_bulb_33/build/zephyr/.config'
Kconfig header saved to '/home/nistantritech/light_bulb_33/build/_sysbuild/autoconf.h'
-- 
   ***********************************
   * Running CMake for light_bulb_33 *
   ***********************************

Loading Zephyr default modules (Zephyr base).
-- Application: /home/nistantritech/light_bulb_33
-- CMake version: 3.21.0
-- Found Python3: /home/nistantritech/ncs/toolchains/b77d8c1312/usr/local/bin/python (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /home/nistantritech/.cache/zephyr
-- Zephyr version: 3.7.99 (/home/nistantritech/ncs/v2.9.0/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf21540dk, qualifiers: nrf52840
-- Shield(s): nrf21540ek
-- Found host-tools: zephyr 0.17.0 (/home/nistantritech/ncs/toolchains/b77d8c1312/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.17.0 (/home/nistantritech/ncs/toolchains/b77d8c1312/opt/zephyr-sdk)
-- Found Dtc: /home/nistantritech/ncs/toolchains/b77d8c1312/usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6") 
-- Found BOARD.dts: /home/nistantritech/ncs/v2.9.0/zephyr/boards/nordic/nrf21540dk/nrf21540dk_nrf52840.dts
-- Found devicetree overlay: /home/nistantritech/ncs/v2.9.0/nrf/boards/shields/nrf21540ek/nrf21540ek.overlay
-- Found devicetree overlay: boards/nrf21540dk_nrf52840.overlay
-- Generated zephyr.dts: /home/nistantritech/light_bulb_33/build/light_bulb_33/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/nistantritech/light_bulb_33/build/light_bulb_33/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: /home/nistantritech/light_bulb_33/build/light_bulb_33/zephyr/dts.cmake
Parsing /home/nistantritech/light_bulb_33/Kconfig
Loaded configuration '/home/nistantritech/ncs/v2.9.0/zephyr/boards/nordic/nrf21540dk/nrf21540dk_nrf52840_defconfig'
Merged configuration '/home/nistantritech/light_bulb_33/prj.conf'
Merged configuration '/home/nistantritech/light_bulb_33/boards/nrf21540dk_nrf52840.conf'
Merged configuration '/home/nistantritech/light_bulb_33/build/light_bulb_33/zephyr/.config.sysbuild'

error: MCUBOOT (defined at /home/nistantritech/ncs/v2.9.0/nrf/drivers/hw_cc3xx/Kconfig:10,
modules/Kconfig.mcuboot:8) is assigned in a configuration file, but is not directly user-
configurable (has no prompt). It gets its value indirectly from other symbols. See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MCUBOOT and/or look up MCUBOOT in the
menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values,
and Kconfig - Tips and Best Practices sections of the manual might be helpful too.

CMake Error at /home/nistantritech/ncs/v2.9.0/zephyr/cmake/modules/kconfig.cmake:396 (message):
  command failed with return code: 1
Call Stack (most recent call first):
  /home/nistantritech/ncs/v2.9.0/nrf/cmake/modules/kconfig.cmake:29 (include)
  /home/nistantritech/ncs/v2.9.0/zephyr/cmake/modules/zephyr_default.cmake:133 (include)
  /home/nistantritech/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/nistantritech/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:9 (find_package)


-- Configuring incomplete, errors occurred!
CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):
  CMake configure failed for Zephyr project: light_bulb_33

  Location: /home/nistantritech/light_bulb_33
Call Stack (most recent call first):
  cmake/modules/sysbuild_images.cmake:20 (ExternalZephyrProject_Cmake)
  cmake/modules/sysbuild_default.cmake:20 (include)
  /home/nistantritech/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
  /home/nistantritech/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  /home/nistantritech/ncs/v2.9.0/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
  template/CMakeLists.txt:10 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/nistantritech/light_bulb_33/build/CMakeFiles/CMakeOutput.log".
FATAL ERROR: command exited with status 1: /home/nistantritech/ncs/toolchains/b77d8c1312/usr/local/bin/cmake -DWEST_PYTHON=/home/nistantritech/ncs/toolchains/b77d8c1312/usr/local/bin/python3.12 -B/home/nistantritech/light_bulb_33/build -GNinja -DBOARD=nrf21540dk/nrf52840 -DNCS_TOOLCHAIN_VERSION=NONE -DCONF_FILE=/home/nistantritech/light_bulb_33/prj.conf -DEXTRA_CONF_FILE=boards/nrf21540dk_nrf52840.conf -DDTC_OVERLAY_FILE=boards/nrf21540dk_nrf52840.overlay -DSHIELD=nrf21540ek -DBOARD_ROOT=/home/nistantritech/light_bulb_33 -S/home/nistantritech/ncs/v2.9.0/zephyr/share/sysbuild -DAPP_DIR:PATH=/home/nistantritech/light_bulb_33

 *  The terminal process terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

prj.conf file with error 

how i can solve this error so that i can build & flash code successfully ?

Parents
  • Hi, 

    Are you using the unmodified matter sample example light_bulb? If so, could you try building for nRF52840DK with EK and use Sysbuild?

    Regards,
    Amanda H.

  • i didn't modified anything in matter sample example, 

    as you told use sysbuild still error not solve.

     Executing task: nRF Connect: Build [pristine]: light_bulb_33/build (active) 
    
    Building template
    west build --build-dir /home/nistantritech/light_bulb_33/build /home/nistantritech/light_bulb_33 --pristine --board nrf21540dk/nrf52840 --sysbuild -- -DNCS_TOOLCHAIN_VERSION=NONE -DCONF_FILE=/home/nistantritech/light_bulb_33/prj.conf -DEXTRA_CONF_FILE=boards/nrf21540dk_nrf52840.conf -DDTC_OVERLAY_FILE=boards/nrf21540dk_nrf52840.overlay -DBOARD_ROOT=/home/nistantritech/light_bulb_33
    
    -- west build: generating a build system
    Loading Zephyr module(s) (Zephyr base): sysbuild_default
    -- Found Python3: /home/nistantritech/ncs/toolchains/b77d8c1312/usr/local/bin/python3.12 (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: /home/nistantritech/.cache/zephyr
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf21540dk, qualifiers: nrf52840
    Parsing /home/nistantritech/light_bulb_33/Kconfig.sysbuild
    Loaded configuration '/home/nistantritech/light_bulb_33/build/_sysbuild/empty.conf'
    Merged configuration '/home/nistantritech/light_bulb_33/sysbuild.conf'
    Configuration saved to '/home/nistantritech/light_bulb_33/build/zephyr/.config'
    Kconfig header saved to '/home/nistantritech/light_bulb_33/build/_sysbuild/autoconf.h'
    -- 
       ***********************************
       * Running CMake for light_bulb_33 *
       ***********************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: /home/nistantritech/light_bulb_33
    -- CMake version: 3.21.0
    -- Found Python3: /home/nistantritech/ncs/toolchains/b77d8c1312/usr/local/bin/python (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: /home/nistantritech/.cache/zephyr
    -- Zephyr version: 3.7.99 (/home/nistantritech/ncs/v2.9.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf21540dk, qualifiers: nrf52840
    -- Found host-tools: zephyr 0.17.0 (/home/nistantritech/ncs/toolchains/b77d8c1312/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (/home/nistantritech/ncs/toolchains/b77d8c1312/opt/zephyr-sdk)
    -- Found Dtc: /home/nistantritech/ncs/toolchains/b77d8c1312/usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6") 
    -- Found BOARD.dts: /home/nistantritech/ncs/v2.9.0/zephyr/boards/nordic/nrf21540dk/nrf21540dk_nrf52840.dts
    -- Found devicetree overlay: boards/nrf21540dk_nrf52840.overlay
    -- Generated zephyr.dts: /home/nistantritech/light_bulb_33/build/light_bulb_33/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: /home/nistantritech/light_bulb_33/build/light_bulb_33/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: /home/nistantritech/light_bulb_33/build/light_bulb_33/zephyr/dts.cmake
    Parsing /home/nistantritech/light_bulb_33/Kconfig
    Loaded configuration '/home/nistantritech/ncs/v2.9.0/zephyr/boards/nordic/nrf21540dk/nrf21540dk_nrf52840_defconfig'
    Merged configuration '/home/nistantritech/light_bulb_33/prj.conf'
    Merged configuration '/home/nistantritech/light_bulb_33/boards/nrf21540dk_nrf52840.conf'
    Merged configuration '/home/nistantritech/light_bulb_33/build/light_bulb_33/zephyr/.config.sysbuild'
    
    error: MCUBOOT (defined at /home/nistantritech/ncs/v2.9.0/nrf/drivers/hw_cc3xx/Kconfig:10,
    modules/Kconfig.mcuboot:8) is assigned in a configuration file, but is not directly user-
    configurable (has no prompt). It gets its value indirectly from other symbols. See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MCUBOOT and/or look up MCUBOOT in the
    menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values,
    and Kconfig - Tips and Best Practices sections of the manual might be helpful too.
    
    CMake Error at /home/nistantritech/ncs/v2.9.0/zephyr/cmake/modules/kconfig.cmake:396 (message):
      command failed with return code: 1
    Call Stack (most recent call first):
      /home/nistantritech/ncs/v2.9.0/nrf/cmake/modules/kconfig.cmake:29 (include)
      /home/nistantritech/ncs/v2.9.0/zephyr/cmake/modules/zephyr_default.cmake:133 (include)
      /home/nistantritech/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      /home/nistantritech/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:9 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):
      CMake configure failed for Zephyr project: light_bulb_33
    
      Location: /home/nistantritech/light_bulb_33
    Call Stack (most recent call first):
      cmake/modules/sysbuild_images.cmake:20 (ExternalZephyrProject_Cmake)
      cmake/modules/sysbuild_default.cmake:20 (include)
      /home/nistantritech/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
      /home/nistantritech/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      /home/nistantritech/ncs/v2.9.0/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
      template/CMakeLists.txt:10 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    See also "/home/nistantritech/light_bulb_33/build/CMakeFiles/CMakeOutput.log".
    FATAL ERROR: command exited with status 1: /home/nistantritech/ncs/toolchains/b77d8c1312/usr/local/bin/cmake -DWEST_PYTHON=/home/nistantritech/ncs/toolchains/b77d8c1312/usr/local/bin/python3.12 -B/home/nistantritech/light_bulb_33/build -GNinja -DBOARD=nrf21540dk/nrf52840 -DNCS_TOOLCHAIN_VERSION=NONE -DCONF_FILE=/home/nistantritech/light_bulb_33/prj.conf -DEXTRA_CONF_FILE=boards/nrf21540dk_nrf52840.conf -DDTC_OVERLAY_FILE=boards/nrf21540dk_nrf52840.overlay -DBOARD_ROOT=/home/nistantritech/light_bulb_33 -S/home/nistantritech/ncs/v2.9.0/zephyr/share/sysbuild -DAPP_DIR:PATH=/home/nistantritech/light_bulb_33
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it. 
    
    

  • nRF21540DK does not have the external flash for DFU. Please use sysbuild and build for nRF52840DK with nRF2140EK. See the FEM support section.

Reply Children
No Data
Related