2023-08-25 03:19 AM
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?
Solved! Go to Solution.
2023-09-21 01:03 AM
The reason for this behaviour is that I did disable and enable receiver, which leads to a new IDLE condition.
2023-08-25 04:16 AM
Hello @jhi ,
It sounds like there could be a few potential issues causing this problem. Here are a few things you can try:
Check your hardware connections
Make sure that you are using the correct USART instance and that you have enabled the necessary interrupts.
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.
2023-08-25 04:23 AM - edited 2023-08-25 04:35 AM
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.
2023-08-25 04:59 AM
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.
2023-08-25 05:27 AM
What do you need to know? Tx/Rx are connected to RS485 driver. In this case when I‘m sending the read-enable is disabled so there is no data coming back. The RS485 bus is disconnected, so there is only one device. My logic analyzer is connected to Rx and Tx pins on the MCU. The communication works over the RS485 bus if I add second device. It is only that I don’t like to get so often IDLE interrupts. And as I said already 2 times, the IDLE bit is set even without RXFNE set in between, as it should work according to datasheet.
2023-09-21 01:03 AM
The reason for this behaviour is that I did disable and enable receiver, which leads to a new IDLE condition.