cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F030 parity error only with activated RXNEIE?

Horn.Thomas
Associate
Posted on July 05, 2016 at 09:47

The original post was too long to process during our migration. Please click on the attachment to read the original post.
2 REPLIES 2
Posted on July 05, 2016 at 11:05

I guess the problem is that the USART stops receiving data (thus checking their parity) if you don't pick up the recieved bytes. Look at the ''Overrun error'' sub-chapter of the USART chapter in RM:

When an overrun error occurs: 

[...]

 The shift register will be overwritten. After that point, any data received during overrun is lost.

You might perhaps want to relegate the task of reading the data to DMA. 

JW

Horn.Thomas
Associate
Posted on July 05, 2016 at 12:20

Thanks for the reply,

Yes, that might be the case. Actually I hoped that the data is checked before being transferred into RDR.

DMA would be a solution, but then bus time is still consumed and a DMA channel.