S32K116 LIN stack Init question

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32K116 LIN stack Init question

跳至解决方案
1,920 次查看
1090097669
Contributor III

after pin set PTC2-rxd,PTC3-txd,and lin stack --LIn_cfg set,pastedImage_2.png

pastedImage_1.png

and code blow:

l_sys_init();
l_ifc_init(LI0);
lin_trcv_init();
l_ifc_wake_up(LI0);
l_sys_irq_restore(LI0);
ld_init(LI0);

the question is I can not enter rx interrupt! why ? please help me to point the error,thank you。

标签 (1)
0 项奖励
回复
1 解答
1,744 次查看
Alexis_A
NXP TechSupport
NXP TechSupport

Hello Katrinal wang,

The l_ifc_init already sets the IRQ and the callback is used in the implementation of the stack. If you want to use the interruption you will need use the driver baremetal.

If you want to check where the interrupt is handled check the CallbackHandler in the lin.c file.

Best Regards,

Alexis Andalon

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,745 次查看
Alexis_A
NXP TechSupport
NXP TechSupport

Hello Katrinal wang,

The l_ifc_init already sets the IRQ and the callback is used in the implementation of the stack. If you want to use the interruption you will need use the driver baremetal.

If you want to check where the interrupt is handled check the CallbackHandler in the lin.c file.

Best Regards,

Alexis Andalon

0 项奖励
回复