AnsweredAssumed Answered

CAN Bus interrupt on Reception S32k144

Question asked by MANUEL MORENO-EGUILAZ on Nov 23, 2017
Latest reply on Nov 24, 2017 by Daniel Martynek

Hi,

I am trying to enable interrupts on CAN reception (S32k144 EVB) with the folowing code:

 

void NVIC_init_IRQs (void) {
  S32_NVIC->ICPR[1] = 1 << (CAN0_ORed_0_15_MB_IRQn % 32);  /* IRQ81 CAN0 channel: clear any pending IRQ */
  S32_NVIC->ISER[1] = 1 << (CAN0_ORed_0_15_MB_IRQn % 32);  /* IRQ81 CAN0 channel: enable IRQ */
  S32_NVIC->IP[CAN0_ORed_0_15_MB_IRQn] = 0xA0;             /* IRQ81 CAN0 channel: priority 10 of 0-15 */
}

 

However, I cannot get any interrupt.

 

Where can I find documentation about the vectors S32_NVIC?

 

Thanks a lot,

 

Manuel

Outcomes