Hello,
A very simple example for LIN Master can be found in this community thread:
Or non-SDK examples for the S32K142 can be found in the attachment.
The bare metal UART examples from the AN5413 - Cookbook for the S32K1xx series or AN12174 - Using FlexIO to emulate communications and timing peripherals could be also, used as base projects for your LIN application.
AN5413
https://www.nxp.com/docs/en/application-note/AN5413.pdf
AN5413SW
https://www.nxp.com/webapp/Download?colCode=AN5413SW&docLang=en
AN12174
https://www.nxp.com/docs/en/application-note/AN12174.pdf
AN12174SW
https://www.nxp.com/webapp/Download?colCode=AN12174SW&docLang=en
I hope it helps.
Best regards,
Diana
First of all, thank you for your answer. I have an example here about LIN receiving and sending messages, but there is a question:
1.When receiving the information of the master node as a slave node, it will not enter the callback function and cannot receive the information sent by the host.
2. When receiving information as the master node, if you hit a breakpoint where the callback function receives the PID_OK, and then continue to run, you will no longer enter the callback function. What is the reason for this?
Could you take a look at my code for me? Thank you
Hello,
I'm very sorry for the delay. I can see that you got an answer in your second thread with your code in the attachment.
I hope you have solved your issue.
S32K148 LIN communication problem
Best regards,
Diana