I have came up with one problem.I wanted to write the drive of Uart.Now the drive of Uart sending data has been completed.But the drive of Uart recieveing data could not complete.My method is that When S32K144 MCU recieve data from upper computer ,the MCU will send teh data has recieved. But upper computer could not recieve data .It could go into Recieve interrupt.So plz help.
Hi,
At first, I recommend you to look at the LPUART example for the S32K144 available in the S32 Design Studio.
File -> New -> S32DS Project from Example -> S32K144 -> LPUART
LPUART demo example with added RX interrupt can be found in the community thread on the link below:
https://community.nxp.com/message/957747?commentID=957747#comment-957747
I hope the example codes help you. If the examples not help I will need to look at your code.
Best regards,
Diana
I write Uart driver with SDK.My code is follow.Upper computer send data to S32k144.S32k144 send the data recieved from Upper computer.
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