Hi,
Let me apologize for the late response.
The second parameter of the below function expects the address of the bytesRemaining variable.
Also, you can check the status.
/* Check the status */
status = LPUART_DRV_GetReceiveStatus(INST_LPUART2, &bytesRemaining);
if (status != STATUS_SUCCESS)
{
//do something
}
Do you have still some issue? Can you share your project? If you cannot share it on the community you can send it directly to my email address.
I can try to look at it.
Thanks.
Best regards,
Diana