Uart receive not working after a period time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-01-03 7: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.
- Labels:
-
STM32F4 Series
-
UART-USART
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-01-03 7: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.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-01-04 2:51 AM
Thank you, I will review it
