Report
3 days, 21 hours ago.

how to reliably read from UART

Hi, I am trying to read a serial datastream at 115200 baud. this does work with my code, but sometimes (about 1 of 1000bytes) 1 byte is received incorrectly. I am receiving with UARTSerial and sending the received stuff out over BLE in paralell.

I have confirmed no buffer is overflowing (except for the hardware buffer... but I dont think so..) I am on an NRF52840.

Is there anything I am missing in order to make it more reliable? Do I have to split receiving and sending into seperate threads maybe? would that help? also I have the feeling, that the problem gets worse, with more CPU load.

what can I do about this?

- Jonas

Comment on this question
Be the first to answer this question.

To post an answer, please log in.