Why cannot LIN STACK respond successfully?

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

Why cannot LIN STACK respond successfully?

跳至解决方案
1,178 次查看
RickYeh777
Contributor III

Based on s32k118, ide is s32ds, generate lin code by lin stack

it's slave node from my side. The LIN bus worked normally. But once in awhile, "Slave not responding" appeared suddenly. I am wondering why LIN STACK cannot respond in time sometimes.
Any suggestion is welcome. Thank you very much. 

Best Regards.

RickYeh777_0-1665559575086.png

 

0 项奖励
回复
1 解答
1,134 次查看
nxf78987
NXP Employee
NXP Employee

Hi RickYeh777,

The attachment is the LIN project with your configuration. I ran this example successfully.

I saw that you are using interrupts. From my point of view, most likely the interrupt priority of LIN is effect to your issue. So, you can re-test with two situations:

Situation 1: you should set up the interrupt priority of LIN as the highest.

Situation 2: disable all of the interrupts different with the LIN interrupt.

Best regards,

Dan

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,146 次查看
nxf78987
NXP Employee
NXP Employee

Hi RickYeh777,

What is the driver's name you are using?

Could you send me the configuration files and .ldf files?

And Could you turn off the "Δt" and capture again? I want to view the data frames.

Best regards,

Dan

0 项奖励
回复
1,139 次查看
RickYeh777
Contributor III

Dear Sir,

Thanks for your kindly response.
I am not sure what the driver's name is and hope you can find it in the attached files.
By the way, when the problem occured, the working schedule table was NormalTable in the .ldf file.
Please let me know if anything is unclear.

0 项奖励
回复
1,135 次查看
nxf78987
NXP Employee
NXP Employee

Hi RickYeh777,

The attachment is the LIN project with your configuration. I ran this example successfully.

I saw that you are using interrupts. From my point of view, most likely the interrupt priority of LIN is effect to your issue. So, you can re-test with two situations:

Situation 1: you should set up the interrupt priority of LIN as the highest.

Situation 2: disable all of the interrupts different with the LIN interrupt.

Best regards,

Dan

0 项奖励
回复