Trying to build matter thermostat example for 54l15dk, 2.8.0 Intel MacBook Pro, normal build using VSCODE or command line works. Flash from VSCODE fails, program using programmer, Precise data bus error

The 52840 chip is stable with this and I have extended the code for my project, but I can't seem to get the 54L15 to be stable.

I will add the coredump and rebuild as well, but I think just trying this, commission on Apple and wait and you will get the crash as well, also you can try building with debug and it should crash on commission.

Build in vscode

 *  Executing task: nRF Connect: Generate config nrf54l15dk/nrf54l15/cpuapp for /Users/stevenriedl/Github/thermostat_3 

Building thermostat_3
west build --build-dir /Users/stevenriedl/Github/thermostat_3/build /Users/stevenriedl/Github/thermostat_3 --pristine --board nrf54l15dk/nrf54l15/cpuapp -- -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=/Users/stevenriedl/Github/thermostat_3

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

Loading Zephyr default modules (Zephyr base).
-- Application: /opt/nordic/ncs/v2.8.0/bootloader/mcuboot/boot/zephyr
-- CMake version: 3.21.0
-- Found Python3: /opt/nordic/ncs/toolchains/15b490767d/bin/python (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /Users/stevenriedl/Library/Caches/zephyr
-- Zephyr version: 3.7.99 (/opt/nordic/ncs/v2.8.0/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.16.8 (/opt/nordic/ncs/toolchains/15b490767d/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.8 (/opt/nordic/ncs/toolchains/15b490767d/opt/zephyr-sdk)
-- Found Dtc: /opt/nordic/ncs/toolchains/15b490767d/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6") 
-- Found BOARD.dts: /opt/nordic/ncs/v2.8.0/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp.dts
-- Found devicetree overlay: /Users/stevenriedl/Github/thermostat_3/sysbuild/mcuboot/boards/nrf54l15dk_nrf54l15_cpuapp.overlay
unit address and first address in 'reg' (0x5004c000) don't match for /soc/peripheral@50000000/vpr@4c000/mailbox@1
-- Generated zephyr.dts: /Users/stevenriedl/Github/thermostat_3/build/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /Users/stevenriedl/Github/thermostat_3/build/mcuboot/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: /Users/stevenriedl/Github/thermostat_3/build/mcuboot/zephyr/dts.cmake
Parsing /opt/nordic/ncs/v2.8.0/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration '/opt/nordic/ncs/v2.8.0/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp_defconfig'
Merged configuration '/Users/stevenriedl/Github/thermostat_3/sysbuild/mcuboot/prj.conf'
Merged configuration '/Users/stevenriedl/Github/thermostat_3/sysbuild/mcuboot/boards/nrf54l15dk_nrf54l15_cpuapp.conf'
Merged configuration '/opt/nordic/ncs/v2.8.0/nrf/subsys/partition_manager/ext_flash_mcuboot_secondary.conf'
Merged configuration '/Users/stevenriedl/Github/thermostat_3/build/mcuboot/zephyr/.config.sysbuild'
Configuration saved to '/Users/stevenriedl/Github/thermostat_3/build/mcuboot/zephyr/.config'
Kconfig header saved to '/Users/stevenriedl/Github/thermostat_3/build/mcuboot/zephyr/include/generated/zephyr/autoconf.h'
-- Found GnuLd: /opt/nordic/ncs/toolchains/15b490767d/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/15b490767d/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Setting build type to 'MinSizeRel' as none was specified.
-- Using ccache: /opt/nordic/ncs/toolchains/15b490767d/bin/ccache
MCUBoot bootloader key file: /opt/nordic/ncs/v2.8.0/bootloader/mcuboot/root-rsa-2048.pem
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/stevenriedl/Github/thermostat_3/build/mcuboot
-- 
   **********************************
   * Running CMake for thermostat_3 *
   **********************************

-- Application: /Users/stevenriedl/Github/thermostat_3
-- CMake version: 3.21.0
Loading Zephyr default modules (Zephyr base).
-- Found Python3: /opt/nordic/ncs/toolchains/15b490767d/bin/python (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /Users/stevenriedl/Library/Caches/zephyr
-- Zephyr version: 3.7.99 (/opt/nordic/ncs/v2.8.0/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.16.8 (/opt/nordic/ncs/toolchains/15b490767d/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.8 (/opt/nordic/ncs/toolchains/15b490767d/opt/zephyr-sdk)
-- Found Dtc: /opt/nordic/ncs/toolchains/15b490767d/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6") 
-- Found BOARD.dts: /opt/nordic/ncs/v2.8.0/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp.dts
-- Found devicetree overlay: /Users/stevenriedl/Github/thermostat_3/boards/nrf54l15dk_nrf54l15_cpuapp.overlay
unit address and first address in 'reg' (0x5004c000) don't match for /soc/peripheral@50000000/vpr@4c000/mailbox@1
-- Generated zephyr.dts: /Users/stevenriedl/Github/thermostat_3/build/thermostat_3/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /Users/stevenriedl/Github/thermostat_3/build/thermostat_3/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: /Users/stevenriedl/Github/thermostat_3/build/thermostat_3/zephyr/dts.cmake

warning: Deprecated symbol NET_SOCKETS_POSIX_NAMES is enabled.

Parsing /Users/stevenriedl/Github/thermostat_3/Kconfig
Loaded configuration '/opt/nordic/ncs/v2.8.0/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp_defconfig'
Merged configuration '/Users/stevenriedl/Github/thermostat_3/prj.conf'
Merged configuration '/Users/stevenriedl/Github/thermostat_3/boards/nrf54l15dk_nrf54l15_cpuapp.conf'
Merged configuration '/Users/stevenriedl/Github/thermostat_3/build/thermostat_3/zephyr/.config.sysbuild'
Configuration saved to '/Users/stevenriedl/Github/thermostat_3/build/thermostat_3/zephyr/.config'
Kconfig header saved to '/Users/stevenriedl/Github/thermostat_3/build/thermostat_3/zephyr/include/generated/zephyr/autoconf.h'
-- Found GnuLd: /opt/nordic/ncs/toolchains/15b490767d/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/15b490767d/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/nrf54l15_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        ###################
-- Setting build type to 'MinSizeRel' as none was specified.
-- Using ccache: /opt/nordic/ncs/toolchains/15b490767d/bin/ccache
-- Found Python3: /opt/nordic/ncs/toolchains/15b490767d/bin/python (found version "3.12.4") found components: Interpreter 
-- Including signing script: /opt/nordic/ncs/v2.8.0/nrf/cmake/sysbuild/image_signing.cmake
CMake Warning at /opt/nordic/ncs/v2.8.0/zephyr/CMakeLists.txt:2134 (message):
  __ASSERT() statements are globally ENABLED


-- Configuring done
-- Generating done
-- Build files have been written to: /Users/stevenriedl/Github/thermostat_3/build/thermostat_3
-- Found Python3: /opt/nordic/ncs/toolchains/15b490767d/opt/[email protected]/bin/python3.12 (found version "3.12.4") found components: Interpreter 
-- Found partition manager static configuration : /Users/stevenriedl/Github/thermostat_3/pm_static_nrf54l15dk_nrf54l15_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_secondary' is not included in the dynamic resolving since it is statically defined.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/stevenriedl/Github/thermostat_3/build
-- west build: building application
[0/1] Re-running CMake...
Loading Zephyr default modules (Zephyr base (cached)).
-- Application: /Users/stevenriedl/Github/thermostat_3
-- CMake version: 3.21.0
-- Found Python3: /opt/nordic/ncs/toolchains/15b490767d/bin/python (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /Users/stevenriedl/Library/Caches/zephyr
-- Zephyr version: 3.7.99 (/opt/nordic/ncs/v2.8.0/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.16.8 (/opt/nordic/ncs/toolchains/15b490767d/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.8 (/opt/nordic/ncs/toolchains/15b490767d/opt/zephyr-sdk)
-- Found BOARD.dts: /opt/nordic/ncs/v2.8.0/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp.dts
-- Found devicetree overlay: /Users/stevenriedl/Github/thermostat_3/boards/nrf54l15dk_nrf54l15_cpuapp.overlay
unit address and first address in 'reg' (0x5004c000) don't match for /soc/peripheral@50000000/vpr@4c000/mailbox@1
-- Generated zephyr.dts: /Users/stevenriedl/Github/thermostat_3/build/thermostat_3/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /Users/stevenriedl/Github/thermostat_3/build/thermostat_3/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: /Users/stevenriedl/Github/thermostat_3/build/thermostat_3/zephyr/dts.cmake

warning: Deprecated symbol NET_SOCKETS_POSIX_NAMES is enabled.

Parsing /Users/stevenriedl/Github/thermostat_3/Kconfig
Loaded configuration '/Users/stevenriedl/Github/thermostat_3/build/thermostat_3/zephyr/.config'
Merged configuration '/Users/stevenriedl/Github/thermostat_3/build/thermostat_3/zephyr/.config.sysbuild'
No change to configuration in '/Users/stevenriedl/Github/thermostat_3/build/thermostat_3/zephyr/.config'
No change to Kconfig header in '/Users/stevenriedl/Github/thermostat_3/build/thermostat_3/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/nrf54l15_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        ###################
-- Using ccache: /opt/nordic/ncs/toolchains/15b490767d/bin/ccache
-- Found Python3: /opt/nordic/ncs/toolchains/15b490767d/bin/python (found version "3.12.4") found components: Interpreter 
-- Including signing script: /opt/nordic/ncs/v2.8.0/nrf/cmake/sysbuild/image_signing.cmake
CMake Warning at /opt/nordic/ncs/v2.8.0/zephyr/CMakeLists.txt:2134 (message):
  __ASSERT() statements are globally ENABLED


-- Configuring done
-- Generating done
-- Build files have been written to: /Users/stevenriedl/Github/thermostat_3/build/thermostat_3
[1/552] Preparing syscall dependency handling

[8/552] Generating include/generated/zephyr/version.h
-- Zephyr version: 3.7.99 (/opt/nordic/ncs/v2.8.0/zephyr), build: v3.7.99-ncs1
[456/552] Performing build step for 'chip-gn'
Starting Matter library build in /Users/stevenriedl/Github/thermostat_3/build/thermostat_3/modules/connectedhomeip
Done. Made 3623 targets from 277 files in 1625ms
[348/348] ar libCHIP.a
Matter library build complete
[552/552] Linking CXX executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:      805800 B      1430 KB     55.03%
             RAM:      188360 B       256 KB     71.85%
        IDT_LIST:          0 GB        32 KB      0.00%
Generating files from /Users/stevenriedl/Github/thermostat_3/build/thermostat_3/zephyr/zephyr.elf for board: nrf54l15dk
image.py: sign the payload
image.py: sign the payload
[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
[1/295] Preparing syscall dependency handling

[8/295] Generating include/generated/zephyr/version.h
-- Zephyr version: 3.7.99 (/opt/nordic/ncs/v2.8.0/zephyr), build: v3.7.99-ncs1
[295/295] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       40622 B        48 KB     82.65%
             RAM:       29504 B       256 KB     11.25%
        IDT_LIST:          0 GB        32 KB      0.00%
Generating files from /Users/stevenriedl/Github/thermostat_3/build/mcuboot/zephyr/zephyr.elf for board: nrf54l15dk
[23/23] Generating ../merged.hex
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: nRF Connect: Build: thermostat_3/build (active) 

Building thermostat_3
west build --build-dir /Users/stevenriedl/Github/thermostat_3/build /Users/stevenriedl/Github/thermostat_3

[0/1] Re-running CMake...
Loading Zephyr module(s) (Zephyr base (cached)): sysbuild_default
-- Found Python3: /opt/nordic/ncs/toolchains/15b490767d/opt/[email protected]/bin/python3.12 (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /Users/stevenriedl/Library/Caches/zephyr
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf54l15dk, qualifiers: nrf54l15/cpuapp
Parsing /Users/stevenriedl/Github/thermostat_3/Kconfig.sysbuild
Loaded configuration '/Users/stevenriedl/Github/thermostat_3/build/zephyr/.config'
No change to configuration in '/Users/stevenriedl/Github/thermostat_3/build/zephyr/.config'
No change to Kconfig header in '/Users/stevenriedl/Github/thermostat_3/build/_sysbuild/autoconf.h'
-- 
   *****************************
   * Running CMake for mcuboot *
   *****************************

Loading Zephyr default modules (Zephyr base (cached)).
-- Application: /opt/nordic/ncs/v2.8.0/bootloader/mcuboot/boot/zephyr
-- CMake version: 3.21.0
-- Cache files will be written to: /Users/stevenriedl/Library/Caches/zephyr
-- Zephyr version: 3.7.99 (/opt/nordic/ncs/v2.8.0/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.16.8 (/opt/nordic/ncs/toolchains/15b490767d/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.8 (/opt/nordic/ncs/toolchains/15b490767d/opt/zephyr-sdk)
-- Found BOARD.dts: /opt/nordic/ncs/v2.8.0/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp.dts
-- Found devicetree overlay: /Users/stevenriedl/Github/thermostat_3/sysbuild/mcuboot/boards/nrf54l15dk_nrf54l15_cpuapp.overlay
unit address and first address in 'reg' (0x5004c000) don't match for /soc/peripheral@50000000/vpr@4c000/mailbox@1
-- Generated zephyr.dts: /Users/stevenriedl/Github/thermostat_3/build/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /Users/stevenriedl/Github/thermostat_3/build/mcuboot/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: /Users/stevenriedl/Github/thermostat_3/build/mcuboot/zephyr/dts.cmake
Parsing /opt/nordic/ncs/v2.8.0/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration '/Users/stevenriedl/Github/thermostat_3/build/mcuboot/zephyr/.config'
Merged configuration '/Users/stevenriedl/Github/thermostat_3/build/mcuboot/zephyr/.config.sysbuild'
No change to configuration in '/Users/stevenriedl/Github/thermostat_3/build/mcuboot/zephyr/.config'
No change to Kconfig header in '/Users/stevenriedl/Github/thermostat_3/build/mcuboot/zephyr/include/generated/zephyr/autoconf.h'
-- Using ccache: /opt/nordic/ncs/toolchains/15b490767d/bin/ccache
MCUBoot bootloader key file: /opt/nordic/ncs/v2.8.0/bootloader/mcuboot/root-rsa-2048.pem
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/stevenriedl/Github/thermostat_3/build/mcuboot
-- 
   **********************************
   * Running CMake for thermostat_3 *
   **********************************

Loading Zephyr default modules (Zephyr base (cached)).
-- Application: /Users/stevenriedl/Github/thermostat_3
-- CMake version: 3.21.0
-- Found Python3: /opt/nordic/ncs/toolchains/15b490767d/bin/python (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /Users/stevenriedl/Library/Caches/zephyr
-- Zephyr version: 3.7.99 (/opt/nordic/ncs/v2.8.0/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.16.8 (/opt/nordic/ncs/toolchains/15b490767d/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.8 (/opt/nordic/ncs/toolchains/15b490767d/opt/zephyr-sdk)
-- Found BOARD.dts: /opt/nordic/ncs/v2.8.0/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp.dts
-- Found devicetree overlay: /Users/stevenriedl/Github/thermostat_3/boards/nrf54l15dk_nrf54l15_cpuapp.overlay
unit address and first address in 'reg' (0x5004c000) don't match for /soc/peripheral@50000000/vpr@4c000/mailbox@1
-- Generated zephyr.dts: /Users/stevenriedl/Github/thermostat_3/build/thermostat_3/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /Users/stevenriedl/Github/thermostat_3/build/thermostat_3/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: /Users/stevenriedl/Github/thermostat_3/build/thermostat_3/zephyr/dts.cmake

warning: Deprecated symbol NET_SOCKETS_POSIX_NAMES is enabled.

Parsing /Users/stevenriedl/Github/thermostat_3/Kconfig
Loaded configuration '/Users/stevenriedl/Github/thermostat_3/build/thermostat_3/zephyr/.config'
Merged configuration '/Users/stevenriedl/Github/thermostat_3/build/thermostat_3/zephyr/.config.sysbuild'
No change to configuration in '/Users/stevenriedl/Github/thermostat_3/build/thermostat_3/zephyr/.config'
No change to Kconfig header in '/Users/stevenriedl/Github/thermostat_3/build/thermostat_3/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/nrf54l15_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        ###################
-- Using ccache: /opt/nordic/ncs/toolchains/15b490767d/bin/ccache
-- Found Python3: /opt/nordic/ncs/toolchains/15b490767d/bin/python (found version "3.12.4") found components: Interpreter 
-- Including signing script: /opt/nordic/ncs/v2.8.0/nrf/cmake/sysbuild/image_signing.cmake
CMake Warning at /opt/nordic/ncs/v2.8.0/zephyr/CMakeLists.txt:2134 (message):
  __ASSERT() statements are globally ENABLED


-- Configuring done
-- Generating done
-- Build files have been written to: /Users/stevenriedl/Github/thermostat_3/build/thermostat_3
-- Found Python3: /opt/nordic/ncs/toolchains/15b490767d/opt/[email protected]/bin/python3.12 (found version "3.12.4") found components: Interpreter 
-- Found partition manager static configuration : /Users/stevenriedl/Github/thermostat_3/pm_static_nrf54l15dk_nrf54l15_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_secondary' is not included in the dynamic resolving since it is statically defined.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/stevenriedl/Github/thermostat_3/build
[29/29] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       40622 B        48 KB     82.65%
             RAM:       29504 B       256 KB     11.25%
        IDT_LIST:          0 GB        32 KB      0.00%
Generating files from /Users/stevenriedl/Github/thermostat_3/build/mcuboot/zephyr/zephyr.elf for board: nrf54l15dk
[57/158] Performing build step for 'chip-gn'
Starting Matter library build in /Users/stevenriedl/Github/thermostat_3/build/thermostat_3/modules/connectedhomeip
Done. Made 3623 targets from 277 files in 628ms
ninja: no work to do.
Matter library build complete
[156/156] Linking CXX executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:      805800 B      1430 KB     55.03%
             RAM:      188360 B       256 KB     71.85%
        IDT_LIST:          0 GB        32 KB      0.00%
Generating files from /Users/stevenriedl/Github/thermostat_3/build/thermostat_3/zephyr/zephyr.elf for board: nrf54l15dk
image.py: sign the payload
image.py: sign the payload
[12/12] Generating ../merged.hex
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: nRF Connect: Flash: thermostat_3/build (active) 

Flashing build to 1057730902
west flash -d /Users/stevenriedl/Github/thermostat_3/build --skip-rebuild --dev-id 1057730902 --erase

-- west flash: using runner nrfutil
-- runners.nrfutil: mass erase requested
-- runners.nrfutil: reset after flashing requested
-- runners.nrfutil: Flashing file: /Users/stevenriedl/Github/thermostat_3/build/merged.hex
Error: nrfutil command `device` not found. See `nrfutil list` for full list of installed commands, `nrfutil search` for installable commands, and `nrfutil install` for installation of new commands.

Caused by:
    Subcommand nrfutil-device not found
-- runners.nrfutil: Board with serial number 1057730902 flashed successfully.
 *  Terminal will be reused by tasks, press any key to close it. 

Initial boot and commission works

uart:~$ *** Booting My Application v2.8.0-a31d2786ed4c ***
*** Using nRF Connect SDK v2.8.0-a2386bfc8401 ***
*** Using Zephyr OS v3.7.99-0bc3393fb112 ***
I: 1406 [DL]BLE address: D8:24:72:E2:16:48
I: 1413 [DL]CHIP task running
I: Init CHIP stack
I: 1418 [DL]OpenThread started: OK
I: 1421 [DL]Setting OpenThread device type to MINIMAL END DEVICE
I: 1427 [DL]Found DAC Private Key in factory data set. Copying to secure storage...
I: 1439 [DL]The device does not support hardware protection against write.
D: Registered new test event: 0xffffffff00000000
D: Registered new test event: 0xffffffff10000000
I: 1454 [SVR]Subscription persistence not supported
I: 1458 [SVR]Server initializing...
I: 1462 [TS]Last Known Good Time: [unknown]
I: 1465 [TS]Setting Last Known Good Time to firmware build time 2023-10-14T01:16:48
I: 1474 [DMG]AccessControl: initializing
I: 1478 [DMG]Examples::AccessControlDelegate::Init
I: 1482 [DMG]AccessControl: setting
I: 1485 [DMG]DefaultAclStorage: initializing
I: 1489 [DMG]DefaultAclStorage: 0 entries loaded
D: 1493 [IN]UDP::Init bind&listen port=5540
E: 1497 [IN]IPV6_PKTINFO failed: 109
D: 1501 [IN]UDP::Init bound to port=5540
D: 1504 [IN]BLEBase::Init - setting/overriding transport
D: 1509 [IN]TransportMgr initialized
D: 1515 [DL]Using Thread extended MAC for hostname.
I: 1521 [ZCL]Using ZAP configuration...
I: 1525 [DMG]AccessControlCluster: initializing
I: 1530 [ZCL]Cluster callback: 0x0000_0030
D: 1533 [DL]Boot reason: 1
I: 1536 [ZCL]Initiating Admin Commissioning cluster.
I: 1541 [ZCL]Cluster callback: 0x0000_0003
I: 1544 [ZCL]Identify attribute ID: 0x0000_0001 Type: 48 Value: 2, length 1
I: 1551 [ZCL]Cluster callback: 0x0000_0004
I: 1555 [ZCL]Cluster callback: 0x0000_0004
D: 1559 [IN]SecureSession[0x20004400]: Allocated Type:1 LSID:30654
D: 1565 [DL]CHIPoBLE advertising set to on
I: 1569 [DIS]Updating services using commissioning mode 1
E: 1574 [DIS]Failed to remove advertised services: 3
D: 1578 [DL]Using Thread extended MAC for hostname.
I: 1583 [DIS]Advertise commission parameter vendorID=65521 productID=32782 discriminator=3840/15 cm=1 cp=0
E: 1592 [DIS]Failed to advertise commissionable node: 3
E: 1597 [DIS]Failed to finalize service update: 3
I: 1602 [DIS]Updating services using commissioning mode 1
E: 1607 [DIS]Failed to remove advertised services: 3
D: 1611 [DL]Using Thread extended MAC for hostname.
I: 1616 [DIS]Advertise commission parameter vendorID=65521 productID=32782 discriminator=3840/15 cm=1 cp=0
E: 1625 [DIS]Failed to advertise commissionable node: 3
E: 1630 [DIS]Failed to finalize service update: 3
I: 1634 [IN]CASE Server enabling CASE session setups
D: 1639 [IN]SecureSession[0x200044d0]: Allocated Type:2 LSID:30655
I: 1645 [SVR]Joining Multicast groups
I: 1649 [SVR]Server Listening...
I: 1651 [DL]Device Configuration:
I: 1654 [DL]  Serial Number: 11223344556677889900
I: 1659 [DL]  Vendor Id: 65521 (0xFFF1)
I: 1662 [DL]  Product Id: 32782 (0x800E)
I: 1666 [DL]  Product Name: not-specified
I: 1670 [DL]  Hardware Version: 0
I: 1673 [DL]  Setup Pin Code (0 for UNKNOWN/ERROR): 20202021
I: 1678 [DL]  Setup Discriminator (0xFFFF for UNKNOWN/ERROR): 3840 (0xF00)
I: 1685 [DL]  Manufacturing Date: 2022-01-01
I: 1688 [DL]  Device Type: 65535 (0xFFFF)
I: 1692 [SVR]SetupQRCode: [MT:O4CT342C00KA0648G00]
I: 1697 [SVR]Copy/paste the below URL in a browser to see the QR Code:
I: 1703 [SVR]https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3AO4CT342C00KA0648G00
I: 1712 [SVR]Manual pairing code: [34970112332]
I: 1716 [ZCL]Cluster callback: 0x0000_0201
I: Thermostat:
I:      Mode - 0
I:      LocalTemperature - No Value
I:      OutdoorTemperature - No Value
I:      HeatingSetpoint - 0,0'C
I:      CoolingSetpoint - 0,0'C 

I: 1734 [ZCL]Cluster callback: 0x0000_0201
I: Thermostat:
I:      Mode - 0
I:      LocalTemperature - No Value
I:      OutdoorTemperature - No Value
I:      HeatingSetpoint - 0,0'C
I:      CoolingSetpoint - 0,0'C 

I: Initialize binding Handler
I: 1754 [SVR]Cannot load binding table: a0
I: Binding Table size: [0]:
I: 1760 [ZCL]Cluster callback: 0x0000_0201
I: Thermostat:
I:      Mode - 0
I:      LocalTemperature - 20,0'C
I:      OutdoorTemperature - No Value
I:      HeatingSetpoint - 0,0'C
I:      CoolingSetpoint - 0,0'C 

After random interval 5-30 minutes usually it crashes

I: 9311802 [EM]<<< [E:15176i S:33333 M:258404860] (S) Msg TX to 1:00000000B717E355 [7653] [UDP:[fd53:5edf:a58c:0:1e19:6470:2715:f430]:56180] --- Type 0001:05 (IM:ReportData)
I: NO DEVICE BOUND
I: 9311860 [EM]>>> [E:15176i S:33333 M:44246942 (Ack:258404860)] (S) Msg RX from 1:00000000B717E355 [7653] --- Type 0001:01 (IM:StatusResponse)
I: 9311872 [IM]Received status response, status is 0x00
I: 9311878 [EM]<<< [E:15176i S:33333 M:258404861 (Ack:44246942)] (S) Msg TX to 1:00000000B717E355 [7653] [UDP:[fd53:5edf:a58c:0:1e19:6470:2715:f430]:56180] --- Type 0000:10 (SecureChannel:StandaloneAck)
I: 9341780 [ZCL]Cluster callback: 0x0000_0201
I: Thermostat:
I: Mode - 4
I: LocalTemperature - 16,0'C
I: OutdoorTemperature - No Value
I: HeatingSetpoint - 16,1'C
I: CoolingSetpoint - 26,0'C

I: 9341802 [EM]<<< [E:15177i S:33333 M:258404862] (S) Msg TX to 1:00000000B717E355 [7653] [UDP:[fd53:5edf:a58c:0:1e19:6470:2715:f430]:56180] --- Type 0001:05 (IM:ReportData)
I: NO DEVICE BOUND
I: 9341862 [EM]>>> [E:15177i S:33333 M:44246943 (Ack:258404862)] (S) Msg RX from 1:00000000B717E355 [7653] --- Type 0001:01 (IM:StatusResponse)
I: 9341874 [IM]Received status response, status is 0x00
I: 9341880 [EM]<<< [E:15177i S:33333 M:258404863 (Ack:44246943)] (S) Msg TX to 1:00000000B717E355 [7653] [UDP:[fd53:5edf:a58c:0:1e19:6470:2715:f430]:56180] --- Type 0000:10 (SecureChannel:StandaloneAck)
I: 9371780 [ZCL]Cluster callback: 0x0000_0201
I: Thermostat:
I: Mode - 4
I: LocalTemperature - 16,0'C
I: OutdoorTemperature - No Value
I: HeatingSetpoint - 16,1'C
I: CoolingSetpoint - 26,0'C

E: ***** BUS FAULT *****
E: Precise data bus error
E: BFAR Address: 0x8
E: r0/a1: 0x00000000 r1/a2: 0x00000000 r2/a3: 0x2000eef0
E: r3/a4: 0x00000000 r12/ip: 0x000bc128 r14/lr: 0x00056f1b
E: xpsr: 0x49000000
E: Faulting instruction address (r15/pc): 0x0001fc30
E: >>> ZEPHYR FATAL ERROR 25: Unknown error on CPU 0
E: Current thread: 0x2000eef0 (main)
E: Halting system

I can add a coredump to the prj file and get the core dump, have not been able to do much to debug the issue with that.

When I turn on the -Og flag for debugging, It crashes immediately when trying to commission it.

  • Hi,

    I see in your build log that you are building for non-secure (*/ns). This is not officially supported in the sample. Can you try building without /ns, i.e., using nrf54l15pdk/nrf54l15/cpuapp as the board target?

    Best regards,
    Marte

  • Yes, but you need to work on your error messages, when I was about to do the build without ns, it warned me that that build was unsecured and not supported....

    So I'll give that a try with VScode and programmer

  • OK, did the build, it at least does no panic, It gets further in the authentication process, apple asks to addd a non qualified device, I say yes, and it fails getting added

    I: NO DEVICE BOUND
    D: 363112 [DL]Sending indication for CHIPoBLE TX characteristic (ConnId 00, len 3)
    D: 363183 [DL]Indication for CHIPoBLE TX characteristic done (ConnId 0x00, result 0x00)
    D: 365644 [DL]Write request received for CHIPoBLE RX characteristic (ConnId 0x00)
    D: 368151 [DL]Sending indication for CHIPoBLE TX characteristic (ConnId 00, len 3)
    D: 368224 [DL]Indication for CHIPoBLE TX characteristic done (ConnId 0x00, result 0x00)
    D: 370744 [DL]Write request received for CHIPoBLE RX characteristic (ConnId 0x00)
    D: 373251 [DL]Sending indication for CHIPoBLE TX characteristic (ConnId 00, len 3)
    D: 373324 [DL]Indication for CHIPoBLE TX characteristic done (ConnId 0x00, result 0x00)
    D: 375805 [DL]Write request received for CHIPoBLE RX characteristic (ConnId 0x00)
    D: 378313 [DL]Sending indication for CHIPoBLE TX characteristic (ConnId 00, len 3)
    D: 378386 [DL]Indication for CHIPoBLE TX characteristic done (ConnId 0x00, result 0x00)
    D: 380846 [DL]Write request received for CHIPoBLE RX characteristic (ConnId 0x00)
    I: 382493 [FS]Fail-safe timer expired
    E: 382497 [SVR]Failsafe timer expired
    D: 382500 [IN]SecureSession[0x20004280]: MarkForEviction Type:1 LSID:6851
    I: 382507 [SC]SecureSession[0x20004280, LSID:6851]: State change 'kActive' --> 'kPendingEviction'
    D: 382515 [IN]SecureSession[0x20004280]: Released - Type:1 LSID:6851
    E: 382521 [SVR]Commissioning failed (attempt 1): 32
    D: 382526 [IN]Clearing BLE pending packets.
    I: 382530 [BLE]Releasing end point's BLE connection back to application.
    I: 382536 [DL]Closing BLE GATT connection (ConnId 00)
    D: 382542 [IN]SecureSession[0x20004280]: Allocated Type:1 LSID:6853
    D: 382548 [DL]CHIPoBLE advertising set to on
    I: 382552 [DIS]Updating services using commissioning mode 1
    E: 382557 [DIS]Failed to remove advertised services: 3
    D: 382562 [DL]Using Thread extended MAC for hostname.
    I: 382567 [DIS]Advertise operational node C804B5023B4F7653-00000000F590BF2E
    E: 382573 [DIS]Failed to advertise operational node: 3
    D: 382578 [DL]Using Thread extended MAC for hostname.
    I: 382583 [DIS]Advertise commission parameter vendorID=65521 productID=32782 discriminator=3840/15 cm=1 cp=0
    E: 382593 [DIS]Failed to advertise commissionable node: 3
    E: 382598 [DIS]Failed to finalize service update: 3
    E: 382602 [ZCL]OpCreds: Got FailSafeTimerExpired
    E: 382607 [ZCL]OpCreds: Proceeding to FailSafeCleanup on fail-safe expiry!
    D: 382613 [IN]Expiring all sessions for fabric 0x1!!
    E: 382618 [FP]Reverting pending fabric data for fabric 0x1
    E: 382624 [FP]Warning: metadata not found during delete of fabric 0x1
    I: 382710 [FP]Fabric (0x1) deleted.
    I: 382713 [ZCL]OpCreds: Fabric index 0x1 was removed
    I: 382718 [DIS]Updating services using commissioning mode 1
    E: 382723 [DIS]Failed to remove advertised services: 3
    D: 382728 [DL]Using Thread extended MAC for hostname.
    I: 382733 [DIS]Advertise commission parameter vendorID=65521 productID=32782 discriminator=3840/15 cm=1 cp=0
    E: 382743 [DIS]Failed to advertise commissionable node: 3
    E: 382748 [DIS]Failed to finalize service update: 3
    I: 382898 [TS]Pending Last Known Good Time: 2024-10-04T15:21:12
    I: 382904 [TS]Previous Last Known Good Time: 2023-10-14T01:16:48
    I: 382909 [TS]Reverted Last Known Good Time to previous value
    E: 382915 [FP]Warning: metadata not found during delete of fabric 0x1
    E: 382922 [ZCL]OpCreds: failed to delete fabric at index 1: d8
    I: 382928 [ZCL]Cluster callback: 0x0000_0030
    I: 382932 [NP]Reverting Thread operational dataset
    E: 382952 [DMG]Failed to send command response: 3
    E: 382957 [DL]Long dispatch time: 460 ms, for event type 32784
    I: 382962 [FS]Fail-safe cleanly disarmed
    D: 382966 [DL]OpenThread State Changed (Flags: 0x11002006)
    D: 382971 [DL]   Device Role: DISABLED
    D: 382975 [DL]   Thread Unicast Addresses:
    D: 382980 [DL]OpenThread State Changed (Flags: 0x10000000)
    I: 382985 [DL]Current number of connections: 0/1
    I: 382990 [DL]BLE GAP connection terminated (reason 0x16)
    I: 382996 [DL]CHIPoBLE advertising started
    I: 383000 [DL]NFC Tag emulation started
    I: 383713 [TS]Pending Last Known Good Time: 2023-10-14T01:16:48
    I: 383719 [TS]Previous Last Known Good Time: 2023-10-14T01:16:48
    I: 383725 [TS]Reverted Last Known Good Time to previous value
    I: 383731 [DL]Performing factory reset
    I: 385756 [DL]Erasing Thread persistent info...
    
    
    *** Booting My Application v2.7.99-1ee0f8af9cee ***
    *** Using nRF Connect SDK v2.7.99-a46eda7f14f9 ***
    *** Using Zephyr OS v3.6.99-4322f5169f4c ***
    uart:~$ I: 1350 [DL]BLE address: F0:C2:84:DC:CC:54
    I: 1357 [DL]CHIP task running
    I: Init CHIP stack
    I: 1362 [DL]OpenThread started: OK
    I: 1365 [DL]Setting OpenThread device type to MINIMAL END DEVICE
    D: Registered new test event: 0xffffffff00000000
    D: Registered new test event: 0xffffffff10000000
    I: 1380 [SVR]Subscription persistence not supported
    I: 1385 [SVR]Server initializing...
    I: 1388 [TS]Last Known Good Time: [unknown]
    I: 1392 [TS]Setting Last Known Good Time to firmware build time 2023-10-14T01:16:48
    I: 1401 [DMG]AccessControl: initializing
    I: 1405 [DMG]Examples::AccessControlDelegate::Init
    I: 1409 [DMG]AccessControl: setting
    I: 1412 [DMG]DefaultAclStorage: initializing
    I: 1416 [DMG]DefaultAclStorage: 0 entries loaded
    D: 1421 [IN]UDP::Init bind&listen port=5540
    E: 1425 [IN]IPV6_PKTINFO failed: 109
    D: 1428 [IN]UDP::Init bound to port=5540
    D: 1432 [IN]BLEBase::Init - setting/overriding transport
    D: 1437 [IN]TransportMgr initialized
    D: 1444 [DL]Using Thread extended MAC for hostname.
    I: 1450 [ZCL]Using ZAP configuration...
    I: 1455 [DMG]AccessControlCluster: initializing
    I: 1459 [ZCL]Cluster callback: 0x0000_0030
    D: 1463 [DL]Boot reason: 6
    I: 1465 [ZCL]Initiating Admin Commissioning cluster.
    I: 1470 [ZCL]Cluster callback: 0x0000_0003
    I: 1474 [ZCL]Identify attribute ID: 0x0000_0001 Type: 48 Value: 2, length 1
    I: 1480 [ZCL]Cluster callback: 0x0000_0004
    I: 1484 [ZCL]Cluster callback: 0x0000_0004
    D: 1489 [IN]SecureSession[0x20004280]: Allocated Type:1 LSID:26000
    D: 1494 [DL]CHIPoBLE advertising set to on
    I: 1498 [DIS]Updating services using commissioning mode 1
    E: 1503 [DIS]Failed to remove advertised services: 3
    D: 1508 [DL]Using Thread extended MAC for hostname.
    I: 1513 [DIS]Advertise commission parameter vendorID=65521 productID=32782 discriminator=3840/15 cm=1 cp=0
    E: 1522 [DIS]Failed to advertise commissionable node: 3
    E: 1527 [DIS]Failed to finalize service update: 3
    I: 1532 [DIS]Updating services using commissioning mode 1
    E: 1537 [DIS]Failed to remove advertised services: 3
    D: 1541 [DL]Using Thread extended MAC for hostname.
    I: 1546 [DIS]Advertise commission parameter vendorID=65521 productID=32782 discriminator=3840/15 cm=1 cp=0
    E: 1555 [DIS]Failed to advertise commissionable node: 3
    E: 1560 [DIS]Failed to finalize service update: 3
    I: 1565 [IN]CASE Server enabling CASE session setups
    D: 1570 [IN]SecureSession[0x20004350]: Allocated Type:2 LSID:26001
    I: 1576 [SVR]Joining Multicast groups
    I: 1579 [SVR]Server Listening...
    I: 1582 [DL]Device Configuration:
    I: 1585 [DL]  Serial Number: 11223344556677889900
    I: 1590 [DL]  Vendor Id: 65521 (0xFFF1)
    I: 1593 [DL]  Product Id: 32782 (0x800E)
    I: 1597 [DL]  Product Name: not-specified
    I: 1601 [DL]  Hardware Version: 0
    I: 1604 [DL]  Setup Pin Code (0 for UNKNOWN/ERROR): 20202021
    I: 1609 [DL]  Setup Discriminator (0xFFFF for UNKNOWN/ERROR): 3840 (0xF00)
    I: 1616 [DL]  Manufacturing Date: 2022-01-01
    I: 1620 [DL]  Device Type: 65535 (0xFFFF)
    I: 1623 [SVR]SetupQRCode: [MT:O4CT342C00KA0648G00]
    I: 1628 [SVR]Copy/paste the below URL in a browser to see the QR Code:
    I: 1634 [SVR]https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3AO4CT342C00KA0648G00
    I: 1643 [SVR]Manual pairing code: [34970112332]
    I: 1648 [ZCL]Cluster callback: 0x0000_0201
    I: Thermostat:
    I:      Mode - 0
    I:      LocalTemperature - No Value
    I:      OutdoorTemperature - No Value
    I:      HeatingSetpoint - 0,0'C
    I:      CoolingSetpoint - 0,0'C 
    
    I: 1665 [ZCL]Cluster callback: 0x0000_0201
    I: Thermostat:
    I:      Mode - 0
    I:      LocalTemperature - No Value
    I:      OutdoorTemperature - No Value
    I:      HeatingSetpoint - 0,0'C
    I:      CoolingSetpoint - 0,0'C 
    
    I: Initialize binding Handler
    I: 1686 [SVR]Cannot load binding table: a0
    I: Binding Table size: [0]:
    I: 1692 [ZCL]Cluster callback: 0x0000_0201
    I: Thermostat:
    I:      Mode - 0
    I:      LocalTemperature - 20,0'C
    I:      OutdoorTemperature - No Value
    I:      HeatingSetpoint - 0,0'C
    I:      CoolingSetpoint - 0,0'C 
    
    E: 1710 [DL]Long dispatch time: 350 ms, for event type 2
    I: 1716 [DL]CHIPoBLE advertising started
    I: NO DEVICE BOUND
    I: 1721 [DL]NFC Tag emulation started
    I: 31648 [ZCL]Cluster callback: 0x0000_0201
    I: Thermostat:
    I:      Mode - 1
    I:      LocalTemperature - 20,0'C
    I:      OutdoorTemperature - No Value
    I:      HeatingSetpoint - 20,0'C
    I:      CoolingSetpoint - 26,0'C 
    
    I: NO DEVICE BOUND
    I: 31719 [DL]CHIPoBLE advertising mode changed to slow
    I: 31725 [DL]CHIPoBLE advertising started
    I: 61647 [ZCL]Cluster callback: 0x0000_0201
    I: Thermostat:
    I:      Mode - 1
    I:      LocalTemperature - 27,3'C
    I:      OutdoorTemperature - No Value
    I:      HeatingSetpoint - 20,0'C
    I:      CoolingSetpoint - 26,0'C 
    
    I: NO DEVICE BOUND
    I: 91647 [ZCL]Cluster callback: 0x0000_0201
    I: Thermostat:
    I:      Mode - 1
    I:      LocalTemperature - 27,3'C
    I:      OutdoorTemperature - No Value
    I:      HeatingSetpoint - 20,0'C
    I:      CoolingSetpoint - 26,0'C 
    
    I: NO DEVICE BOUND
    I: 121647 [ZCL]Cluster callback: 0x0000_0201
    I: Thermostat:
    I:      Mode - 1
    I:      LocalTemperature - 16,0'C
    I:      OutdoorTemperature - No Value
    I:      HeatingSetpoint - 20,0'C
    I:      CoolingSetpoint - 26,0'C 
    
    I: NO DEVICE BOUND
    I: 151647 [ZCL]Cluster callback: 0x0000_0201
    I: Thermostat:
    I:      Mode - 1
    I:      LocalTemperature - 16,0'C
    I:      OutdoorTemperature - No Value
    I:      HeatingSetpoint - 20,0'C
    I:      CoolingSetpoint - 26,0'C 
    
    I: NO DEVICE BOUND
    I: 181647 [ZCL]Cluster callback: 0x0000_0201
    I: Thermostat:
    I:      Mode - 1
    I:      LocalTemperature - 21,0'C
    I:      OutdoorTemperature - No Value

  • Hi,

    Please try using v2.7.0 and not 2.7.99-cs2.

    Best regards,
    Marte

  • OK, learned how to debug, loaded v2.7.0 (although may not have had all debug optimizations, still need to cli build, vscode does not build correctly

    Seems to be crashing on line 88 sensor.cpp for external temp, which I have not setup

    Reading symbols from build2/thermostat/zephyr/zephyr.elf...
    (gdb) target remote localhost:1234
    Remote debugging using localhost:1234
    TemperatureSensor::ExternalMeasurement (this=<optimized out>) at /Users/stevenriedl/Github/thermostat/src/temperature_measurement/sensor.cpp:88
    88		data->ClusterId = Clusters::TemperatureMeasurement::Id;
    (gdb) bt
    #0  TemperatureSensor::ExternalMeasurement (this=<optimized out>) at /Users/stevenriedl/Github/thermostat/src/temperature_measurement/sensor.cpp:88
    Backtrace stopped: Cannot access memory at address 0x20026c7c
    (gdb) 
    
     

    void TemperatureSensor::ExternalMeasurement()
    {
    	Nrf::Matter::BindingHandler::BindingData *data = Platform::New<Nrf::Matter::BindingHandler::BindingData>();
    	data->ClusterId = Clusters::TemperatureMeasurement::Id;
    	data->EndpointId = mTemperatureMeasurementEndpointId;
    	data->InvokeCommandFunc = ExternalTemperatureMeasurementReadHandler;
    	BindingHandler::RunBoundClusterAction(data);
    }
    

Related