2021-01-03 07:12 PM
Hello,
My project uses 4 uart interrupts on stm32f476 with freertos.
I have a problem with one of 4 uart interrupts. (uart7)
It works normally for a period of time, after that it doesn't work anymore.
I tried changing the interrupt priority but the result is the same.
On the other hand, I run hr_rr function when I get enough data from the queue (usart 1 receiver put data to the queue). If I don't run this hr_rr function, then uart 7 will work normally.
It took me a long time with this problem.
Thanks very much if anyone can help me.
2021-01-03 07:59 PM
The callback occurs under interrupt context, it should complete and exit quickly. Doing a lot of parsing and computation is not advisable.
If the UART stalls you'll need to clear any pending error, ie overflow, framing, etc.
2021-01-04 02:51 AM
Thank you, I will review it