S32K344 LIN ONLY SEND HEADER

cancel
Showing results for 
Search instead for 
Did you mean: 

S32K344 LIN ONLY SEND HEADER

Jump to solution
149 Views
JAY_SUN1
Contributor II

Hi Sir,

We develop S32K344 with RTD2.0.0 now, but we meet some problem for LIN. We would like to send header only by UartLin but we don't find suitable Funtion. Please help to check it and let us know the solution. Thanks.

 

 

0 Kudos
1 Solution
132 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

if referring to, for example, Lin_Ip_FrameTransfer_S32K344 example, below function is used to send frame

PetrS_0-1664983029276.png

Second parameter of Lpuart_Lin_Ip_PduType_structure contains info about LIN frame, in example 

PetrS_1-1664983244268.png

A Drc specifies response type, which can be 

PetrS_2-1664983322829.png

First is master sends heder+data, second master sends header and wait for data from slave and the last one master sends header and ignores response from slave.

So use 2nd or 3rd response type, as per your needs.

BR, Petr

View solution in original post

0 Kudos
2 Replies
133 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

if referring to, for example, Lin_Ip_FrameTransfer_S32K344 example, below function is used to send frame

PetrS_0-1664983029276.png

Second parameter of Lpuart_Lin_Ip_PduType_structure contains info about LIN frame, in example 

PetrS_1-1664983244268.png

A Drc specifies response type, which can be 

PetrS_2-1664983322829.png

First is master sends heder+data, second master sends header and wait for data from slave and the last one master sends header and ignores response from slave.

So use 2nd or 3rd response type, as per your needs.

BR, Petr

0 Kudos
122 Views
JAY_SUN1
Contributor II

Hi Petr,

Thanks for your prompt reply.

Wade

0 Kudos