the s32k144 lin question

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

the s32k144 lin question

1,042 次查看
zeroun
Contributor I
Now I have create a project from example named"lin_master_s32k144"
Now I have two questions

1 in the "Sporadic frame definition",I create a Sporadic frame,there have two frame"setting frame" and  "command frame"
  how can I send the frame "setting frame"" or "command frame" ,which one Generated code can I use?
2 how to send a buffer without Generated code ,such as  use the sdk0.0.8.6
  now I have use two function:
  const uint8_t test = 0xAA;
  linStatusHeader = LIN_DRV_MasterSendHeader(2, 0x10);
  linStatusFrame = LIN_DRV_SendFrameDataBlocking(2,&test,1,20);
 
  now the board send a "id" 0x10 is right
  but no data have been send 
 
  the LIN_DRV_SendFrameDataBlocking(2,&test,1,20) return 2;
标签 (1)
0 项奖励
回复
1 回复

808 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

unfortunately I am not able to comment a usage of the LIN stack, I have no experience with it.
However I can provide you demo example where just SDK's LIN driver is used, here steps for sending/receiving LIN frames are more readable.

Hope it helps.

BR, Petr

0 项奖励
回复