Hello Nordic team,
Our team deveopment a BLE NUS project, we use nrf5340 as BLE peripheral and nrf52840 dongle as BLE central. (NCS v1.8.0)
We use nrf52840 dongle transfer CMD data to nrf5340 by NUS.
If transfer data continously, it will make a fatal issue on nrf52840 dongle sometimes.
Error message as below
00> [00:01:33.570,251] <err> os: ***** BUS FAULT *****
00> [00:01:33.570,251] <err> os: Precise data bus error
00> [00:01:33.570,251] <err> os: BFAR Address: 0x28003c
00> [00:01:33.570,281] <err> os: r0/a1: 0x0028003c r1/a2: 0x200084a4 r2/a3: 0x200021d8
00> [00:01:33.570,281] <err> os: r3/a4: 0x00000040 r12/ip: 0x00011865 r14/lr: 0x00025131
00> [00:01:33.570,281] <err> os: xpsr: 0x21000012
00> [00:01:33.570,281] <err> os: Faulting instruction address (r15/pc): 0x00025654
00> [00:01:33.570,281] <err> os: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
00> [00:01:33.570,312] <err> os: Fault during interrupt handling
00>
00> [00:01:33.570,312] <err> os: Current thread: 0x20001898 (unknown)
00> [00:01:33.843,414] <err> fatal_error: Resetting system[0m
Or
00> [00:00:40.695,648] <err> os: r0/a1: 0x00000004 r1/a2: 0x0000009a r2/a3: 0x00000001
00> [00:00:40.695,648] <err> os: r3/a4: 0x00021cd9 r12/ip: 0x00000000 r14/lr: 0x0001256f
00> [00:00:40.695,678] <err> os: xpsr: 0x41000012
00> [00:00:40.695,678] <err> os: Faulting instruction address (r15/pc): 0x0002bede
00> [00:00:40.695,678] <err> os: >>> ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0
00> [00:00:40.695,678] <err> os: Fault during interrupt handling
00>
00> [00:00:40.695,678] <err> os: Current thread: 0x20001898 (unknown)
00> [00:00:40.904,663] <err> fatal_error: Resetting system
I think my question is similar as below
I have researched relevant question, but did not know how to solved it.
Souce Code as below
Thanks.
Allen.