I use the LPUART of S32K311 to send and receive data. It is normal to send data, but the chip cannot receive the data sent by the computer. What is the reason?Thank you.
Hi,@Julián_AragónM, Thank you for your reply. I have solved the problem, but there is something wrong with my connection. After re-connecting, we can communicate normally。
You mention data sent by computer. Are you using any serial to USB converter? Looking at your code, it may be a timing issue regarding how you are sending messages to the S32K311.
You can look at the following UART examples for the S32K312:
Hi.@Julian-AragonM, Thank you for your reply. I used a serial to USB converter, and then modified the code according to the example you gave me, but my chip still can't receive data. Could you please help me find out what the problem is?
I've modified the S32K312 UART interrupt project I've shared in the previous reply, by merging the lpuart echo example, so the MCU echoes whichever character it receives to the terminal:
Hi,@Julián_AragónM, Thank you for your reply. I have solved the problem, but there is something wrong with my connection. After re-connecting, we can communicate normally。