Hi NXP,
When I use the S32K312 UART to receive data of indefinite length, I encounter the following two questions, please ask NXP to answer, preferably give an engineering example.
How to use interrupts to receive data of indefinite length?
How to use DMA to receive variable length data?
Best regards,
Li 3
Hi @li3,
Both the interrupts and the DMA transfers are handled by the LPUART driver.
Call the Lpuart_Uart_Ip_AsyncReceive() and use the UartCallback.
There is this API that can be used to extend the AsyncReceive() call from the callback:
Also, the application can call Lpuart_Uart_Ip_GetReceiveStatus() to get the status of the call.
BR, Daniel