S32K312

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决
449 次查看
zq1
Contributor III

my project is slave ,the callback can enter lin38 ,which means it can receive 0x3c.but can not receive 0x3d, here are my project 

zq1_0-1705125775591.png

zq1_1-1705125880856.png

 

 

 

void Lin_Init()
{
Lpuart_Lin_Ip_Init(INST_LIN2,&Lpuart_Lin_Ip_Sa_pHwConfigPB_0_BOARD_INITPERIPHERALS);
IntCtrl_Ip_InstallHandler(LPUART2_IRQn, LPUART2_LIN_IP_RxTx_IRQHandler, NULL_PTR);
IntCtrl_Ip_EnableIrq(LPUART2_IRQn);
}

 

in my opinion ,the callback should enter two times, when i send uds diagnosis frame,but it enter one time

could you please help me with some adviecs ,S32K312 ,LPUART_LIN

0 项奖励
1 解答
401 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

have you sent LIN header with Id 0x3D from master so slave can respond, i.e. callback called?
If RTD does not offer CurrentId, only CurrentPid, then compare with expected Pid value in callback. For Id =0x3D the Pid if 0x7D.

BR, Petr

在原帖中查看解决方案

0 项奖励
2 回复数
439 次查看
zq1
Contributor III

this is S32K312 rtd about lpuart lin

zq1_0-1705127001189.png

why there is no struct member currentId? how can i get id  in my callback function

here is S32K144 rtd about lpuart lin

zq1_1-1705127141262.png

 

 

0 项奖励
402 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

have you sent LIN header with Id 0x3D from master so slave can respond, i.e. callback called?
If RTD does not offer CurrentId, only CurrentPid, then compare with expected Pid value in callback. For Id =0x3D the Pid if 0x7D.

BR, Petr

0 项奖励