cancel
Showing results for 
Search instead for 
Did you mean: 

Uart receive not working after a period time.

TPhan.1
Associate II

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.

 0693W000006HM5fQAG.png 

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.

 0693W000006HM5kQAG.png 0693W000006HM5pQAG.pngIt took me a long time with this problem.

Thanks very much if anyone can help me.

2 REPLIES 2

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Thank you, I will review it