Thanks @danielmartynek for the response,
What is the return status of the Lpuart_Uart_Ip_AsyncReceive() function?
I am getting zero as the return status. I can see that the UART has received 1024 byes data but while reading I am getting only partial data with zero as return status.
We are using a task to poll the data from the UART using the function "iotsm_get_uart_port_status" (definition in the attached txt file).
I assume you use interrupts for both FlexCAN and LPUART.
For the LPUART we have set the priority as 4 by MEX file configuration and the FlexCAN interrupt is set as 20 using the NVIC api "NVIC_SetPriority(FlexCAN0_1_IRQn, 20)".
What is the system clock frequency?
160Mhz, please see the snapshot attached.
Can you use DMA for the LPUART instead of interrupts?
We haven't done anything for DMA.
Can you please send any sample code that I can refer to implement DMA for the LPUART?
Regards
Anoop