Uart RX losing data when recieving data at high baud rates

DanCurram
Posts: 15
Joined: Tue Jun 12, 2018 2:13 pm

Uart RX losing data when recieving data at high baud rates

Postby DanCurram » Mon Feb 03, 2020 6:03 pm

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

DanCurram
Posts: 15
Joined: Tue Jun 12, 2018 2:13 pm

Re: Uart RX losing data when recieving data at high baud rates

Postby DanCurram » Tue Feb 04, 2020 3:30 pm

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.

Who is online

Users browsing this forum: No registered users and 145 guests