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.
Solved! Go to Solution.
Hi @DouDou1,
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:
They both configure the UART module, one by interrupt and another by DMA. Please test them on your side to see if this issue persists.
Best regards,
Julián
Hi @DouDou1,
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:
Please test it on your board.
Best regards,
Julián