Uart “FIFO Overflow error event”(R7FA2L1A92DFL) – Forum – RA MCU

FSP Version 3.3.0

I am sending data every 100ms. After some time, my code gets stuck in the while loop and cannot exit from there, despite having a break command. When I check the part where the code gets stuck, I encounter the error I mentioned.

My code:

if(TimingDelay == 0)
{
temp = MBM_READ_MODULE_VERSION;
R_SCI_UART_Write (&g_uart0_ctrl,&temp,1);
g_uart_event = 100;
TimingDelay=200;

while ((UART_EVENT_TX_COMPLETE != g_uart_event) )
{
if(TimingDelay == 0)
{
break;
}
}
TimingDelay = 100 ;
}

Read more here: Source link