Chip bug? Problem with first byte on USART3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2011-03-02 11:35 PM
Posted on March 03, 2011 at 08:35
Chip bug? Problem with first byte on USART3
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2011-05-17 5:26 AM
Posted on May 17, 2011 at 14:26
I solved it by clearing the status register before sending the first byte from a buffer.
Somehow the SR sometimes contains junk after reset (i think). // Clear Transmission complete flag by reading the SR i = USART3->SR; // Send first byte USART3->DR = tx_buffer[0];