2026-04-08 12:37 AM - last edited on 2026-04-08 2:54 AM by Andrew Neil
TX works but RX interrupt not triggered
Hello,
I am currently using a custom board based on STM32H563ZIT6. My goal is to establish communication over RS485 between the STM32 and a PC (using Hterm). The system is designed to receive a command and send a response.
Communication Details:
Current Situation:
Problem:
At 12 Mbaud:
Additional Notes:
What I Suspect:
Questions:
Any insights or similar experiences would be very helpful.
Thanks in advance!
Solved! Go to Solution.
2026-04-08 7:03 AM
Yes, I checked the signals with an oscilloscope, including at the STM32 RX pin, and everything looks fine.
Also, communication works without any issues up to 2 Mbaud.
2026-04-08 7:05 AM
@MES98 wrote:I also verified with an oscilloscope that the data is physically coming out of the converter, so the signal is present on the line.
and is it in good condition: clean edges, valid timing, no noise, correct levels, etc, etc ... ?
2026-04-08 7:08 AM - edited 2026-04-08 7:11 AM
@MES98 wrote:
- Communication works perfectly between 115200 and 2,000,000 baud
- I am trying to increase the baud rate up to 12 Mbaud
Use the scope to see what's different (apart from just bit timing) between 2M and 12M baud.
Have you tried to narrow down where the failure actually starts between 2M and 12M ?
eg, try 7M - ie, halfway between 2 & 12
etc, etc, ...
2026-04-08 7:20 AM
According to the datasheet, the converter supports up to 12 Mbaud.
Also, when I test the USB COM485 PLUS 4 by looping its own RS485 lines, communication works successfully at 12 Mbaud.
So based on these tests, it seems that the converter itself is capable of handling this baud rate.
2026-04-08 7:22 AM
Thank you for your suggestion.
I enabled the UART error interrupts, but no error flags are triggered.
I also checked the Windows adapter settings. The latency timer was set to 16 ms by default, and I reduced it to 1 ms, but this did not make any difference.
For clarification, my communication is very light:
For testing:
I also verified with an oscilloscope that the data is physically coming out of the converter, so the signal is present on the line. At this point, it looks like the data reaches the STM32 pin, but it is not being captured or processed by the UART peripheral.
2026-04-08 7:30 AM
@MES98 wrote:I also verified with an oscilloscope that the data is physically coming out of the converter, so the signal is present on the line.
Again:
Have you tried to narrow down where the failure actually starts between 2M and 12M ?
2026-04-08 7:50 AM
I'm attaching the signal from the converter at 12M baud. With the converter, data is reaching HTerm from the STM32 at 12M, 10M, 8M, and 6M baud rates, but it is not being received on the STM32 side. Communication works properly at 4M, 2M, and lower baud rates.
From what I can see, there is no noticeable noise or signal distortion that would prevent communication or cause data loss. You can also take a look with your scope if you like.
2026-04-08 8:17 PM
I see a huge negative going spike at the start of frame, at all baud rates.
Will this cause a problem for start detection?
Can you also check if the probe ground is connected by a very short wire to circuit ground? Not the usual long tail crocodile.
2026-04-08 10:58 PM
> I see a huge negative going spike at the start of frame, at all baud rates.
Basically on every falling edge.
I suppose this is an artifact, because the probe and the way it is attached are not appropriate for RF.
Mind you, a digital (square-wave) signal requires a bandwidth significantly higher than the bps number.
2026-04-09 1:40 AM
@Kalpak wrote:I see a huge negative going spike at the start of frame, at all baud rates.
Will this cause a problem for start detection?
Can you also check if the probe ground is connected by a very short wire to circuit ground? Not the usual long tail crocodile.
Exactly.
OP needs this:
This should reduce ringing from probe ground inductance.