S32K144 LIN Slave Diagnostics

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

S32K144 LIN Slave Diagnostics

952 Views
Punit_01
Contributor II

Hello,

I am trying to implement LIN slave in S32K144 where it should support normal unconditional frames as well as Diagnostics with Class 2/3. (basically SID $10,$22,$2E are my minimum requirements).

Upon selecting the configuration in S32DS CT I have a bunch of files generated but i am finding it hard to understand the code structure.I have selected the LIN mode as slave & class 3. Additionally, i have selected "Support Diagnostics" & also selected the $2E service support.

When i browse the generated files & SDK, i see that there are some functions that are only applicable for a LIN Master. 

It would be great if anyone can help me with some pointers on how to understand the generated files (may be some documentation?) & the callbacks which can be used to achieve the results.

 

Thanks in advance!

 

I am using the S32K144_SDK v4.0.1 with S32Ds v3.5.

0 Kudos
Reply
2 Replies

938 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @Punit_01,

Regarding UDS, you can refer to this example.

https://community.nxp.com/t5/S32K/S32K-SDK-LIN-Stack-not-working-properly-with-UDS/m-p/1313360

Even though it was built with in S32DS 2.2. with older SDK (Processor Expert), it should be very similar.

I believe the file structure is explained in the User Manual of the LIN Stack.
It is in the installation directory of the Stack.
Or it can be open from the CT (right-click on the lin stack component and select Documentation).

 

Regards,

Daniel

 

0 Kudos
Reply

914 Views
Punit_01
Contributor II

Hello Daniel,

Thanks for your comments.

I will try your suggestions.

0 Kudos
Reply