Switch FW halting system in 5340DK

Dear DevZone:

        I use NCS 2.8.0 to build Light Switch FW, my build command as below:

west build -p always --build-dir nrf/samples/matter/light_switch/build -b nrf5340dk_nrf5340_cpuapp nrf/samples/matter/light_switch/

        Then merged.hex has been generated in path: ncs\v2.8.0\nrf\samples\matter\light_switch\build

        When I download it to 5340DK, I found it can't run, how can I fix this issue?

        Below is FW fail syslog log:

E: IPC endpoint bind timed out

ASSERTION FAIL @ ieee802154_nrf5.c:1228

E:  r0/a1: 0x00000004  r1/a2: 0x000004cc  r2/a3: 0x00000000
E:  r3/a4: 0x00000004  r12/ip: 0x000004cc  r14/lr: 0x00000000
E:  xpsr: 0x09000000
E:  Faulting instruction address (r15/pc):0x00072ae2
E:  >>> ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0

E: Current thread: 0x2000d360 (main)

E: Halting system

  • Hi,

    Thanks for checking with us. I did a try and it seem work as expected.

    Just share my testing process and firmware for your reference:
    Building and programing:

    C:\nordic\v2.8.0\nrf\samples\matter\light_switch>west build -p  -b nrf5340dk/nrf5340/cpuapp
    -- west build: generating a build system
    Loading Zephyr module(s) (Zephyr base): sysbuild_default
    -- Found Python3: C:/nordic/toolchains/2d382dcd92/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:/nordic/v2.8.0/zephyr/.cache
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf5340dk, qualifiers: nrf5340/cpuapp
    Parsing C:/nordic/v2.8.0/nrf/samples/matter/light_switch/Kconfig.sysbuild
    Loaded configuration 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/zephyr/.config'
    No change to configuration in 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/zephyr/.config'
    No change to Kconfig header in 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/_sysbuild/autoconf.h'
    -- 
       *****************************
       * Running CMake for mcuboot *
       *****************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/nordic/v2.8.0/bootloader/mcuboot/boot/zephyr
    -- CMake version: 3.21.0
    -- Using NCS Toolchain 2.8.20241106.194216054162 for building. (C:/nordic/toolchains/2d382dcd92/cmake)
    -- Found Python3: C:/nordic/toolchains/2d382dcd92/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:/nordic/v2.8.0/zephyr/.cache
    -- Zephyr version: 3.7.99 (C:/nordic/v2.8.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf5340dk, qualifiers: nrf5340/cpuapp
    -- Found host-tools: zephyr 0.16.8 (C:/nordic/toolchains/2d382dcd92/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.8 (C:/nordic/toolchains/2d382dcd92/opt/zephyr-sdk)
    -- Found Dtc: C:/nordic/toolchains/2d382dcd92/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/nordic/v2.8.0/zephyr/boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpuapp.dts
    -- Found devicetree overlay: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/sysbuild/mcuboot/boards/nrf5340dk_nrf5340_cpuapp.overlay
    -- Found devicetree overlay: C:/nordic/v2.8.0/nrf/modules/mcuboot/flash_sim.overlay
    -- Generated zephyr.dts: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/mcuboot/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/mcuboot/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/mcuboot/zephyr/dts.cmake
    Parsing C:/nordic/v2.8.0/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration 'C:/nordic/v2.8.0/zephyr/boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpuapp_defconfig'
    Merged configuration 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/sysbuild/mcuboot/prj.conf'
    Merged configuration 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/sysbuild/mcuboot/boards/nrf5340dk_nrf5340_cpuapp.conf'
    Merged configuration 'C:/nordic/v2.8.0/nrf/subsys/partition_manager/ext_flash_mcuboot_secondary.conf'
    Merged configuration 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/mcuboot/zephyr/.config.sysbuild'
    Configuration saved to 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/mcuboot/zephyr/.config'
    Kconfig header saved to 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/mcuboot/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: c:/nordic/toolchains/2d382dcd92/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (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: C:/nordic/toolchains/2d382dcd92/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Setting build type to 'MinSizeRel' as none was specified.
    MCUBoot bootloader key file: C:/nordic/v2.8.0/bootloader/mcuboot/root-rsa-2048.pem
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/mcuboot
    -- 
       *******************************
       * Running CMake for ipc_radio *
       *******************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/nordic/v2.8.0/nrf/applications/ipc_radio
    -- CMake version: 3.21.0
    -- Using NCS Toolchain 2.8.20241106.194216054162 for building. (C:/nordic/toolchains/2d382dcd92/cmake)
    -- Found Python3: C:/nordic/toolchains/2d382dcd92/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:/nordic/v2.8.0/zephyr/.cache
    -- Zephyr version: 3.7.99 (C:/nordic/v2.8.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf5340dk, qualifiers: nrf5340/cpunet
    -- Found host-tools: zephyr 0.16.8 (C:/nordic/toolchains/2d382dcd92/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.8 (C:/nordic/toolchains/2d382dcd92/opt/zephyr-sdk)
    -- Found Dtc: C:/nordic/toolchains/2d382dcd92/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/nordic/v2.8.0/zephyr/boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpunet.dts
    -- Generated zephyr.dts: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/ipc_radio/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/ipc_radio/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/ipc_radio/zephyr/dts.cmake
    
    warning: EXCEPTION_STACK_TRACE (defined at subsys/debug/Kconfig:388) was assigned the value 'y' but
    got the value 'n'. Check these unsatisfied dependencies: ARCH_STACKWALK (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_EXCEPTION_STACK_TRACE and/or look up
    EXCEPTION_STACK_TRACE 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.
    
    Parsing C:/nordic/v2.8.0/nrf/applications/ipc_radio/Kconfig
    Loaded configuration 'C:/nordic/v2.8.0/zephyr/boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpunet_defconfig'
    Merged configuration 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/sysbuild/ipc_radio/prj.conf'
    Merged configuration 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/sysbuild/ipc_radio/boards/nrf5340dk_nrf5340_cpunet.conf'
    Merged configuration 'C:/nordic/v2.8.0/nrf/applications/ipc_radio/overlay-bt_hci_ipc.conf'
    Merged configuration 'C:/nordic/v2.8.0/nrf/applications/ipc_radio/overlay-802154.conf'
    Merged configuration 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/ipc_radio/zephyr/.config.sysbuild'
    Configuration saved to 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/ipc_radio/zephyr/.config'
    Kconfig header saved to 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/ipc_radio/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: c:/nordic/toolchains/2d382dcd92/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (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: C:/nordic/toolchains/2d382dcd92/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- libmetal version: 1.6.0 (C:/nordic/v2.8.0/nrf/applications/ipc_radio)
    -- Build type:  
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- Looking for include file stdatomic.h
    -- Looking for include file stdatomic.h - found
    -- open-amp version: 1.6.1 (C:/nordic/v2.8.0/modules/lib/open-amp/open-amp)
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- C_FLAGS :  -Wall -Wextra
    -- Looking for include file fcntl.h
    -- Looking for include file fcntl.h - found
    -- Setting build type to 'MinSizeRel' as none was specified.
    CMake Warning at C:/nordic/v2.8.0/zephyr/CMakeLists.txt:952 (message):
      No SOURCES given to Zephyr library: drivers__console
    
      Excluding target from build.
    
    
    CMake Warning at C:/nordic/v2.8.0/zephyr/CMakeLists.txt:2134 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/ipc_radio
    -- 
       *************************
       * Running CMake for b0n *
       *************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/nordic/v2.8.0/nrf/samples/nrf5340/netboot
    -- CMake version: 3.21.0
    -- Using NCS Toolchain 2.8.20241106.194216054162 for building. (C:/nordic/toolchains/2d382dcd92/cmake)
    -- Found Python3: C:/nordic/toolchains/2d382dcd92/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:/nordic/v2.8.0/zephyr/.cache
    -- Zephyr version: 3.7.99 (C:/nordic/v2.8.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf5340dk, qualifiers: nrf5340/cpunet
    -- Found host-tools: zephyr 0.16.8 (C:/nordic/toolchains/2d382dcd92/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.8 (C:/nordic/toolchains/2d382dcd92/opt/zephyr-sdk)
    -- Found Dtc: C:/nordic/toolchains/2d382dcd92/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/nordic/v2.8.0/zephyr/boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpunet.dts
    -- Generated zephyr.dts: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/b0n/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/b0n/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/b0n/zephyr/dts.cmake
    Parsing C:/nordic/v2.8.0/nrf/samples/nrf5340/netboot/Kconfig
    Loaded configuration 'C:/nordic/v2.8.0/zephyr/boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpunet_defconfig'
    Merged configuration 'C:/nordic/v2.8.0/nrf/samples/nrf5340/netboot/prj.conf'
    Merged configuration 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/b0n/zephyr/.config.sysbuild'
    Configuration saved to 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/b0n/zephyr/.config'
    Kconfig header saved to 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/b0n/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: c:/nordic/toolchains/2d382dcd92/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (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: C:/nordic/toolchains/2d382dcd92/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Setting build type to 'MinSizeRel' as none was specified.
    CMake Warning at C:/nordic/v2.8.0/zephyr/CMakeLists.txt:2134 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/b0n
    -- 
       **********************************
       * Running CMake for light_switch *
       **********************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/nordic/v2.8.0/nrf/samples/matter/light_switch
    -- CMake version: 3.21.0
    -- Using NCS Toolchain 2.8.20241106.194216054162 for building. (C:/nordic/toolchains/2d382dcd92/cmake)
    -- Found Python3: C:/nordic/toolchains/2d382dcd92/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:/nordic/v2.8.0/zephyr/.cache
    -- Zephyr version: 3.7.99 (C:/nordic/v2.8.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf5340dk, qualifiers: nrf5340/cpuapp
    -- Found host-tools: zephyr 0.16.8 (C:/nordic/toolchains/2d382dcd92/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.8 (C:/nordic/toolchains/2d382dcd92/opt/zephyr-sdk)
    -- Found Dtc: C:/nordic/toolchains/2d382dcd92/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/nordic/v2.8.0/zephyr/boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpuapp.dts
    -- Found devicetree overlay: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/boards/nrf5340dk_nrf5340_cpuapp.overlay
    -- Generated zephyr.dts: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/light_switch/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/light_switch/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/light_switch/zephyr/dts.cmake
    
    warning: Deprecated symbol NET_SOCKETS_POSIX_NAMES is enabled.
    
    Parsing C:/nordic/v2.8.0/nrf/samples/matter/light_switch/Kconfig
    Loaded configuration 'C:/nordic/v2.8.0/zephyr/boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpuapp_defconfig'
    Merged configuration 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/prj.conf'
    Merged configuration 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/light_switch/zephyr/.config.sysbuild'
    Configuration saved to 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/light_switch/zephyr/.config'
    Kconfig header saved to 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/light_switch/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: c:/nordic/toolchains/2d382dcd92/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (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: C:/nordic/toolchains/2d382dcd92/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    =========== 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: nrf5340
    + Thread version: v1.4
    + OpenThread library feature set: Minimal Thread Device (MTD)
    + Thread device type: Sleepy End Device (SED)
    + OpenThread Library: openthread/lib/nrf5340_cpuapp/soft-float/v1.4/mtd/
    + OpenThread NCS revision: ncs-thread-reference-20241002
    + OpenThread NCS SHA: ee86dc26d
    + NCS revision: v2.8.0
    + NCS SHA: a2386bfc84
    + No differences in the used Thread library in comparison to the NCS v2.8.0 release.
    ###################        END        ###################
    -- libmetal version: 1.6.0 (C:/nordic/v2.8.0/nrf/samples/matter/light_switch)
    -- Build type:  
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- Looking for include file stdatomic.h
    -- Looking for include file stdatomic.h - found
    -- open-amp version: 1.6.1 (C:/nordic/v2.8.0/modules/lib/open-amp/open-amp)
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- C_FLAGS :  -Wall -Wextra
    -- Looking for include file fcntl.h
    -- Looking for include file fcntl.h - found
    -- Setting build type to 'MinSizeRel' as none was specified.
    -- Found Python3: C:/nordic/toolchains/2d382dcd92/opt/bin/python.exe (found version "3.12.4") found components: Interpreter 
    -- Including signing script: C:/nordic/v2.8.0/nrf/cmake/sysbuild/image_signing.cmake
    CMake Warning at C:/nordic/v2.8.0/zephyr/CMakeLists.txt:2134 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/light_switch
    -- Found Python3: C:/nordic/toolchains/2d382dcd92/opt/bin/python.exe (found version "3.12.4") found components: Interpreter 
    CMake Warning at C:/nordic/v2.8.0/nrf/cmake/sysbuild/debug_keys.cmake:21 (message):
    
    
          --------------------------------------------------------------
          --- WARNING: Using generated NSIB public/private key-pair. ---
          --- It should not be used for production.                  ---
          --- See SB_CONFIG_SECURE_BOOT_SIGNING_KEY_FILE             ---
          --------------------------------------------------------------
    
    
    Call Stack (most recent call first):
      C:/nordic/v2.8.0/nrf/cmake/sysbuild/provision_hex.cmake:11 (include)
      C:/nordic/v2.8.0/nrf/sysbuild/CMakeLists.txt:55 (include)
      C:/nordic/v2.8.0/nrf/sysbuild/CMakeLists.txt:620 (include_provision_hex)
      cmake/modules/sysbuild_extensions.cmake:583 (nrf_POST_CMAKE)
      cmake/modules/sysbuild_extensions.cmake:583 (cmake_language)
      cmake/modules/sysbuild_images.cmake:23 (sysbuild_module_call)
      cmake/modules/sysbuild_default.cmake:20 (include)
      C:/nordic/v2.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
      C:/nordic/v2.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      C:/nordic/v2.8.0/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
      template/CMakeLists.txt:10 (find_package)
    
    
    -- Found partition manager static configuration : C:/nordic/v2.8.0/nrf/samples/matter/light_switch/pm_static_nrf5340dk_nrf5340_cpuapp.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 'settings_storage' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_primary_1' 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 'mcuboot_secondary_1' is not included in the dynamic resolving since it is statically defined.
    Partition 'pcd_sram' is not included in the dynamic resolving since it is statically defined.
    Dropping partition 'hw_unique_key_partition' since its size is 0.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build
    ←[92m-- west build: building application
    [0/50] Generating signing key
    [1/50] Creating public key from private key used for signing
    [19/50] Performing build step for 'light_switch'
    [0/1] Re-running CMake...
    Loading Zephyr default modules (Zephyr base (cached)).
    -- Application: C:/nordic/v2.8.0/nrf/samples/matter/light_switch
    -- CMake version: 3.21.0
    -- Using NCS Toolchain 2.8.20241106.194216054162 for building. (C:/nordic/toolchains/2d382dcd92/cmake)
    -- Found Python3: C:/nordic/toolchains/2d382dcd92/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:/nordic/v2.8.0/zephyr/.cache
    -- Zephyr version: 3.7.99 (C:/nordic/v2.8.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf5340dk, qualifiers: nrf5340/cpuapp
    -- Found host-tools: zephyr 0.16.8 (C:/nordic/toolchains/2d382dcd92/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.8 (C:/nordic/toolchains/2d382dcd92/opt/zephyr-sdk)
    -- Found BOARD.dts: C:/nordic/v2.8.0/zephyr/boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpuapp.dts
    -- Found devicetree overlay: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/boards/nrf5340dk_nrf5340_cpuapp.overlay
    -- Generated zephyr.dts: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/light_switch/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/light_switch/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/light_switch/zephyr/dts.cmake
    
    warning: Deprecated symbol NET_SOCKETS_POSIX_NAMES is enabled.
    
    Parsing C:/nordic/v2.8.0/nrf/samples/matter/light_switch/Kconfig
    Loaded configuration 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/light_switch/zephyr/.config'
    Merged configuration 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/light_switch/zephyr/.config.sysbuild'
    No change to configuration in 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/light_switch/zephyr/.config'
    No change to Kconfig header in 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/light_switch/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: nrf5340
    + Thread version: v1.4
    + OpenThread library feature set: Minimal Thread Device (MTD)
    + Thread device type: Sleepy End Device (SED)
    + OpenThread Library: openthread/lib/nrf5340_cpuapp/soft-float/v1.4/mtd/
    + OpenThread NCS revision: ncs-thread-reference-20241002
    + OpenThread NCS SHA: ee86dc26d
    + NCS SHA: a2386bfc84
    + No differences in the used Thread library in comparison to the NCS v2.8.0 release.
    ###################        END        ###################
    -- libmetal version: 1.6.0 (C:/nordic/v2.8.0/nrf/samples/matter/light_switch)
    -- Build type:  MinSizeRel
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- open-amp version: 1.6.1 (C:/nordic/v2.8.0/modules/lib/open-amp/open-amp)
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- C_FLAGS :  -Wall -Wextra
    -- Found Python3: C:/nordic/toolchains/2d382dcd92/opt/bin/python.exe (found version "3.12.4") found components: Interpreter 
    -- Including signing script: C:/nordic/v2.8.0/nrf/cmake/sysbuild/image_signing.cmake
    CMake Warning at C:/nordic/v2.8.0/zephyr/CMakeLists.txt:2134 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/light_switch
    [6/495] Generating include/generated/zephyr/version.h
    -- Zephyr version: 3.7.99 (C:/nordic/v2.8.0/zephyr), build: v3.7.99-ncs1
    [417/495] No configure step for 'chip-gn'
    [418/495] Performing build step for 'chip-gn'
    Starting Matter library build in C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/light_switch/modules/connectedhomeip
    Done. Made 3623 targets from 277 files in 656ms
    [351/351] ar libCHIP.a
    Matter library build complete
    [495/495] Linking CXX executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      708296 B     978432 B     72.39%
                 RAM:      188992 B       440 KB     41.95%
            IDT_LIST:          0 GB        32 KB      0.00%
    Generating files from C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/light_switch/zephyr/zephyr.elf for board: nrf5340dk
    image.py: sign the payload
    image.py: sign the payload
    [22/50] 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
    [24/50] Performing build step for 'mcuboot'
    [6/288] Generating include/generated/zephyr/version.h
    -- Zephyr version: 3.7.99 (C:/nordic/v2.8.0/zephyr), build: v3.7.99-ncs1
    [288/288] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       31716 B        32 KB     96.79%
                 RAM:      290976 B       440 KB     64.58%
            IDT_LIST:          0 GB        32 KB      0.00%
    Generating files from C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/mcuboot/zephyr/zephyr.elf for board: nrf5340dk
    [28/50] Performing build step for 'b0n'
    [4/141] Generating include/generated/zephyr/version.h
    -- Zephyr version: 3.7.99 (C:/nordic/v2.8.0/zephyr), build: v3.7.99-ncs1
    [141/141] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       20422 B      34176 B     59.76%
                 RAM:        3480 B        64 KB      5.31%
               SRAM1:          0 GB        64 KB      0.00%
            IDT_LIST:          0 GB        32 KB      0.00%
    Generating files from C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/b0n/zephyr/zephyr.elf for board: nrf5340dk
    [33/50] Performing build step for 'ipc_radio'
    [4/276] Generating include/generated/zephyr/version.h
    -- Zephyr version: 3.7.99 (C:/nordic/v2.8.0/zephyr), build: v3.7.99-ncs1
    [276/276] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      179244 B       222 KB     78.85%
                 RAM:       55472 B        64 KB     84.64%
               SRAM1:          0 GB        64 KB      0.00%
            IDT_LIST:          0 GB        32 KB      0.00%
    Generating files from C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/ipc_radio/zephyr/zephyr.elf for board: nrf5340dk
    [41/50] Creating data to be provisioned to the Bootloader, storing to net_provision.hex
    [42/50] Creating signature of application
    [43/50] Creating validation for zephyr.hex, storing to signed_by_b0_ipc_radio.hex
    [45/50] Generating ../signed_by_mcuboot_and_b0_ipc_radio.bin
    image.py: sign the payload
    [47/50] Generating ../signed_by_mcuboot_and_b0_ipc_radio.hex
    image.py: sign the payload
    [50/50] Generating ../matter.ota
    
    C:\nordic\v2.8.0\nrf\samples\matter\light_switch>west flash --erase
    -- west flash: rebuilding
    [0/1] Re-running CMake...
    Loading Zephyr module(s) (Zephyr base (cached)): sysbuild_default
    -- Found Python3: C:/nordic/toolchains/2d382dcd92/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:/nordic/v2.8.0/zephyr/.cache
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf5340dk, qualifiers: nrf5340/cpuapp
    Parsing C:/nordic/v2.8.0/nrf/samples/matter/light_switch/Kconfig.sysbuild
    Loaded configuration 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/zephyr/.config'
    No change to configuration in 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/zephyr/.config'
    No change to Kconfig header in 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/_sysbuild/autoconf.h'
    -- 
       *****************************
       * Running CMake for mcuboot *
       *****************************
    
    Loading Zephyr default modules (Zephyr base (cached)).
    -- Application: C:/nordic/v2.8.0/bootloader/mcuboot/boot/zephyr
    -- CMake version: 3.21.0
    -- Using NCS Toolchain 2.8.20241106.194216054162 for building. (C:/nordic/toolchains/2d382dcd92/cmake)
    -- Cache files will be written to: C:/nordic/v2.8.0/zephyr/.cache
    -- Zephyr version: 3.7.99 (C:/nordic/v2.8.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf5340dk, qualifiers: nrf5340/cpuapp
    -- Found host-tools: zephyr 0.16.8 (C:/nordic/toolchains/2d382dcd92/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.8 (C:/nordic/toolchains/2d382dcd92/opt/zephyr-sdk)
    -- Found BOARD.dts: C:/nordic/v2.8.0/zephyr/boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpuapp.dts
    -- Found devicetree overlay: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/sysbuild/mcuboot/boards/nrf5340dk_nrf5340_cpuapp.overlay
    -- Found devicetree overlay: C:/nordic/v2.8.0/nrf/modules/mcuboot/flash_sim.overlay
    -- Generated zephyr.dts: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/mcuboot/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/mcuboot/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/mcuboot/zephyr/dts.cmake
    Parsing C:/nordic/v2.8.0/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/mcuboot/zephyr/.config'
    Merged configuration 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/mcuboot/zephyr/.config.sysbuild'
    No change to configuration in 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/mcuboot/zephyr/.config'
    No change to Kconfig header in 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/mcuboot/zephyr/include/generated/zephyr/autoconf.h'
    MCUBoot bootloader key file: C:/nordic/v2.8.0/bootloader/mcuboot/root-rsa-2048.pem
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/mcuboot
    -- 
       *******************************
       * Running CMake for ipc_radio *
       *******************************
    
    Loading Zephyr default modules (Zephyr base (cached)).
    -- Application: C:/nordic/v2.8.0/nrf/applications/ipc_radio
    -- CMake version: 3.21.0
    -- Using NCS Toolchain 2.8.20241106.194216054162 for building. (C:/nordic/toolchains/2d382dcd92/cmake)
    -- Cache files will be written to: C:/nordic/v2.8.0/zephyr/.cache
    -- Zephyr version: 3.7.99 (C:/nordic/v2.8.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf5340dk, qualifiers: nrf5340/cpunet
    -- Found host-tools: zephyr 0.16.8 (C:/nordic/toolchains/2d382dcd92/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.8 (C:/nordic/toolchains/2d382dcd92/opt/zephyr-sdk)
    -- Found BOARD.dts: C:/nordic/v2.8.0/zephyr/boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpunet.dts
    -- Generated zephyr.dts: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/ipc_radio/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/ipc_radio/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/ipc_radio/zephyr/dts.cmake
    Parsing C:/nordic/v2.8.0/nrf/applications/ipc_radio/Kconfig
    Loaded configuration 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/ipc_radio/zephyr/.config'
    Merged configuration 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/ipc_radio/zephyr/.config.sysbuild'
    No change to configuration in 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/ipc_radio/zephyr/.config'
    No change to Kconfig header in 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/ipc_radio/zephyr/include/generated/zephyr/autoconf.h'
    -- libmetal version: 1.6.0 (C:/nordic/v2.8.0/nrf/applications/ipc_radio)
    -- Build type:  MinSizeRel
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- open-amp version: 1.6.1 (C:/nordic/v2.8.0/modules/lib/open-amp/open-amp)
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- C_FLAGS :  -Wall -Wextra
    CMake Warning at C:/nordic/v2.8.0/zephyr/CMakeLists.txt:952 (message):
      No SOURCES given to Zephyr library: drivers__console
    
      Excluding target from build.
    
    
    CMake Warning at C:/nordic/v2.8.0/zephyr/CMakeLists.txt:2134 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/ipc_radio
    -- 
       *************************
       * Running CMake for b0n *
       *************************
    
    Loading Zephyr default modules (Zephyr base (cached)).
    -- Application: C:/nordic/v2.8.0/nrf/samples/nrf5340/netboot
    -- CMake version: 3.21.0
    -- Using NCS Toolchain 2.8.20241106.194216054162 for building. (C:/nordic/toolchains/2d382dcd92/cmake)
    -- Cache files will be written to: C:/nordic/v2.8.0/zephyr/.cache
    -- Zephyr version: 3.7.99 (C:/nordic/v2.8.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf5340dk, qualifiers: nrf5340/cpunet
    -- Found host-tools: zephyr 0.16.8 (C:/nordic/toolchains/2d382dcd92/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.8 (C:/nordic/toolchains/2d382dcd92/opt/zephyr-sdk)
    -- Found BOARD.dts: C:/nordic/v2.8.0/zephyr/boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpunet.dts
    -- Generated zephyr.dts: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/b0n/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/b0n/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/b0n/zephyr/dts.cmake
    Parsing C:/nordic/v2.8.0/nrf/samples/nrf5340/netboot/Kconfig
    Loaded configuration 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/b0n/zephyr/.config'
    Merged configuration 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/b0n/zephyr/.config.sysbuild'
    No change to configuration in 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/b0n/zephyr/.config'
    No change to Kconfig header in 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/b0n/zephyr/include/generated/zephyr/autoconf.h'
    CMake Warning at C:/nordic/v2.8.0/zephyr/CMakeLists.txt:2134 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/b0n
    -- 
       **********************************
       * Running CMake for light_switch *
       **********************************
    
    Loading Zephyr default modules (Zephyr base (cached)).
    -- Application: C:/nordic/v2.8.0/nrf/samples/matter/light_switch
    -- CMake version: 3.21.0
    -- Using NCS Toolchain 2.8.20241106.194216054162 for building. (C:/nordic/toolchains/2d382dcd92/cmake)
    -- Found Python3: C:/nordic/toolchains/2d382dcd92/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:/nordic/v2.8.0/zephyr/.cache
    -- Zephyr version: 3.7.99 (C:/nordic/v2.8.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf5340dk, qualifiers: nrf5340/cpuapp
    -- Found host-tools: zephyr 0.16.8 (C:/nordic/toolchains/2d382dcd92/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.8 (C:/nordic/toolchains/2d382dcd92/opt/zephyr-sdk)
    -- Found BOARD.dts: C:/nordic/v2.8.0/zephyr/boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpuapp.dts
    -- Found devicetree overlay: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/boards/nrf5340dk_nrf5340_cpuapp.overlay
    -- Generated zephyr.dts: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/light_switch/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/light_switch/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/light_switch/zephyr/dts.cmake
    
    warning: Deprecated symbol NET_SOCKETS_POSIX_NAMES is enabled.
    
    Parsing C:/nordic/v2.8.0/nrf/samples/matter/light_switch/Kconfig
    Loaded configuration 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/light_switch/zephyr/.config'
    Merged configuration 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/light_switch/zephyr/.config.sysbuild'
    No change to configuration in 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/light_switch/zephyr/.config'
    No change to Kconfig header in 'C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/light_switch/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: nrf5340
    + Thread version: v1.4
    + OpenThread library feature set: Minimal Thread Device (MTD)
    + Thread device type: Sleepy End Device (SED)
    + OpenThread Library: openthread/lib/nrf5340_cpuapp/soft-float/v1.4/mtd/
    + OpenThread NCS revision: ncs-thread-reference-20241002
    + OpenThread NCS SHA: ee86dc26d
    + NCS SHA: a2386bfc84
    + No differences in the used Thread library in comparison to the NCS v2.8.0 release.
    ###################        END        ###################
    -- libmetal version: 1.6.0 (C:/nordic/v2.8.0/nrf/samples/matter/light_switch)
    -- Build type:  MinSizeRel
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- open-amp version: 1.6.1 (C:/nordic/v2.8.0/modules/lib/open-amp/open-amp)
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- C_FLAGS :  -Wall -Wextra
    -- Found Python3: C:/nordic/toolchains/2d382dcd92/opt/bin/python.exe (found version "3.12.4") found components: Interpreter 
    -- Including signing script: C:/nordic/v2.8.0/nrf/cmake/sysbuild/image_signing.cmake
    CMake Warning at C:/nordic/v2.8.0/zephyr/CMakeLists.txt:2134 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/light_switch
    -- Found Python3: C:/nordic/toolchains/2d382dcd92/opt/bin/python.exe (found version "3.12.4") found components: Interpreter 
    CMake Warning at C:/nordic/v2.8.0/nrf/cmake/sysbuild/debug_keys.cmake:21 (message):
    
    
          --------------------------------------------------------------
          --- WARNING: Using generated NSIB public/private key-pair. ---
          --- It should not be used for production.                  ---
          --- See SB_CONFIG_SECURE_BOOT_SIGNING_KEY_FILE             ---
          --------------------------------------------------------------
    
    
    Call Stack (most recent call first):
      C:/nordic/v2.8.0/nrf/cmake/sysbuild/provision_hex.cmake:11 (include)
      C:/nordic/v2.8.0/nrf/sysbuild/CMakeLists.txt:55 (include)
      C:/nordic/v2.8.0/nrf/sysbuild/CMakeLists.txt:620 (include_provision_hex)
      cmake/modules/sysbuild_extensions.cmake:583 (nrf_POST_CMAKE)
      cmake/modules/sysbuild_extensions.cmake:583 (cmake_language)
      cmake/modules/sysbuild_images.cmake:23 (sysbuild_module_call)
      cmake/modules/sysbuild_default.cmake:20 (include)
      C:/nordic/v2.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
      C:/nordic/v2.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
      C:/nordic/v2.8.0/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
      template/CMakeLists.txt:10 (find_package)
    
    
    -- Found partition manager static configuration : C:/nordic/v2.8.0/nrf/samples/matter/light_switch/pm_static_nrf5340dk_nrf5340_cpuapp.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 'settings_storage' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_primary_1' 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 'mcuboot_secondary_1' is not included in the dynamic resolving since it is statically defined.
    Partition 'pcd_sram' is not included in the dynamic resolving since it is statically defined.
    Dropping partition 'hw_unique_key_partition' since its size is 0.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build
    [0/26] Performing build step for 'ipc_radio'
    [15/15] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      179244 B       222 KB     78.85%
                 RAM:       55472 B        64 KB     84.64%
               SRAM1:          0 GB        64 KB      0.00%
            IDT_LIST:          0 GB        32 KB      0.00%
    Generating files from C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/ipc_radio/zephyr/zephyr.elf for board: nrf5340dk
    [1/26] Performing build step for 'light_switch'
    [54/149] Performing build step for 'chip-gn'
    Starting Matter library build in C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/light_switch/modules/connectedhomeip
    Done. Made 3623 targets from 277 files in 546ms
    ninja: no work to do.
    Matter library build complete
    [147/147] Linking CXX executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      708296 B     978432 B     72.39%
                 RAM:      188992 B       440 KB     41.95%
            IDT_LIST:          0 GB        32 KB      0.00%
    Generating files from C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/light_switch/zephyr/zephyr.elf for board: nrf5340dk
    image.py: sign the payload
    image.py: sign the payload
    [5/26] Creating signature of application
    [9/26] Performing build step for 'mcuboot'
    [33/33] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       31716 B        32 KB     96.79%
                 RAM:      290976 B       440 KB     64.58%
            IDT_LIST:          0 GB        32 KB      0.00%
    Generating files from C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/mcuboot/zephyr/zephyr.elf for board: nrf5340dk
    [10/26] Creating validation for zephyr.hex, storing to signed_by_b0_ipc_radio.hex
    [14/26] Performing build step for 'b0n'
    [26/26] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       20422 B      34176 B     59.76%
                 RAM:        3480 B        64 KB      5.31%
               SRAM1:          0 GB        64 KB      0.00%
            IDT_LIST:          0 GB        32 KB      0.00%
    Generating files from C:/nordic/v2.8.0/nrf/samples/matter/light_switch/build/b0n/zephyr/zephyr.elf for board: nrf5340dk
    [15/26] Generating ../signed_by_mcuboot_and_b0_ipc_radio.bin
    image.py: sign the payload
    [16/26] Generating ../signed_by_mcuboot_and_b0_ipc_radio.hex
    image.py: sign the payload
    [26/26] Generating ../merged_CPUNET.hex
    WARNING: Specifying runner options for multiple domains is experimental.
    If problems are experienced, please specify a single domain using '--domain <domain>'
    -- west flash: using runner nrfjprog
    -- runners.nrfjprog: mass erase requested
    -- runners.nrfjprog: reset after flashing requested
    Using board 960156581
    -- runners.nrfjprog: Flashing file: C:\nordic\v2.8.0\nrf\samples\matter\light_switch\build\merged_CPUNET.hex
    [ #################### ]   0.351s | Erase file - Done erasing
    [ #################### ]   1.392s | Program file - Done programming
    [ #################### ]   1.401s | Verify file - Done verifying
    Applying pin reset.
    -- runners.nrfjprog: Board with serial number 960156581 flashed successfully.
    -- west flash: using runner nrfjprog
    -- runners.nrfjprog: mass erase requested
    -- runners.nrfjprog: reset after flashing requested
    Using board 960156581
    -- runners.nrfjprog: Flashing file: C:\nordic\v2.8.0\nrf\samples\matter\light_switch\build\merged.hex
    [ #################### ]   0.448s | Erase file - Done erasing
    [ #################### ]   5.168s | Program file - Done programming
    [ #################### ]   5.192s | Verify file - Done verifying
    Applying pin reset.
    -- runners.nrfjprog: Board with serial number 960156581 flashed successfully.
    
    C:\nordic\v2.8.0\nrf\samples\matter\light_switch>

    Firmware: 2335.merged.hex

    Device log output:

    uart:~$ *** Booting My Application v2.8.0-a2386bfc8401 ***
    *** Using nRF Connect SDK v2.8.0-a2386bfc8401 ***
    *** Using Zephyr OS v3.7.99-0bc3393fb112 ***
    I: 273 [DL]BLE address: E0:A9:98:20:63:B7
    I: 297 [DL]CHIP task running
    I: Init CHIP stack
    I: 302 [DL]OpenThread started: OK
    I: 305 [DL]Setting OpenThread device type to SLEEPY END DEVICE
    I: 311 [DL]Found DAC Private Key in factory data set. Copying to secure storage...
    D: Registered new test event: 0xffffffff00000000
    D: Registered new test event: 0xffffffff10000000
    I: 331 [SVR]Subscription persistence not supported
    I: 335 [SVR]Server initializing...
    I: 338 [TS]Last Known Good Time: [unknown]
    I: 342 [TS]Setting Last Known Good Time to firmware build time 2023-10-14T01:16:48
    I: 351 [DMG]AccessControl: initializing
    I: 354 [DMG]Examples::AccessControlDelegate::Init
    I: 359 [DMG]AccessControl: setting
    I: 362 [DMG]DefaultAclStorage: initializing
    I: 366 [DMG]DefaultAclStorage: 0 entries loaded
    D: 370 [IN]UDP::Init bind&listen port=5540
    E: 374 [IN]IPV6_PKTINFO failed: 109
    D: 377 [IN]UDP::Init bound to port=5540
    D: 380 [IN]BLEBase::Init - setting/overriding transport
    D: 385 [IN]TransportMgr initialized
    D: 391 [DL]Using Thread extended MAC for hostname.
    I: 397 [ZCL]Using ZAP configuration...
    I: 401 [DMG]AccessControlCluster: initializing
    D: 406 [DL]Boot reason: 1
    I: 408 [ZCL]Initiating Admin Commissioning cluster.
    D: 414 [IN]SecureSession[0x200046f8]: Allocated Type:1 LSID:6000
    D: 419 [DL]CHIPoBLE advertising set to on
    I: 423 [DIS]Updating services using commissioning mode 1
    E: 428 [DIS]Failed to remove advertised services: 3
    D: 433 [DL]Using Thread extended MAC for hostname.
    I: 437 [DIS]Advertise commission parameter vendorID=65521 productID=32772 discriminator=3840/15 cm=1 cp=0
    ...

    I tested with nRF5340DK HW v0.11.0.

    Best regards,

    Charlie

  • No problem, let me know if you figure out the issue.

Related