ncs 1.7.0 peripheral_uart example - fault when data burst received over HW UART

Hi,

I'm working with the ncs 1.7.0 peripheral_uart example and have observed faults when I send more than a few bytes at a time to the HW UART.  (receive by HW UART for transmission over BLE link)

This can be reproduced by connecting the peripheral_uart example to another BLE device, such as the central_uart example, connecting a terminal emulator to the dev kit's UART, and sending a burst of bytes from the terminal emulator to the dev kit's UART.  (e.g. a paragraph of text)

I initially found the issue with ncs 1.6.1, so it's not new.  Another developer at my company has reproduced the issue as well, so I don't believe it's a setup issue.

Log from SEGGER debug terminal:

[01:25:36.951,629] [0m<inf> peripheral_uart: Received data from: C0:EE:40:50:17:6B (public)[0m   (when data flow is slow, pages of these received data messages emit without issues)
[01:25:37.041,687] [0m<inf> peripheral_uart: Received data from: C0:EE:40:50:17:6B (public)[0m
[01:25:37.111,511] [1;33m<wrn> peripheral_uart: Not able to allocate UART receive buffer[0m
[01:25:37.111,541] [1;33m<wrn> peripheral_uart: Not able to allocate UART receive buffer[0m
[01:25:37.115,478] [1;33m<wrn> peripheral_uart: Not able to allocate UART receive buffer[0m
[01:25:37.131,652] [0m<inf> peripheral_uart: Received data from: C0:EE:40:50:17:6B (public)[0m
[01:25:37.131,744] [1;33m<wrn> peripheral_uart: Not able to allocate UART send data buffer[0m
[01:27:26.749,694] [1;31m<err> os: ***** BUS FAULT *****[0m
[01:27:26.749,725] [1;31m<err> os: Precise data bus error[0m
[01:27:26.749,725] [1;31m<err> os: BFAR Address: 0xfb00e5[0m
[01:27:26.749,755] [1;31m<err> os: r0/a1: 0x00fb00e5 r1/a2: 0x200027b4 r2/a3: 0x00000003[0m
[01:27:26.749,755] [1;31m<err> os: r3/a4: 0x00000040 r12/ip: 0x00000000 r14/lr: 0x00020eed[0m
[01:27:26.749,755] [1;31m<err> os: xpsr: 0x21000000[0m
[01:27:26.749,786] [1;31m<err> os: Faulting instruction address (r15/pc): 0x00021408[0m
[01:27:26.749,786] [1;31m<err> os: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0[0m
[01:27:26.749,786] [1;31m<err> os: Current thread: 0x20001540 (unknown)[0m
[01:27:27.895,294] [1;31m<err> fatal_error: Resetting system[0m
*** Booting Zephyr OS build v2.6.99-ncs1 ***

...

Thanks

Related