2140962_en-US

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

2140962_en-US

2140962_en-US

s32k3 uart

hello dear NXP team...

I have configured the UART0 interrupt receive for s32k311...… I am trying to receive data in callback function but i am not Receiving any data...i dont know whats the issue....please resolve the issue....i have uploaded my project here below.

Re: s32k3 uart

Hi @leoCR7,

The AsyncReceive function enables reception and immediately leaves function. The application has to get the receive status to know when the receive is complete. You can either repeatedly call GetReceiveStatus or use interrupt callback function and use callback events in it. After receiving is completed (defined number of bytes received), you need to call AsyncReceive again to start new reception.

However, inside the callback, instead of calling AsyncReceive again, use the Lpuart_Uart_Ip_SetRxBuffer function for continuous reception. You can use AsyncReceive in the end transfer event.

You can refer to this example routine: [RTD600 IP] S32K312-EVB Lpuart interrupt echo - NXP Community. It is based on the S32K312, but you can simply copy over the configuration.

Best regards,
Julián 

Tags (1)
No ratings
Version history
Last update:
‎11-21-2025 06:21 PM
Updated by: