I´m trying to enable the Nvic Interrupts but I have a problem. The Interrupt never set. I don´t know if I need to enable something or How can I fix it ?
I enabled the Nvic Interrupts of this way:
NVICISER1 |= 1<<(37 % 32); Message buffer interrupt
NVICISER1 |= 1<<(38 % 32); Bus Off
NVICISER1 |= 1<<(39 % 32); Error interrupt
NVICISER1 |= 1<<(40 % 32); Tx warning
NVICISER1 |= 1<<(41 % 32); Rx warning
NVICISER1 |= 1<<(42 % 32); Wake up
and I put these interrupts in the vector table but they never set.
Hello Ivan,
were this suggestions helpful? Please keep us posted, we'd like to know :smileywink:
Best,
Monica.
Hi Ivan,
Please make sure that the PRIMASK is enabled.
#define EnableInterrupts asm ("CPSIE i");
That the vector table is located correctly and that the FlexCAN module is configured as expected.
You can see a very good example in the KINETIS512_SC samples.
I hope this helps,
Alejandro