Uart frozen during timeout

Hi. I'm working on a BLE system with Central and Peripheral with nRF5340 with 70msec of CONN_INTERVAL and about 1sec of SUP_TIMEOUT.
The Central unit also has a UART that works with the cpuapp with "Interrupt-driven API" and which sends a message to another device every 100msec (triggered by a dedicated timer) with the uart_fifo_callback api functions.
Everything works quite well, but when the Central unit loses the connection from the Peripheral, the CPUs seem to freeze for the SUP_TIMEOUT time and they also freeze the UART for no reason even if the trigger remains active every 100msec!
I just noticed that if I reduce the SUP_TIMEOUT to 500msec this block is almost completely eliminated.
Thanks in advance for the help.

Parents Reply Children
No Data
Related