Tool/software:
While working with CC2340R5, i have encountered a problem with uart receiving.
The original problem is in my custom project and in simple terms, My project is echoing data from UART to BLE and vice versa.
To ease the support, i have reproduced the problem in the example Data stream with minor addition of code.
Simplink SDk version used: 8.20.0.119, 8.40.2.01
i have done the following things to reproduce the issue:
I have added uart initialization in Data Stream example with default params.
I am sending a byte stream from ble app nrfConnect to my cc2340r5 device and writing all data to UART using
i have also connected UART RX with UART TX to echo my data back.
i have added the following code to receive uart data and write back to BLE connection.
Now the problem is that i am receiving echo data in batches from ble. The issue is dependant on data length. Longer the length more batches are there.
i am attaching a screenshot of received data.
Since i have not added any such delays, the behavior is weird.
Also there is a pattern in the problem batch delays are almost multiple of 40.
I have also tested with ble disabled and by measuring tick difference between last sent on uart and last received on uart.
The tick difference is multiple of 10 in this case.
I have also verified that the uart_recv_task is being executed in every 2 ms.
I would appreciate any help.
Thanks