cancel
Showing results for 
Search instead for 
Did you mean: 

Uart1 sometimes receive character gets missed STM32F205

aamirali641989
Associate II
Posted on September 24, 2013 at 11:54

The original post was too long to process during our migration. Please click on the attachment to read the original post.
1 REPLY 1
Posted on September 24, 2013 at 19:08

What exactly is the purpose of turning the interrupts on/off, and pausing for a second?

What is the failure mode, do you get an overflow? does the character just not show up? does it not get feed into your cyclic buffer? You'll need to characterize the failure and purpose a bit better.

It sends 65535 characters, pauses, then does it again. When do the inbound characters get sent? How many? How many get lost? What if you turn off the USART in the middle of reception? Can you illustrate on a scope/analyzer the in/out bound data, and the points where you believe things get lost, perhaps toggle a GPIO when each valid byte is received?

Please use the ''Format Code Block'' icon (Paintbrush [< >]) top left, when posting code, and do so in a sufficiently complete/free-standing manner that the code can be pasted into a project without having to do a bunch of plumbing work.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..