Issues with S32k146 EVB Lin Communication

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

Issues with S32k146 EVB Lin Communication

1,366 Views
raphael_sommer
Contributor II

Hello everyone,

I am using the S32k146 EVB I am using the Example "lin_master_s32k146" from the  "S32K1xx RTM SDK v3.0.0 Example Projects". For monitoring Vector is being used, to see the traces of the communication.

Now I want to "modify" this example code to send out a diagnostic session Command.

I am not able to do this, i tried several things. 
In the Example the 2 Buttons are used to enter deep sleep and wake up again. 
I want to use these buttons to send out different diagnostic session commands. 
(I think this is the easiest way to understand the diagnostic session)

A easy example on how to use these Lin commands would be great.

Or how do I have to modify the Code to send out these diagnostic session commands?

PS: Attached is the "Lin_master_s32k146" without any changes

Labels (1)
Tags (2)
0 Kudos
3 Replies

1,108 Views
hungnguyenphi
NXP Employee
NXP Employee

Hi Raphael,

Please use function ld_send_message() to send an diagnostic command in bus and in LinStack component please set the maximum length of diagnostic message you want to use.

pastedImage_1.png

For the simple example, I have add this function in line 186 of attached file(main.c).

Best regards,

Hung.

0 Kudos

1,108 Views
raphael_sommer
Contributor II

Hello Hung, 

thanks for your answer!

The values shown in your screenshot, were the default values for me so I did not have to change them. I used your recommended function, but it didn't work either. I expect changes in the schedule Table shown in my screenshot, but in there nothing changes. What did I miss?

pastedImage_1.png

Thanks for your time and effort,

Raphael

0 Kudos

1,108 Views
hungnguyenphi
NXP Employee
NXP Employee

Hi Raphael,

Sorry, I am missing calling ld_init(LI0) function in the master task. It use to initial for transport layer.

pastedImage_2.png

Best regards,

Hung

0 Kudos