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:
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.
BR,
IsaulO.
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.