cancel
Showing results for 
Search instead for 
Did you mean: 

Chip bug? Problem with first byte on USART3

sima2
Associate III
Posted on March 03, 2011 at 08:35

Chip bug? Problem with first byte on USART3

1 REPLY 1
sima2
Associate III
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];