Missing bytes with UART and ringbuffer

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by remcopoelstra on Sun Aug 31 07:16:13 MST 2014

I've based my code on the UART ringbuffer example to send and receive bytes (almost an exact copy).
I'm missing lots of bytes though.
Sometimes a few get through, sometimes even about 100. But in the end I always miss bytes.
The Ringbuffer_GetCount simple tells me it's empty.
How reliable is the ringbuffer+uart combination?
Can the ringbuffer handle being fed by the interrupt handler while also being interrogated from the main loop?


Remco Poelstra