LIN minimalistic example

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

LIN minimalistic example

1,538 Views
nishantsood
Contributor III

Hi Guys,

I have implmented the LIN demo app available with the S32DS n S32k SDK on 2 EVBs  but I'm not able to understand the Tx n Rx and frame development. Please, kindly, offer me a simple example to send and recieve a byte.

Thank you!

Tags (2)
5 Replies

1,091 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

some time ago I got simple LIN Master/Slave SDK driver projects from SW team. Those demos perform basic send and receive operations.

Please consider creating a ticket so I can forward it to you.

How to submit a new question for NXP Support 

BR, Petr

1,091 Views
nishantsood
Contributor III

Hi Petr,

I still wasn't able to get those examples talking, I have sent you an email a few days back with both master and slave example codes attached. Kindly, please test them out and let me know where might be the problem.

0 Kudos

1,091 Views
nishantsood
Contributor III

Hi Peter,

I have implemented your examples and assured:

1) baud rate for transfer is same (even though the slave can adjust to it, I even tried with different baudrate)

2) Pins using LPUART2 module are configured in the pin mux.

3) Lin is configured properly.

4) Clock manager is clocking correctly.

5) LPTIMER is configured fine.

Even then, pressing the buttons on the EVBs didnt change the LEDs on the other one, which I think is what determines successful communication.

Is there anything else, I'm missing!?

0 Kudos

1,091 Views
nishantsood
Contributor III

Hi Peter,

I have created a Support ticket with the number: 00158211

I will wait for the examples.

0 Kudos

1,091 Views
nishantsood
Contributor III

So, Using I'm able to send from Slave to master but not the other way around!

My code is attached (13.2 kb is Slave and 12.4 kb one is Master code)

0 Kudos