Skip to main content
Associate II
July 25, 2024
Question

STM32G030 Usart2 Overrun stops further reception

  • July 25, 2024
  • 3 replies
  • 1122 views

On G030 if an overrun occurs on usart2 (no FIFO available) the reception of further bytes stops.

Is this intentional or an known error?

3 replies

AScha.3
Super User
July 25, 2024

Thats "standard" , because on error YOU have to do something : check whats wrong, or just : ignore the error and enable uart receive again. (I just count an error counter ++ , to get some info about how often this happens (-> need search for reason or accept , if very seldom) and then set uart receive again, to go on.)

"If you feel a post has answered your question, please click ""Accept as Solution""."
Associate II
July 25, 2024

Do you have a documention reference?

TDK
July 25, 2024

This is intentional, as outlined in the RM.

TDK_0-1721936652897.png

 

You can set the OVRDIS bit to overwrite the data with each new received byte rather than flag it as an error, but this of course also loses data.

TDK_1-1721936699535.png

 

"If you feel a post has answered your question, please click ""Accept as Solution""."