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.
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