S32K116 LIN stack Init question

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K116 LIN stack Init question

ソリューションへジャンプ
1,916件の閲覧回数
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,740件の閲覧回数
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,741件の閲覧回数
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 件の賞賛
返信