Hi, Aron,
I suppose that overrun event happens, which leads to the fact that the next character can not be accepted, interrupt does not occurs.
1)Do you use FIFO mode? if it is the case, read multiple data from FIFO in one ISR or disable FIFO mode.
2)If you check both kLPUART_RxDataRegFullFlag | kLPUART_RxOverrunFlag, pls handle them separately, for example
if(kLPUART_RxDataRegFullFlag&LPUART_GetStatusFlags(ESP_UART);)
{
}
if( kLPUART_RxOverrunFlag &LPUART_GetStatusFlags(ESP_UART);)
{
//clear FIFO by setting the RXFLUSH bit in LPUARTx_FIFO
}
Hope it can help you
BR
Xiangjun Rong