Nvic Interrups of FlexCAN1

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Nvic Interrups of FlexCAN1

821 Views
ivanrobles
Contributor III

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.

Labels (1)
Tags (2)
0 Kudos
Reply
2 Replies

540 Views
Monica
Senior Contributor III

Hello Ivan,

were this suggestions helpful? Please keep us posted, we'd like to know :smileywink:

Best,

Monica.

0 Kudos
Reply

540 Views
alejandrolozan1
NXP Employee
NXP Employee

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.

http://www.freescale.com/webapp/sps/download/license.jsp?colCode=KINETIS512_SC&prodCode=K60_100&loca...

I hope this helps,

Alejandro

0 Kudos
Reply