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
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