my project is slave ,the callback can enter lin38 ,which means it can receive 0x3c.but can not receive 0x3d, here are my project
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
解決済! 解決策の投稿を見る。
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
this is S32K312 rtd about lpuart lin
why there is no struct member currentId? how can i get id in my callback function
here is S32K144 rtd about lpuart lin
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