cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G030 Usart2 Overrun stops further reception

wimalopaan
Associate

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 3
AScha.3
Chief II

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".
wimalopaan
Associate

Do you have a documention reference?

TDK
Guru

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".