cancel
Showing results for 
Search instead for 
Did you mean: 

UART Over-Run interrupt occurred in STM32F4

sathya
Associate
Posted on September 07, 2016 at 11:40

Hi.....!!!

I am using STM32F438IIT6 for UART Receive in Interrupt mode.

I have used STM32Cube Mx for UART configuration & code generation.

In Cube I have configured USART1 as follows

Mode: Asynchronous mode. 

H/W Flow Control (RS232) - Disable

Clock Configuration: My APB1 peripheral clock is 42MHz

USART1 Configuration : Baud Rate : 115200 bits/sec, Word length : 8 bits, parity : None, Stop bit: 1, Oversampling: 16 samples and I have enabled USART1 global interrupt. 

I have used HAL_UART_Receive_IT function for enabling UART receive interrupt. I am receiving each byte in each interrupt.  But I am getting UART Overrun error every time. 

How to fix this Overrun error ?

Is there is any other better option to receive high speed UART datas??

Please help me in this regards.

#hal #uart #no-hablo-hal #stm32f439 #uart_receive_it
4 REPLIES 4
Posted on September 07, 2016 at 15:12

The system you describe should be capable of dealing with multiple 115200 baud streams without issue.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
sathya
Associate
Posted on September 08, 2016 at 07:06

The original post was too long to process during our migration. Please click on the provided URL to read the original post. https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I6kQ&d=%2Fa%2F0X0000000buZ%2FV__wWY7bJvWWvm_LlZiigS_1p26TSHPixXlBHs4zDIc&asPdf=false
Posted on September 04, 2017 at 09:33

Hi raja,

Right now I am facing the same issue with DMA.

Did you get fixed your issue ? If yes how did you manage to do it ?

Thanks.

Age Zijderveld
Associate II
Posted on September 15, 2017 at 04:14

Hi All,

I'm facing the same problem with a stm32f413, only when I set code optimization on 3 it works fine. But It should easily handle 115200 baud without optimization, because that is what I need for debugging. Haven't found a decent solution yet but still working on it.

edit: I could solve it by setting the APB clock higher. I made the mistake to use 16MHz, now it's changed to 25MHz.

Cheers,