I'm working on a project that heavily depends on UART.
I send commands and receive responses sometimes as big as 22KB.
The problem is that data does not always come in a good ordered way, sometimes I receive stop bits when they shouldn't be there.
Therefore, I need to call
Code: Select all
uart_read_bytes()
What is weird is that this process takes much longer than it should, what appears to me is that there is a delay beetwen data coming to internal RX buffer and appearing as available on
Code: Select all
uart_read_bytes()
Why is the reason for this delay? The data shouldn't be available as quick as possible since data come in through interrupts?
ANY help is appreciated!! Thanks a lot
--
Gabriel Gardin.