S32K344 LIN ONLY SEND HEADER

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32K344 LIN ONLY SEND HEADER

跳至解决方案
601 次查看
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 项奖励
1 解答
584 次查看
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 项奖励
2 回复数
585 次查看
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 项奖励
574 次查看
JAY_SUN1
Contributor II

Hi Petr,

Thanks for your prompt reply.

Wade

0 项奖励