cancel
Showing results for 
Search instead for 
Did you mean: 

UART Overrun Error

majid ghasemi
Associate
Posted on February 11, 2018 at 13:19

Hello

I am using a stm32f103rct6 microcontroller and I want to transmit and receive large size packets of data simultaneously and continuously. For this goal, I used HAL driver and UART and DMA peripherals.

When I receive data with UART without any transmission I have not any problem. But when I also transmit data simultaneously to receive, sometimes overrun error (ORE) occurs.

Why this error occurs? What's the software solution for troubleshooting this error and using full duplex communication to send and receive large volumes of data with UART?

#hal-usart #dma #uart #overrun #stm32f103 #uart-dma
1 REPLY 1

Sorry, bumping old zombie unanswered threads off my feed

Going to have to look for a TransmitReceive function that manages concurrent operations without blocking or creating race conditions. Consider coding a clean/elegant solution from scratch, the HAL code is intractable and fragile.

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