Hi,
I am failing to build any of the Matter, Thread or Zigbee for nrf52840dk with the following failure.
I successfully build a blinky and bluetooth app, so my tool chain should work.
And it was also working for a nrf52840 SoC
But this is keeping me from develop any further with Thread.
Building matter_light_bulb
west build --build-dir /home/lou/_d/nrf/matter_light_bulb/build_2 /home/lou/_d/nrf/matter_light_bulb --pristine --board nrf52840dk/nrf52840 -- -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=/home/lou/_d/nrf/matter_light_bulb
-- west build: generating a build system
Loading Zephyr module(s) (Zephyr base): sysbuild_default
-- Found Python3: /home/lou/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/lou/.cache/zephyr
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf52840dk, qualifiers: nrf52840
Parsing /home/lou/_d/nrf/matter_light_bulb/Kconfig.sysbuild
Loaded configuration '/home/lou/_d/nrf/matter_light_bulb/build_2/_sysbuild/empty.conf'
Merged configuration '/home/lou/_d/nrf/matter_light_bulb/sysbuild.conf'
Configuration saved to '/home/lou/_d/nrf/matter_light_bulb/build_2/zephyr/.config'
Kconfig header saved to '/home/lou/_d/nrf/matter_light_bulb/build_2/_sysbuild/autoconf.h'
--
*****************************
* Running CMake for mcuboot *
*****************************
Loading Zephyr default modules (Zephyr base).
-- Application: /home/lou/ncs/v2.9.0/bootloader/mcuboot/boot/zephyr
-- CMake version: 3.21.0
-- Found Python3: /home/lou/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/lou/.cache/zephyr
-- Zephyr version: 3.7.99 (/home/lou/ncs/v2.9.0/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 (/home/lou/ncs/toolchains/b77d8c1312/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.17.0 (/home/lou/ncs/toolchains/b77d8c1312/opt/zephyr-sdk)
-- Found Dtc: /home/lou/ncs/toolchains/b77d8c1312/usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found BOARD.dts: /home/lou/ncs/v2.9.0/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840.dts
-- Found devicetree overlay: /home/lou/_d/nrf/matter_light_bulb/sysbuild/mcuboot/boards/nrf52840dk_nrf52840.overlay
-- Generated zephyr.dts: /home/lou/_d/nrf/matter_light_bulb/build_2/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/lou/_d/nrf/matter_light_bulb/build_2/mcuboot/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: /home/lou/_d/nrf/matter_light_bulb/build_2/mcuboot/zephyr/dts.cmake
warning: BOOT_MAX_IMG_SECTORS (defined at
/home/lou/ncs/v2.9.0/bootloader/mcuboot/boot/zephyr/Kconfig:394) was assigned the value '256' but
got the value ''. Check these unsatisfied dependencies: (!BOOT_MAX_IMG_SECTORS_AUTO) (=n). See
docs.zephyrproject.org/.../kconfig.html and/or look up
BOOT_MAX_IMG_SECTORS 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.
warning: Experimental symbol ISR_TABLES_LOCAL_DECLARATION is enabled.
/home/lou/_d/nrf/matter_light_bulb/sysbuild/mcuboot/boards/nrf52840dk_nrf52840.conf:10: warning: attempt to assign the value 'n' to the undefined symbol MCUBOOT_HARDWARE_DOWNGRADE_PREVENTION
error: Aborting due to Kconfig warnings
Parsing /home/lou/ncs/v2.9.0/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration '/home/lou/ncs/v2.9.0/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840_defconfig'
Merged configuration '/home/lou/_d/nrf/matter_light_bulb/sysbuild/mcuboot/prj.conf'
Merged configuration '/home/lou/_d/nrf/matter_light_bulb/sysbuild/mcuboot/boards/nrf52840dk_nrf52840.conf'
Merged configuration '/home/lou/ncs/v2.9.0/nrf/subsys/partition_manager/ext_flash_mcuboot_secondary.conf'
Merged configuration '/home/lou/_d/nrf/matter_light_bulb/build_2/mcuboot/zephyr/.config.sysbuild'
CMake Error at /home/lou/ncs/v2.9.0/zephyr/cmake/modules/kconfig.cmake:396 (message):
command failed with return code: 1
Call Stack (most recent call first):
/home/lou/ncs/v2.9.0/nrf/cmake/modules/kconfig.cmake:29 (include)
/home/lou/ncs/v2.9.0/zephyr/cmake/modules/zephyr_default.cmake:133 (include)
/home/lou/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
/home/lou/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:12 (find_package)
-- Configuring incomplete, errors occurred!
CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):
CMake configure failed for Zephyr project: mcuboot
Location: /home/lou/ncs/v2.9.0/bootloader/mcuboot/boot/zephyr/
Call Stack (most recent call first):
cmake/modules/sysbuild_images.cmake:20 (ExternalZephyrProject_Cmake)
cmake/modules/sysbuild_default.cmake:20 (include)
/home/lou/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
/home/lou/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
/home/lou/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/lou/_d/nrf/matter_light_bulb/build_2/CMakeFiles/CMakeOutput.log".
FATAL ERROR: command exited with status 1: /home/lou/ncs/toolchains/b77d8c1312/usr/local/bin/cmake -DWEST_PYTHON=/home/lou/ncs/toolchains/b77d8c1312/usr/local/bin/python3.12 -B/home/lou/_d/nrf/matter_light_bulb/build_2 -GNinja -DBOARD=nrf52840dk/nrf52840 -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=/home/lou/_d/nrf/matter_light_bulb -S/home/lou/ncs/v2.9.0/zephyr/share/sysbuild -DAPP_DIR:PATH=/home/lou/_d/nrf/matter_light_bulb
Thanks for any help.
Cheers