cancel
Showing results for 
Search instead for 
Did you mean: 

USART2 RXNE not trigger if Rx and Tx happen same time

fema
Associate III
Posted on January 28, 2016 at 08:13

I am using the stm32f411 ,the USART2 work normally when the Rx and Tx not happen on the same time, if the Rx and Tx happen on the same time then rxne will not trigger. But if the next received byte come it will trigger the rxne but overrun bit did not rise.

Did any one have the similar problem ?

thanks

1 REPLY 1
Posted on January 28, 2016 at 19:44

If you are doing this in a debugger you need to make sure it's not using a peripheral view of the USART. It will read the USART->DR and break the status in USART->SR

You need to do this in a more transparent fashion, the debugger will be invasive.

It's hard to tell what you're code is doing, as we can't see it.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..