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
解決済! 解決策の投稿を見る。
Hi Manuel,
S32K1xx_DMA_Interrupt_mapping.xlsm
So please write to ICPR[2], ISER[2].
S32_NVIC->ICPR[2] = 1 << (CAN0_ORed_0_15_MB_IRQn % 32); /* IRQ81 CAN0 channel: clear any pending IRQ */
S32_NVIC->ISER[2] = 1 << (CAN0_ORed_0_15_MB_IRQn % 32); /* IRQ81 CAN0 channel: enable IRQ */
Regards,
Daniel
Hi Manuel,
S32K1xx_DMA_Interrupt_mapping.xlsm
So please write to ICPR[2], ISER[2].
S32_NVIC->ICPR[2] = 1 << (CAN0_ORed_0_15_MB_IRQn % 32); /* IRQ81 CAN0 channel: clear any pending IRQ */
S32_NVIC->ISER[2] = 1 << (CAN0_ORed_0_15_MB_IRQn % 32); /* IRQ81 CAN0 channel: enable IRQ */
Regards,
Daniel