Nvic Interrups of FlexCAN1

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Nvic Interrups of FlexCAN1

1,182 次查看
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.

标签 (1)
标记 (2)
0 项奖励
回复
2 回复数

901 次查看
Monica
Senior Contributor III

Hello Ivan,

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

Best,

Monica.

0 项奖励
回复

901 次查看
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 项奖励
回复