NUCLEO-H563ZI Uart3 cannot receive more than 2 characters
Hi there,
I am trying to set up UART3 to receive and transmit using Interrupt.
My setup is simple to verify the issue. These are the steps that I did:
1. Add Uart3 in .ioc file with the configuration as:


2. In main(), before entering while(1) loop, I start receive_IT as:
HAL_UART_Receive_IT(&huart3, bufTemp, 1);
3. Add Callback function as:
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) {
HAL_UART_Receive_IT(huart, bufTemp, 1);
}
The problem that I am running into that is if I send "1234\r\n", my HAL_UART_RxCpltCallback() only triggers twice, and I can see "1" and "2" in my buffer.
I also verified ErrorCode before HAL_UART_Receive_IT() is called in the callback function. It turned out the error was an Overrun Error.
Could someone please give me some suggestions on how to solve this issue?
Sincerely,
