Skip to main content
jhi
Senior
August 25, 2023
Solved

STM32H7: UART IDLE is set again without RXFNE be set.

  • August 25, 2023
  • 1 reply
  • 1786 views

I have the problem on my STM32H753, that the IDLE-bit is set when transmitting. On the manual it says: 

The IDLE bit is not set again until the RXFNE bit has been set (i.e. a new idle line occurs).

The RXFNE is never set (actually on CubeIDE this is shown as RXNE), because I do not receive anything. Also the RDR stays empty. And with logic analyzer I see that the RX-pin stays high the whole time. I also did not find anything on errata which could explain this. Any suggestions what it could be?

This topic has been closed for replies.
Best answer by jhi

The reason for this behaviour is that I did disable and enable receiver, which leads to a new IDLE condition.

1 reply

Foued_KH
ST Employee
August 25, 2023

Hello @jhi ,

It sounds like there could be a few potential issues causing this problem. Here are a few things you can try:

  1. Check your hardware connections

  2. Make sure that you are using the correct USART instance and that you have enabled the necessary interrupts.

  3. Check your baud rate: Ensure that the baud rate of the transmitting device matches the baud rate of the USART peripheral on your STM32H753. If the baud rates do not match, you may not be able to properly receive data.

Hope it helps!

Foued

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
jhi
jhiAuthor
Senior
August 25, 2023

There is no other device receiving/sending anything. The only other thing on the line is logic analyzer. As I wrote, the RX stays all the time high, because well, there is nobody sending anything. I tested this with debugger and sent one byte, and after that the IDLE-bit was set, but nothing is received or seen on RX-pin (logic analyzer). Also the RXFNE stays 0.

I'm using it in FIFO mode if it makes any difference.

Foued_KH
ST Employee
August 25, 2023

Could you please provide more details about you HW configuration ( did you connect the GND ?)

Foued

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.