Issue with UART Hardware Flow Control and High Baud Rate on STM32U5 Nucleo Board
Hello,
I am trying to interface the STM32U5 Nucleo board (STM32-U575ZI-Q) with a PC tool (Python-based) connected physically with a USB to TTL Serial 3.3V converter. The goal is to transfer an entire file over UART to the Nucleo board. I have made the following modifications to the example project (UART_TwoBoards_ComIT:(
- Set the UART baud rate to 921600.
- Enabled hardware flow control.
- Updated the code to handle larger data transfers.
The modified code is available on my GitHub fork: akhilpanayamparambil/STM32CubeU5 at ap/uart_test.
I am encountering an issue where, when the data size sent from the U5 board to the PC tool is increased to three times the initial size in aTxBuffer, the code hits the Error_Handler during HAL_UART_Transmit_IT. This also happens when I add a HAL_Delay(100) in the main loop.
When enabling hardware flow control for UART with a baud rate of 921600, the code hits Error_Handler when there is still data coming into RX even when RTS goes high.
Adding few screenshots of the transfer.

Code snippet of python script below.

Has anyone experienced similar issues or have any insights on how to resolve this?
Thank you!
