AnsweredAssumed Answered

STM32F411 USART RTS problem

Question asked by Majerle.Tilen on Jul 17, 2015
Hello everyone,

I'm getting strange behaviour on my STM32F411 device.
I use USART 1 with hardware flow control, with pins:

TX: PB6,
RTS: PA11 

The problem I have, is that when device wake up from STOP mode, RTS pin does not work properly for about 10 bytes received via USART. I have image attached to clearly show behaviours of this pin.

So, before I go to STOP mode, I deinit USART, and force RTS high with GPIO pin as output to prevent my device to send me any data.
After I wakeup (on image where TX goes high), I set clock back and then initialize USART peripheral.

When my device starts with sending data, RTS pin of STM32F411 is "shifted" to to middle of next byte (attached on picture). In my case, I miss first 6 bytes and then RTS pin is located OK and also IRQ for USART is also OK.

Any ideas what is happening here?
This happens only if I init usart from wakeup directly.

Thanks for any help,
have a nice day.Screenshot%20at%2013-33-56.png