Why cannot LIN STACK respond successfully?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Why cannot LIN STACK respond successfully?

ソリューションへジャンプ
995件の閲覧回数
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 解決策
951件の閲覧回数
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 返答(返信)
963件の閲覧回数
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 件の賞賛
956件の閲覧回数
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 件の賞賛
952件の閲覧回数
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 件の賞賛