stm32f446 Enabling USART send unwanted byte
Hi,
When I enable my USART peripheral it sends an unwanted byte interpreted as 0xFE.
To enable the USART peripheral, I first enable it in the APBENR register then I reset it through APBRSTR.
I then disable flow control, and program the baudrate.
I then configure the number of stop bits (0, this is quasi default communication) and then I enable USART through CR1 register. After that all what is left is to enable the TE and RE bit in CR1.
After sending this unwanted byte, it all works very well because I can send data without any problem at the correct baudrate. There is juste this annoying byte that get sent first...
Do you have any idea where I should look ?
I think it may be related to this note in the datasheet :
Note: 1: During transmission, a “0�? pulse on the TE bit (“0�? followed by “1�?) sends a preamble
(idle line) after the current word, except in smartcard mode. 2: When TE is set there is a 1 bit-time delay before the transmission starts.Thanks a lot & have a nice day !
Note: this post was migrated and contained many threaded conversations, some content may be missing.