STM32F030 parity error only with activated RXNEIE?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-07-05 12:47 AM
Posted on July 05, 2016 at 09:47The original post was too long to process during our migration. Please click on the attachment to read the original post.
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-07-05 2:05 AM
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. JWOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-07-05 3:20 AM
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.