S32K148 LIN communication problem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32K148 LIN communication problem

1,076 次查看
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

标签 (1)
标记 (1)
0 项奖励
回复
1 回复

898 次查看
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 项奖励
回复