Hi,
I have encountered UART_EVENT_ERR_OVERFLOW in my UART callback while receiving hex file data from another device.
I could read few bytes of data then above error occurred causing the communication failure.
Can someone help me to understand the issue?
Regards,
Taruni Dhara Rao Gandham
Hello Taruni Dhara Rao Gandham,
This error means that the UART FIFO is overflowed. Which happens because the data is read by your software from FIFO slower than it is send via UART from another device.
Kind regards,
Sergey
If this response, or one provided by another user, answers your question, please verify the answer. Thank you!
Renesas Engineering Community Moderatorhttps://community.renesas.com/https://academy.renesas.com/https://en-support.renesas.com/knowledgeBase/
Hello Sergey,
Thanks for your response.
I could read only 16byte data. Is something related to fifo size (16 byte) or I made any configuration mistake?
fsp_err_t err = R_SCI_UART_Read (&g_uart0_ctrl,g_dest, 64); if (FSP_SUCCESS != err) { APP_ERR_PRINT ("\r\n** R_SCI_UART_Read API Failed **\r\n"); return err; }
after 16 bytes of data, UART_EVENT_ERR_OVERFLOW errow has thrown. I have no clue about it.
Also, I have noticed only 1byte can read if I don't set FIFO SUPPORT to Enable, if enable FIFO SUPPORT I could read 16bytes.
Do you use the interrupts to determine when the FIFO is full or do you use the polling?
I am using callback function to fetch data. I'm using interrupt method