Is LIN Demo working, which are built for S32k144?

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

Is LIN Demo working, which are built for S32k144?

1,261 Views
rohans002
Contributor III

Mentioned is not functional LIN demo code I guess

I built and run the code and trying to monitor the LIN signal on both oscilloscope and logic analyser.
but no luck, no signals are generated

S32K144 EVB

0 Kudos
Reply
3 Replies

1,236 Views
IsaulO
NXP Employee
NXP Employee

Hi @rohans002 , 

I have tested the data transmission and reception of this example and observed consistent behavior, the master receives the response from the slave device and the LED turns green, see the image below:

Untitled picture.png

Please make sure the board is powered by 12V and follow the steps on how to run the example in C:\NXP\S32DS.3.4\S32DS\software\S32SDK_S32K1XX_RTM_4.0.3\doc\html_S32K144\lin_master_baremetal_s32k144_group.html.

Note: These examples are intended to be used with 2 EVKs (S32K144), so you can also refer to the document for the slave device in C:\NXP\S32DS.3.4\S32DS\software\S32SDK_S32K1XX_RTM_4.0.3\doc\html_S32K144\lin_slave_baremetal_s32k144_group.html.

Untitled picture1.png

BR,
IsaulO.

 

0 Kudos
Reply

1,219 Views
rohans002
Contributor III

hi @IsaulO.,
This is im trying to step debug through S32K144 EVB but I'm getting status busy return from sendDataFrame after header transmitting, and faced same issue in example code too

 

Tags (1)
0 Kudos
Reply

1,188 Views
IsaulO
NXP Employee
NXP Employee

Hi @rohans002 ,

LIN_DRV_MasterSendHeader function sends LIN Break field, sync field then the ID with correct parity. It is non-blocking function that returns immediately, so you should wait till PID is sent, then you can send frame data using LIN_DRV_SendFrameData. Ideally use driver Callback and based on lin1_State->currentEventId do desired call.
So even if slave is not responding you should see LIN header or full LIN frame send by master on LIN line.
Are you using a slave device? If not, could you try connecting one?
Can you see the full frame sent by the master on the LIN line?

BR,
IsaulO.

0 Kudos
Reply