Summary
the rx isr looses data when the receiving consecutive data over the uart fifo full threshold (120 bytes @115200 bps)
The default uart ISR is very long and has while loops in it processing the TX of data. ( up to 300 lines of code)
So has anyone a working minimal uart isr that only deals with Rx and TX of 8N1, no control. ?
I originally thought it may be a hardware issue but I think its more a IDF driver issue now
viewtopic.php?f=12&t=14078
Uart RX losing data when recieving data at high baud rates
Re: Uart RX losing data when recieving data at high baud rates
After Carrying out more testing
Anything faster than 38400bps results in the default uart isr loosing bytes when more than 120 chars are sent consecutively and with no gaps between chars. eg A server cert file with 2086 bytes can loose up to 10 bytes.
But occasionally this code also fails at 38400bps the very first time the FIFO full threshold is exceeded. But once it has happened at 38400 I was getting all the data.
Anything faster than 38400bps results in the default uart isr loosing bytes when more than 120 chars are sent consecutively and with no gaps between chars. eg A server cert file with 2086 bytes can loose up to 10 bytes.
But occasionally this code also fails at 38400bps the very first time the FIFO full threshold is exceeded. But once it has happened at 38400 I was getting all the data.
Who is online
Users browsing this forum: Google [Bot] and 115 guests