PA9, PA10 for communication with the ESP and UART2 for communication with a PC for debugging. I also used a CP2102 USB to TTL converter to tap the Tx signal from UART1 and monitor AT commands sent from the STM32AT+RST, only part of it is received by the ESP8266. After debugging, I found that HAL_UART_Transmit returns HAL_ERROR, and the cause seems to be an overrun error.HAL_MAX_DELAY as the timeout fixed the issue, but I’m unsure why. Increasing the delay in HAL_Delay() didn’t resolve the issue, so I’m still confused about what’s causing the overrun error.