Interrupt Pre-emption in S32K146

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

Interrupt Pre-emption in S32K146

734 次查看
jayashreepasane
Contributor III

I am using S32K146 controller for my project. I have integrated CANFD stack and using systick to generate timer interrupt at every 1ms.

I see that when CAN interrupt is executing, systick is not able to preempt the CAN interrupt. I want to know what other settings need to be done so that higher priority interrupt can preempt lower priority.

 

 

0 项奖励
回复
1 回复

710 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello,

If SysTick has a higher priority than the FlexCAN, the Systick must preempts the FlexCAN interrupts, unless the interrupts are masked in the FlexCAN interrupt handler.

Can you double check the priorities?

Is Systick pending while the FlexCAN interrupt is acive?

Please read PRIMASK in the FlexCAN handler.

 

Regards,

Daniel

0 项奖励
回复