S32K144 - LIN interrupt is not working

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

S32K144 - LIN interrupt is not working

跳至解决方案
908 次查看
szblaci
Contributor III

Hello Community,

I am using S32K144 (64 pin) MCU with LIN driver from SDK. I would like to process a diagnostic frame as a slave node but somehow not all of the bytes have been read from the line. Usually the last 1-2 data bytes and the checksum are "ignored" by the MCU. 

I attached a measurement where I set a pin high at the beginning of the LIN IRQ handler and set low at the end. According to this there is no interrupt generated (actually) for the last data byte and the checksum.  

Doy you have any idea what can be the problem? 

(In the LIN_LPUART_DRV_ProcessReceiveFrameData function the rxSize is 9, this should be enough )

Thanks in advance!

Laszlo

标签 (1)
标记 (3)
0 项奖励
回复
1 解答
855 次查看
szblaci
Contributor III

Hello Petr,

Thanks for the reply. Meanwhile I created a new project from scratch where the communication is working so it seems the problem is in my code somewhere. 

regards 

Laszlo

在原帖中查看解决方案

0 项奖励
回复
2 回复数
856 次查看
szblaci
Contributor III

Hello Petr,

Thanks for the reply. Meanwhile I created a new project from scratch where the communication is working so it seems the problem is in my code somewhere. 

regards 

Laszlo

0 项奖励
回复
892 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

what S32DS and SDK version do you use? Do you refer to soem demo code?
Could below thread help..
https://community.nxp.com/t5/S32K/S32K116-LIN-Diagnostic-Example/m-p/1196377

BR, Petr

0 项奖励
回复