Matter light switch example kernel panic

Hello,

I wanted to test out how does matter light switch working. In my setup I have got openThread border router set up on raspberry pi 4.

I build unchanged light switch example with toolchain v2.4.0 and sdk v2.4.0

I succesfully commisioned light switch device to the thread network working on openthread border router.

After booting light switch device sometimes I receive error about kernel panic. Full log below

uart:~$ *** Booting Zephyr OS build v3.3.99-ncs1 ***
I: Init CHIP stack
I: 168 [DL]BLE address: F0:2F:20:CB:EA:C1
I: 189 [DL]OpenThread SED interval is 1000ms
I: 203 [DL]OpenThread ifconfig up and thread start
I: 210 [DL]OpenThread started: OK
I: 213 [DL]Setting OpenThread device type to SLEEPY END DEVICE
I: 218 [SVR]Subscription persistence not supported
I: 223 [SVR]Server initializing...
I: 227 [TS]Last Known Good Time: 2023-09-20T11:11:40
I: 234 [FP]Fabric index 0x1 was retrieved from storage. Compressed FabricId 0x59B98F98C065D5D5, FabricId 0x0000000000000001, NodeId 0x0000000000000003, VendorId 0xFFF1
I: 249 [DMG]AccessControl: initializing
I: 252 [DMG]Examples::AccessControlDelegate::Init
I: 257 [DMG]AccessControl: setting
I: 260 [DMG]DefaultAclStorage: initializing
I: 265 [DMG]DefaultAclStorage: 1 entries loaded
D: 270 [IN]UDP::Init bind&listen port=5540
E: 274 [IN]SO_REUSEPORT failed: 109
D: 277 [IN]UDP::Init bound to port=5540
D: 280 [IN]BLEBase::Init - setting/overriding transport
D: 285 [IN]TransportMgr initialized
D: 292 [DL]Using Thread extended MAC for hostname.
I: 298 [ZCL]Using ZAP configuration...
I: 303 [DMG]AccessControlCluster: initializing
D: 307 [DL]Boot reason: 1
I: 310 [ZCL]Initiating Admin Commissioning cluster.
I: 314 [SVR]Fabric already commissioned. Disabling BLE advertisement
I: 320 [DIS]Updating services using commissioning mode 0
E: 325 [DIS]Failed to remove advertised services: 3
D: 330 [DL]Using Thread extended MAC for hostname.
I: 334 [DIS]Advertise operational node 59B98F98C065D5D5-0000000000000003
E: 341 [DIS]Failed to advertise operational node: 3
D: 345 [DL]Using Thread extended MAC for hostname.
I: 351 [DIS]Advertise commission parameter vendorID=65521 productID=32772 discriminator=3840/15 cm=0
E: 360 [DIS]Failed to advertise extended commissionable node: 3
D: 365 [DIS]Scheduling extended discovery timeout in 900s
E: 370 [DIS]Failed to finalize service update: 3
I: 375 [DIS]Delaying proxy of operational discovery: missing delegate
I: 381 [IN]CASE Server enabling CASE session setups
D: 386 [IN]SecureSession[0x200042b8]: Allocated Type:2 LSID:29836
I: 392 [SVR]Joining Multicast groups
I: 396 [SVR]Server Listening...
I: 398 [DL]Device Configuration:
I: 402 [DL]  Serial Number: 11223344556677889900
I: 406 [DL]  Vendor Id: 65521 (0xFFF1)
I: 410 [DL]  Product Id: 32772 (0x8004)
I: 414 [DL]  Product Name: not-specified
I: 418 [DL]  Hardware Version: 0
I: 421 [DL]  Setup Pin Code (0 for UNKNOWN/ERROR): 20202021
I: 427 [DL]  Setup Discriminator (0xFFFF for UNKNOWN/ERROR): 3840 (0xF00)
I: 435 [DL]  Manufacturing Date: (not set)
I: 438 [DL]  Device Type: 65535 (0xFFFF)
I: 443 [SVR]SetupQRCode: [MT:4CT9142C00KA0648G00]
I: 448 [SVR]Copy/paste the below URL in a browser to see the QR Code:
I: 454 [SVR]https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3A4CT9142C00KA0648G00
I: 463 [SVR]Manual pairing code: [34970112332]
I: 472 [DL]CHIP task running
I: 475 [DIS]Updating services using commissioning mode 0
E: 480 [DIS]Failed to remove advertised services: 3
D: 485 [DL]Using Thread extended MAC for hostname.
I: 490 [DIS]Advertise operational node 59B98F98C065D5D5-0000000000000003
E: 497 [DIS]Failed to advertise operational node: 3
D: 502 [DL]Using Thread extended MAC for hostname.
I: 508 [DIS]Advertise commission parameter vendorID=65521 productID=32772 discriminator=3840/15 cm=0
E: 517 [DIS]Failed to advertise extended commissionable node: 3
E: 523 [DIS]Failed to finalize service update: 3
D: 527 [DL]OpenThread State Changed (Flags: 0x00001000)
D: 535 [DL]OpenThread State Changed (Flags: 0x00000001)
D: 540 [DL]   Thread Unicast Addresses:
D: 544 [DL]        fdbb:bec7:c5fe:a6e1:0:ff:fe00:6807/64 valid rloc
D: 551 [DL]        fdbb:bec7:c5fe:a6e1:a069:47d4:77e7:9385/64 valid
D: 557 [DL]        fe80::b030:d345:bd81:d1c0/64 valid preferred
D: 565 [DL]OpenThread State Changed (Flags: 0x00000008)
D: 573 [DL]OpenThread State Changed (Flags: 0x01000000)
D: 579 [DL]OpenThread State Changed (Flags: 0x00000004)
D: 585 [DL]   Device Role: DETACHED
D: 590 [DL]OpenThread State Changed (Flags: 0x00000001)
D: 595 [DL]   Thread Unicast Addresses:
D: 600 [DL]        fdbb:bec7:c5fe:a6e1:0:ff:fe00:6807/64 valid rloc
D: 607 [DL]        fdbb:bec7:c5fe:a6e1:a069:47d4:77e7:9385/64 valid
D: 613 [DL]        fe80::b030:d345:bd81:d1c0/64 valid preferred
D: 621 [DL]OpenThread State Changed (Flags: 0x00001000)
D: 629 [DL]OpenThread State Changed (Flags: 0x00001000)
D: 636 [DL]OpenThread State Changed (Flags: 0x00000010)
D: 642 [DL]OpenThread State Changed (Flags: 0x00000020)
I: Initialize binding Handler
I: 652 [SVR]Cannot load binding table: a0
I: Binding Table size: [0]:
E: No response within timeout 500
ASSERTION FAIL @ WEST_TOPDIR/zephyr/drivers/ieee802154/ieee802154_nrf5.c:1146
E: r0/a1:  0x00000004  r1/a2:  0x0000047a  r2/a3:  0x20007b30
E: r3/a4:  0x20016c70 r12/ip:  0x00000000 r14/lr:  0x0002b3cb
E:  xpsr:  0x61100000
E: s[ 0]:  0x00000000  s[ 1]:  0x00000000  s[ 2]:  0x00000000  s[ 3]:  0x00000000
E: s[ 4]:  0x00000000  s[ 5]:  0x00000000  s[ 6]:  0x00000000  s[ 7]:  0x00000000
E: s[ 8]:  0x00000000  s[ 9]:  0x00000000  s[10]:  0x00000000  s[11]:  0x00000000
E: s[12]:  0x00000000  s[13]:  0x00000000  s[14]:  0x00000000  s[15]:  0x00000000
E: fpscr:  0x00000000
E: Faulting instruction address (r15/pc): 0x0007d212
E: >>> ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0
E: Current thread: 0x20007b30 (openthread)
E: Halting system

For commisioning I used chip tool version 2.4.0

light switch example is flashed on nrf5340dk.

In my thread network there is also commisioned and working matter light bulb example on second nrf5340dk, so thread network is working as it should.

Is there any workaround for this error? It happens randomly during boot state

BR,

Krzysztof

Related