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
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