S32K312

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
472件の閲覧回数
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 解決策
424件の閲覧回数
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 返答(返信)
462件の閲覧回数
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 件の賞賛
返信
425件の閲覧回数
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 件の賞賛
返信