Is LIN Demo working, which are built for S32k144?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Is LIN Demo working, which are built for S32k144?

1,262件の閲覧回数
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 件の賞賛
返信
3 返答(返信)

1,237件の閲覧回数
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 件の賞賛
返信

1,220件の閲覧回数
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

 

タグ(1)
0 件の賞賛
返信

1,189件の閲覧回数
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 件の賞賛
返信