S32K148 LIN communication problem

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

S32K148 LIN communication problem

1,074 Views
15736231627
Contributor II

 I have an example here about LIN receiving and sending messages, but there is a question. 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.
two。. 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

Labels (1)
Tags (1)
0 Kudos
Reply
1 Reply

896 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hello,

Checking your code I saw that you're using a timeout of 20 ms, the LPTMR is a 16 bit counter so this timeout can not be reached with the Peripheral clock that you're using, also have you tried using the LIN stack to see if this behavior is also present?

Best Regards,

Alexis Andalon

0 Kudos
Reply