Cannot build matter template with nrf54l15 internal memory

Hello,

I am attempting to build the Matter template using only the nRF54L15’s internal memory. While the build occasionally succeeds, it more often fails, and I am unsure which build options I have misconfigured. Could you please help me identify and correct the erroneous settings?

Here are the build settings:

and this is build output:

 *  Executing task: nRF Connect: Generate config nrf54l15dk/nrf54l15/cpuapp for /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template 

Building template
west build --build-dir /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template --pristine --board nrf54l15dk/nrf54l15/cpuapp -- -DCONF_FILE=prj.conf -DFILE_SUFFIX=internal -DBOARD_ROOT=/Users/filipmr/projects/smart_home/temperature_matter_sensor/board;/Users/filipmr/projects/chidlo;/Users/filipmr/Chidlo/products/temperature_sensor/firmware;/Users/filipmr/Chidlo/products/window_sensor/firmware;/Users/filipmr/Chidlo/products/temperature_sensor_nrf54/firmware;/opt/nordic/ncs/v3.0.1/nrf/samples/matter/template

-- west build: generating a build system
Loading Zephyr module(s) (Zephyr base): sysbuild_default
-- Found Python3: /opt/nordic/ncs/toolchains/ef4fc6722e/opt/[email protected]/bin/python3.12 (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter 
-- Cache files will be written to: /Users/filipmr/Library/Caches/zephyr
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf54l15dk, qualifiers: nrf54l15/cpuapp
Parsing /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/Kconfig.sysbuild
Loaded configuration '/opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/_sysbuild/empty.conf'
Merged configuration '/opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/sysbuild_internal.conf'
Configuration saved to '/opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/zephyr/.config'
Kconfig header saved to '/opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/_sysbuild/autoconf.h'
-- 
   *****************************
   * Running CMake for mcuboot *
   *****************************

Loading Zephyr default modules (Zephyr base).
-- Application: /opt/nordic/ncs/v3.0.1/bootloader/mcuboot/boot/zephyr
-- CMake version: 3.21.0
-- Found Python3: /opt/nordic/ncs/toolchains/ef4fc6722e/bin/python (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter 
-- Cache files will be written to: /Users/filipmr/Library/Caches/zephyr
-- Zephyr version: 4.0.99 (/opt/nordic/ncs/v3.0.1/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf54l15dk, qualifiers: nrf54l15/cpuapp
-- Found host-tools: zephyr 0.17.0 (/opt/nordic/ncs/toolchains/ef4fc6722e/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.17.0 (/opt/nordic/ncs/toolchains/ef4fc6722e/opt/zephyr-sdk)
-- Found Dtc: /opt/nordic/ncs/toolchains/ef4fc6722e/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6") 
-- Found BOARD.dts: /opt/nordic/ncs/v3.0.1/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp.dts
-- Found devicetree overlay: /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/sysbuild/mcuboot/boards/nrf54l15dk_nrf54l15_cpuapp_internal.overlay
-- Generated zephyr.dts: /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/mcuboot/zephyr/zephyr.dts
-- Generated pickled edt: /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/mcuboot/zephyr/edt.pickle
-- Generated zephyr.dts: /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/mcuboot/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/mcuboot/zephyr/dts.cmake

warning: Deprecated symbol DEPRECATED_UART_NRFX_UARTE_LEGACY_SHIM is enabled.


warning: Experimental symbol BOOT_DECOMPRESSION is enabled.

Parsing /opt/nordic/ncs/v3.0.1/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration '/opt/nordic/ncs/v3.0.1/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp_defconfig'
Merged configuration '/opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/sysbuild/mcuboot/prj.conf'
Merged configuration '/opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/sysbuild/mcuboot/boards/nrf54l15dk_nrf54l15_cpuapp_internal.conf'
Merged configuration '/opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/mcuboot/zephyr/.config.sysbuild'
Configuration saved to '/opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/mcuboot/zephyr/.config'
Kconfig header saved to '/opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/mcuboot/zephyr/include/generated/zephyr/autoconf.h'
-- Found GnuLd: /opt/nordic/ncs/toolchains/ef4fc6722e/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd (found version "2.38") 
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /opt/nordic/ncs/toolchains/ef4fc6722e/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
=========== Generating psa_crypto_config ===============
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
Backup: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
Backup: CONFIG_MBEDTLS_THREADING: False
Backup: CONFIG_MBEDTLS_THREADING_ALT: False
=========== Checkpoint: backup ===============
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
Restore: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
Restore: CONFIG_MBEDTLS_THREADING: False
Restore: CONFIG_MBEDTLS_THREADING_ALT: False
=========== End psa_crypto_config ===============
=========== Generating psa_crypto_library_config ===============
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
Backup: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
Backup: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
Backup: CONFIG_MBEDTLS_THREADING: False
Backup: CONFIG_MBEDTLS_THREADING_ALT: False
=========== Checkpoint: backup ===============
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
Restore: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
Restore: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
Restore: CONFIG_MBEDTLS_THREADING: False
Restore: CONFIG_MBEDTLS_THREADING_ALT: False
=========== End psa_crypto_library_config ===============
-- Using ccache: /opt/nordic/ncs/toolchains/ef4fc6722e/bin/ccache
MCUBoot bootloader key file: /opt/nordic/ncs/v3.0.1/bootloader/mcuboot/root-ed25519.pem
CMake Warning at CMakeLists.txt:393 (message):
  WARNING: Using default MCUboot signing key file, this file is for debug use
  only and is not secure!


-- Configuring done
-- Generating done
-- Build files have been written to: /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/mcuboot
-- 
   ******************************
   * Running CMake for template *
   ******************************

Loading Zephyr default modules (Zephyr base).
-- Application: /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template
-- CMake version: 3.21.0
-- Found Python3: /opt/nordic/ncs/toolchains/ef4fc6722e/bin/python (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter 
-- Cache files will be written to: /Users/filipmr/Library/Caches/zephyr
-- Zephyr version: 4.0.99 (/opt/nordic/ncs/v3.0.1/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf54l15dk, qualifiers: nrf54l15/cpuapp
-- Found host-tools: zephyr 0.17.0 (/opt/nordic/ncs/toolchains/ef4fc6722e/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.17.0 (/opt/nordic/ncs/toolchains/ef4fc6722e/opt/zephyr-sdk)
-- Found Dtc: /opt/nordic/ncs/toolchains/ef4fc6722e/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6") 
-- Found BOARD.dts: /opt/nordic/ncs/v3.0.1/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp.dts
-- Found devicetree overlay: /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/boards/nrf54l15dk_nrf54l15_cpuapp_internal.overlay
-- Generated zephyr.dts: /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/zephyr/zephyr.dts
-- Generated pickled edt: /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/zephyr/edt.pickle
-- Generated zephyr.dts: /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/zephyr/dts.cmake
Parsing /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/Kconfig
Loaded configuration '/opt/nordic/ncs/v3.0.1/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp_defconfig'
Merged configuration '/opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/prj.conf'
Merged configuration '/opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/zephyr/.config.sysbuild'
Configuration saved to '/opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/zephyr/.config'
Kconfig header saved to '/opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/zephyr/include/generated/zephyr/autoconf.h'
-- Found GnuLd: /opt/nordic/ncs/toolchains/ef4fc6722e/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd (found version "2.38") 
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /opt/nordic/ncs/toolchains/ef4fc6722e/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
=========== Generating psa_crypto_config ===============
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
Backup: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
Backup: CONFIG_MBEDTLS_THREADING: False
Backup: CONFIG_MBEDTLS_THREADING_ALT: True
=========== Checkpoint: backup ===============
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
Restore: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
Restore: CONFIG_MBEDTLS_THREADING: False
Restore: CONFIG_MBEDTLS_THREADING_ALT: True
=========== End psa_crypto_config ===============
=========== Generating psa_crypto_library_config ===============
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
Backup: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
Backup: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
Backup: CONFIG_MBEDTLS_THREADING: False
Backup: CONFIG_MBEDTLS_THREADING_ALT: True
=========== Checkpoint: backup ===============
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
Restore: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
Restore: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
Restore: CONFIG_MBEDTLS_THREADING: False
Restore: CONFIG_MBEDTLS_THREADING_ALT: True
=========== End psa_crypto_library_config ===============
################### OPENTHREAD REPORT ###################
+ Target device: nrf54l15
+ Thread version: v1.4
+ OpenThread library feature set: Minimal Thread Device (MTD)
+ Thread device type: Minimal End Device (MED)
+ OpenThread Library: openthread/lib/nrf54lx/soft-float/v1.4/mtd
+ OpenThread NCS revision: ncs-thread-reference-20250402
+ OpenThread NCS SHA: 0e2666713
+ NCS revision: v3.0.1
+ NCS SHA: 9eb5615da6
+ No differences in the used Thread library in comparison to the NCS v3.0.0 release.
###################        END        ###################
-- Using ccache: /opt/nordic/ncs/toolchains/ef4fc6722e/bin/ccache
-- Found Python3: /opt/nordic/ncs/toolchains/ef4fc6722e/bin/python (found version "3.12.4") found components: Interpreter 
-- Including signing script: /opt/nordic/ncs/v3.0.1/nrf/cmake/sysbuild/image_signing.cmake
CMake Warning at /opt/nordic/ncs/v3.0.1/zephyr/CMakeLists.txt:2180 (message):
  __ASSERT() statements are globally ENABLED


-- Configuring done
-- Generating done
-- Build files have been written to: /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template
-- Found Python3: /opt/nordic/ncs/toolchains/ef4fc6722e/opt/[email protected]/bin/python3.12 (found version "3.12.4") found components: Interpreter 
-- Found partition manager static configuration : /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/pm_static_nrf54l15dk_nrf54l15_cpuapp_internal.yml
Partition 'mcuboot' is not included in the dynamic resolving since it is statically defined.
Partition 'mcuboot_pad' is not included in the dynamic resolving since it is statically defined.
Partition 'mcuboot_primary' is not included in the dynamic resolving since it is statically defined.
Partition 'mcuboot_primary_app' is not included in the dynamic resolving since it is statically defined.
Partition 'mcuboot_secondary' is not included in the dynamic resolving since it is statically defined.
Partition 'settings_storage' is not included in the dynamic resolving since it is statically defined.
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build
-- west build: building application
[1/298] Preparing syscall dependency handling

[8/298] Generating include/generated/zephyr/version.h
-- Zephyr version: 4.0.99 (/opt/nordic/ncs/v3.0.1/zephyr), build: v4.0.99-ncs1-1
[298/298] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       42224 B        52 KB     79.30%
             RAM:      182064 B       256 KB     69.45%
        IDT_LIST:          0 GB        32 KB      0.00%
Generating files from /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/mcuboot/zephyr/zephyr.elf for board: nrf54l15dk
[11/23] Generating new Factory Data...
[INFO] Generating SPAKE2+ Verifier...
[WARNING] KEY password has not been provided. It means that DAC key is not encrypted.
[INFO] Validating JSON with schema...
[INFO] Validate OK
[0/1] Re-running CMake...
Loading Zephyr default modules (Zephyr base (cached)).
-- Application: /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template
-- CMake version: 3.21.0
-- Found Python3: /opt/nordic/ncs/toolchains/ef4fc6722e/bin/python (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter 
-- Cache files will be written to: /Users/filipmr/Library/Caches/zephyr
-- Zephyr version: 4.0.99 (/opt/nordic/ncs/v3.0.1/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf54l15dk, qualifiers: nrf54l15/cpuapp
-- Found host-tools: zephyr 0.17.0 (/opt/nordic/ncs/toolchains/ef4fc6722e/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.17.0 (/opt/nordic/ncs/toolchains/ef4fc6722e/opt/zephyr-sdk)
-- Found BOARD.dts: /opt/nordic/ncs/v3.0.1/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp.dts
-- Found devicetree overlay: /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/boards/nrf54l15dk_nrf54l15_cpuapp_internal.overlay
-- Generated zephyr.dts: /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/zephyr/zephyr.dts
-- Generated pickled edt: /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/zephyr/edt.pickle
-- Generated zephyr.dts: /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/zephyr/dts.cmake
Parsing /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/Kconfig
Loaded configuration '/opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/zephyr/.config'
Merged configuration '/opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/zephyr/.config.sysbuild'
No change to configuration in '/opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/zephyr/.config'
No change to Kconfig header in '/opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/zephyr/include/generated/zephyr/autoconf.h'
=========== Generating psa_crypto_config ===============
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
Backup: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
Backup: CONFIG_MBEDTLS_THREADING: False
Backup: CONFIG_MBEDTLS_THREADING_ALT: True
=========== Checkpoint: backup ===============
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
Restore: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
Restore: CONFIG_MBEDTLS_THREADING: False
Restore: CONFIG_MBEDTLS_THREADING_ALT: True
=========== End psa_crypto_config ===============
=========== Generating psa_crypto_library_config ===============
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
Backup: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
Backup: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
Backup: CONFIG_MBEDTLS_THREADING: False
Backup: CONFIG_MBEDTLS_THREADING_ALT: True
=========== Checkpoint: backup ===============
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
Restore: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
Restore: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
Restore: CONFIG_MBEDTLS_THREADING: False
Restore: CONFIG_MBEDTLS_THREADING_ALT: True
=========== End psa_crypto_library_config ===============
################### OPENTHREAD REPORT ###################
+ Target device: nrf54l15
+ Thread version: v1.4
+ OpenThread library feature set: Minimal Thread Device (MTD)
+ Thread device type: Minimal End Device (MED)
+ OpenThread Library: openthread/lib/nrf54lx/soft-float/v1.4/mtd
+ OpenThread NCS revision: ncs-thread-reference-20250402
+ OpenThread NCS SHA: 0e2666713
+ NCS SHA: 9eb5615da6
+ No differences in the used Thread library in comparison to the NCS v3.0.0 release.
###################        END        ###################
-- Using ccache: /opt/nordic/ncs/toolchains/ef4fc6722e/bin/ccache
-- Found Python3: /opt/nordic/ncs/toolchains/ef4fc6722e/bin/python (found version "3.12.4") found components: Interpreter 
-- Including signing script: /opt/nordic/ncs/v3.0.1/nrf/cmake/sysbuild/image_signing.cmake
CMake Warning at /opt/nordic/ncs/v3.0.1/zephyr/CMakeLists.txt:2180 (message):
  __ASSERT() statements are globally ENABLED


-- Configuring done
-- Generating done
-- Build files have been written to: /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template
[1/542] Preparing syscall dependency handling

[8/542] Generating include/generated/zephyr/version.h
-- Zephyr version: 4.0.99 (/opt/nordic/ncs/v3.0.1/zephyr), build: v4.0.99-ncs1-1
[276/542] Performing build step for 'chip-gn'
Starting Matter library build in /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/modules/connectedhomeip
Generating compile_commands took 63ms
Done. Made 4248 targets from 307 files in 1644ms
[132/344] c++ obj/src/platform/nrfconnect/nrfconnect.FactoryDataProvider.cpp.o
FAILED: obj/src/platform/nrfconnect/nrfconnect.FactoryDataProvider.cpp.o 
ccache /opt/nordic/ncs/toolchains/ef4fc6722e/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-g++ -MMD -MF obj/src/platform/nrfconnect/nrfconnect.FactoryDataProvider.cpp.o.d -Wconversion -mthumb -Os -g2 -fno-common -ffunction-sections -fdata-sections -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -Wall -Werror -Wstack-usage=8192 -Wextra -Wshadow -Wunreachable-code -Wvla -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wno-deprecated-declarations -Wno-missing-field-initializers -Wno-unknown-warning-option -Wno-unused-parameter -Wno-unused -Wno-cast-function-type -Wno-psabi -Wno-maybe-uninitialized -Wno-builtin-macro-redefined -fdiagnostics-color -fno-strict-aliasing -D_POSIX_C_SOURCE=200809 -DMBEDTLS_PSA_CRYPTO_USER_CONFIG_FILE=\<nrf-psa-crypto-user-config.h\> -DMBEDTLS_CONFIG_FILE=\<nrf-config.h\> -DMBEDTLS_PSA_CRYPTO_CONFIG_FILE=\<nrf-psa-crypto-config.h\> -fmacro-prefix-map=../../../../../../../../modules/lib/matter/= -std=gnu++17 -fno-rtti -Wnon-virtual-dtor -isystem/opt/nordic/ncs/v3.0.1/nrf/drivers/mpsl/clock_control -isystem/opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/zephyr/include/generated/zephyr -isystem/opt/nordic/ncs/v3.0.1/zephyr/include -isystem/opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/zephyr/include/generated -isystem/opt/nordic/ncs/v3.0.1/zephyr/soc/nordic -isystem/opt/nordic/ncs/v3.0.1/zephyr/lib/libc/newlib/include -isystem/opt/nordic/ncs/v3.0.1/zephyr/lib/libc/common/include -isystem/opt/nordic/ncs/v3.0.1/zephyr/soc/nordic/nrf54l/. -isystem/opt/nordic/ncs/v3.0.1/zephyr/soc/nordic/common/. -isystem/opt/nordic/ncs/v3.0.1/zephyr/subsys/bluetooth -isystem/opt/nordic/ncs/v3.0.1/zephyr/subsys/settings/include -isystem/opt/nordic/ncs/v3.0.1/nrf/include -isystem/opt/nordic/ncs/v3.0.1/nrf/lib/multithreading_lock/. -isystem/opt/nordic/ncs/v3.0.1/nrf/subsys/bluetooth/controller/. -isystem/opt/nordic/ncs/v3.0.1/nrf/subsys/trusted_storage/include -isystem/opt/nordic/ncs/v3.0.1/nrf/subsys/settings/include -isystem/opt/nordic/ncs/v3.0.1/zephyr/drivers/flash -isystem/opt/nordic/ncs/v3.0.1/nrf/tests/include -isystem/opt/nordic/ncs/v3.0.1/nrf/modules/openthread/platform/. -isystem/opt/nordic/ncs/v3.0.1/modules/hal/cmsis/CMSIS/Core/Include -isystem/opt/nordic/ncs/v3.0.1/zephyr/modules/cmsis/. -isystem/opt/nordic/ncs/v3.0.1/nrf/modules/hal_nordic/. -isystem/opt/nordic/ncs/v3.0.1/modules/hal/nordic/nrfx -isystem/opt/nordic/ncs/v3.0.1/modules/hal/nordic/nrfx/drivers/include -isystem/opt/nordic/ncs/v3.0.1/modules/hal/nordic/nrfx/mdk -isystem/opt/nordic/ncs/v3.0.1/zephyr/modules/hal_nordic/nrfx/. -isystem/opt/nordic/ncs/v3.0.1/modules/lib/zcbor/include -isystem/opt/nordic/ncs/v3.0.1/nrfxlib/softdevice_controller/include -isystem/opt/nordic/ncs/v3.0.1/nrfxlib/mpsl/fem/common/include -isystem/opt/nordic/ncs/v3.0.1/nrfxlib/mpsl/fem/nrf21540_gpio/include -isystem/opt/nordic/ncs/v3.0.1/nrfxlib/mpsl/fem/nrf21540_gpio_spi/include -isystem/opt/nordic/ncs/v3.0.1/nrfxlib/mpsl/fem/nrf2220/include -isystem/opt/nordic/ncs/v3.0.1/nrfxlib/mpsl/fem/nrf2240/include -isystem/opt/nordic/ncs/v3.0.1/nrfxlib/mpsl/fem/nrf22xx/include -isystem/opt/nordic/ncs/v3.0.1/nrfxlib/mpsl/fem/simple_gpio/include -isystem/opt/nordic/ncs/v3.0.1/nrfxlib/mpsl/fem/include -isystem/opt/nordic/ncs/v3.0.1/nrfxlib/mpsl/fem/include/protocol -isystem/opt/nordic/ncs/v3.0.1/nrfxlib/mpsl/include -isystem/opt/nordic/ncs/v3.0.1/nrfxlib/mpsl/include/protocol -isystem/opt/nordic/ncs/v3.0.1/nrfxlib/openthread/include -isystem/opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/generated/library_nrf_security_psa -isystem/opt/nordic/ncs/v3.0.1/nrf/subsys/nrf_security/include -isystem/opt/nordic/ncs/v3.0.1/modules/crypto/oberon-psa-crypto/oberon/drivers -isystem/opt/nordic/ncs/v3.0.1/nrf/subsys/nrf_security/src/threading/include -isystem/opt/nordic/ncs/v3.0.1/nrf/subsys/nrf_security/src/utils -isystem/opt/nordic/ncs/v3.0.1/nrf/subsys/nrf_security/src/drivers/cracen/common/include/ -isystem/opt/nordic/ncs/v3.0.1/nrf/subsys/nrf_security/src/drivers/cracen/sxsymcrypt/include -isystem/opt/nordic/ncs/v3.0.1/nrf/subsys/nrf_security/src/drivers/cracen/sxsymcrypt/src -isystem/opt/nordic/ncs/v3.0.1/nrf/subsys/nrf_security/src/drivers/cracen/silexpk/target/baremetal_ba414e_with_ik -isystem/opt/nordic/ncs/v3.0.1/nrf/subsys/nrf_security/src/drivers/cracen/silexpk/include -isystem/opt/nordic/ncs/v3.0.1/nrf/subsys/nrf_security/src/drivers/cracen/sicrypto/include -isystem/opt/nordic/ncs/v3.0.1/nrf/subsys/nrf_security/src/drivers/cracen/cracenpsa/include -isystem/opt/nordic/ncs/v3.0.1/modules/crypto/oberon-psa-crypto/include -isystem/opt/nordic/ncs/v3.0.1/modules/crypto/oberon-psa-crypto/library -isystem/opt/nordic/ncs/v3.0.1/modules/crypto/mbedtls/library -isystem/opt/nordic/ncs/v3.0.1/modules/crypto/mbedtls/include -isystem/opt/nordic/ncs/v3.0.1/modules/crypto/mbedtls/include/library -isystem/opt/nordic/ncs/v3.0.1/nrfxlib/nrf_802154/driver/include -isystem/opt/nordic/ncs/v3.0.1/nrfxlib/nrf_802154/sl/include -isystem/opt/nordic/ncs/v3.0.1/nrfxlib/nrf_802154/sl/sl/include -isystem/opt/nordic/ncs/v3.0.1/nrfxlib/nrf_802154/common/include -isystem/opt/nordic/ncs/v3.0.1/zephyr/modules/hal_nordic/nrf_802154/include -DKERNEL -D__ZEPHYR__=1 -D_ANSI_SOURCE -D__LINUX_ERRNO_EXTENSIONS__ -DNCS_APPLICATION_BOOT_BANNER_GIT_REPO -DUSE_PARTITION_MANAGER=1 -D__PROGRAM_START -DNRF54L15_XXAA -DNRF_APPLICATION -DNRF_CONFIG_CPU_FREQ_MHZ=128 -DZCBOR_CANONICAL -DZCBOR_ASSERTS -D__FILE__=__FILE_NAME__ -fno-strict-aliasing -fcheck-new -std=c++17 -fno-exceptions -fno-rtti -imacros/opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/zephyr/include/generated/zephyr/autoconf.h -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=/opt/nordic/ncs/toolchains/ef4fc6722e/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros/opt/nordic/ncs/v3.0.1/zephyr/include/zephyr/toolchain/zephyr_stdint.h -fno-pic -fno-pie --param=min-pagesize=0 -fmacro-prefix-map=/opt/nordic/ncs/v3.0.1/nrf/samples/matter/template=CMAKE_SOURCE_DIR -fmacro-prefix-map=/opt/nordic/ncs/v3.0.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/opt/nordic/ncs/v3.0.1=WEST_TOPDIR -specs=nano.specs -D_POSIX_THREADS -std=gnu++17 -DNDEBUG -DCHIP_HAVE_CONFIG_H=1 -I../../../../../../../../modules/lib/matter/src/include -I../../../../../../../../modules/lib/matter/src -Igen/include -I../../../../../../../../modules/lib/matter/third_party/nlassert/repo/include -I../../../../../../../../modules/lib/matter/third_party/nlio/repo/include -I../../../../../../../../modules/lib/matter/zzz_generated/app-common -c ../../../../../../../../modules/lib/matter/src/platform/nrfconnect/FactoryDataProvider.cpp -o obj/src/platform/nrfconnect/nrfconnect.FactoryDataProvider.cpp.o
In file included from /opt/nordic/ncs/v3.0.1/zephyr/include/zephyr/toolchain/gcc.h:98,
                 from /opt/nordic/ncs/v3.0.1/zephyr/include/zephyr/toolchain.h:50,
                 from /opt/nordic/ncs/v3.0.1/zephyr/include/zephyr/sys/__assert.h:11,
                 from /opt/nordic/ncs/v3.0.1/zephyr/include/zephyr/irq_multilevel.h:15,
                 from /opt/nordic/ncs/v3.0.1/zephyr/include/zephyr/devicetree.h:20,
                 from /opt/nordic/ncs/v3.0.1/zephyr/include/zephyr/device.h:12,
                 from /opt/nordic/ncs/v3.0.1/zephyr/include/zephyr/drivers/flash.h:28,
                 from ../../../../../../../../modules/lib/matter/src/platform/nrfconnect/FactoryDataProvider.h:47,
                 from ../../../../../../../../modules/lib/matter/src/platform/nrfconnect/FactoryDataProvider.cpp:18:
../../../../../../../../modules/lib/matter/src/platform/nrfconnect/FactoryDataProvider.h:143:42: error: '__device_dts_ord_DT_CHOSEN_nordic_pm_ext_flash_ORD' was not declared in this scope
  143 |     const struct device * mFlashDevice = DEVICE_DT_GET(DT_CHOSEN(nordic_pm_ext_flash));
      |                                          ^~~~~~~~~~~~~
cc1plus: note: unrecognized command-line option '-Wno-unknown-warning-option' may have been intended to silence earlier diagnostics
[141/344] c++ obj/src/messaging/libMessagingLayer.ApplicationExchangeDispatch.cpp.o
ninja: build stopped: subcommand failed.
[476/542] Linking C static library modules/nrf/subsys/bluetooth/controller/lib..__nrf__subsys__bluetooth__controller.a
FAILED: modules/connectedhomeip/src/chip-gn-stamp/chip-gn-build modules/connectedhomeip/args.gn modules/connectedhomeip/build.ninja modules/connectedhomeip/.ninja_deps modules/connectedhomeip/build.ninja.stamp modules/connectedhomeip/lib/libCHIP.a modules/connectedhomeip/lib/libMatterDeviceInfoProviderExample.a /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/modules/connectedhomeip/src/chip-gn-stamp/chip-gn-build /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/modules/connectedhomeip/args.gn /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/modules/connectedhomeip/build.ninja /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/modules/connectedhomeip/.ninja_deps /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/modules/connectedhomeip/build.ninja.stamp /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/modules/connectedhomeip/lib/libCHIP.a /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/modules/connectedhomeip/lib/libMatterDeviceInfoProviderExample.a 
cd /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/modules/connectedhomeip && /opt/nordic/ncs/toolchains/ef4fc6722e/Cellar/cmake/3.21.0/bin/cmake -E echo "Starting Matter library build in /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/modules/connectedhomeip" && /opt/nordic/ncs/toolchains/ef4fc6722e/bin/python /opt/nordic/ncs/v3.0.1/modules/lib/matter/config/common/cmake/make_gn_args.py @args.tmp > args.gn.tmp && /opt/nordic/ncs/toolchains/ef4fc6722e/Cellar/cmake/3.21.0/bin/cmake -E compare_files args.gn.tmp args.gn || /opt/nordic/ncs/toolchains/ef4fc6722e/Cellar/cmake/3.21.0/bin/cmake -E rename args.gn.tmp args.gn && /opt/nordic/ncs/toolchains/ef4fc6722e/bin/gn --root=/opt/nordic/ncs/v3.0.1/modules/lib/matter --root-target=/opt/nordic/ncs/v3.0.1/modules/lib/matter/config/nrfconnect/chip-gn --dotfile=/opt/nordic/ncs/v3.0.1/modules/lib/matter/config/nrfconnect/chip-gn/.gn --script-executable=/opt/nordic/ncs/toolchains/ef4fc6722e/bin/python gen --check --fail-on-unused-args /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template/modules/connectedhomeip --export-compile-commands && ninja && /opt/nordic/ncs/toolchains/ef4fc6722e/Cellar/cmake/3.21.0/bin/cmake -E echo "Matter library build complete"
ninja: build stopped: subcommand failed.
[15/23] cd /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/_sysbuild && /opt/nordic/ncs/toolchains/ef4fc6722e/Cellar/cmake/3.21.0/bin/cmake -E true
FAILED: _sysbuild/sysbuild/images/template-prefix/src/template-stamp/template-build /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/_sysbuild/sysbuild/images/template-prefix/src/template-stamp/template-build 
cd /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build/template && /opt/nordic/ncs/toolchains/ef4fc6722e/Cellar/cmake/3.21.0/bin/cmake --build .
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/ef4fc6722e/bin/cmake --build /opt/nordic/ncs/v3.0.1/nrf/samples/matter/template/build

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

Related