UART not working at High speed
Hello,
I’m trying to transmit data at 2.5 Mbps (2500000 baud), but I’m not receiving any output. The same code works correctly at 2 Mbps, so the issue only appears when using 2.5 Mbps.
I tested both 64 MHz and 40 MHz clock configurations for the UART. At 64 MHz, CubeMX shows a warning:
“Real Baudrate set at BRR register is 2.461538 Mbits/sec. Error: -1.54%.”
Because of this error, I switched to a 40 MHz configuration, which gives the exact 2.5 Mbps baud rate—but I still don’t receive any data.
Is there any additional configuration required to make the MCU reliably transmit at 2.5 Mbps?
