S32K312

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
718 Views
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 Kudos
Reply
1 Solution
670 Views
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

View solution in original post

0 Kudos
Reply
2 Replies
708 Views
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 Kudos
Reply
671 Views
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 Kudos
Reply