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

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
* 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/python@3.12/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 *
*****************************
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Initial boot and commission works

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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.