Hi fengba,
建议参考All Example S32K312 DS3.5 RTD-3.0.0里的CAN例程有配置这些。
需要配置与/RTD/src/FlexCAN_Ip_Irq.c里定义的handler名字,比如CAN0_ORED_IRQHandler、CAN0_ORED_0_31_MB_IRQHandler、CAN0_ORED_32_63_MB_IRQHandler。
/RTD/src/FlexCAN_Ip_Irq.c和参考手册附件里的S32K3xx_interrupt_map.xlsx都有介绍各个handler的含义。
如果你没使用IntCtrl_Ip_Init 和 IntCtrl_Ip_ConfigIrqRouting整体初始化IntCtrl_Ip里配置的,那么就需要单独使用IntCtrl_Ip_EnableIrq和IntCtrl_Ip_InstallHandler逐个实现。
Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------