Why cannot LIN STACK respond successfully?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Why cannot LIN STACK respond successfully?

Jump to solution
959 Views
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 Kudos
1 Solution
915 Views
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

View solution in original post

0 Kudos
3 Replies
927 Views
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 Kudos
920 Views
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 Kudos
916 Views
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 Kudos