S32K116 LIN stack Init question

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K116 LIN stack Init question

Jump to solution
1,096 Views
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。

Labels (1)
0 Kudos
1 Solution
920 Views
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

View solution in original post

0 Kudos
1 Reply
921 Views
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 Kudos