Interrupt only triggered after pausing debug?

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

Interrupt only triggered after pausing debug?

跳至解决方案
2,562 次查看
gearhead1107
Contributor IV

I'm trying to deal with a weird issue where a CAN interrupt is only being triggered after I suspend a debug session.

For instance, I have a break-point at "CAN0_ORed_0_15_MB_IRQHandler()" which is the first function called from the interrupt vector.

Starting the code, I have the following, showing now CAN interrupts have been flagged:

CAN_NoInterrupt.jpg

Then, I let the board run, and send a CAN message (verified that this occurs)... and nothing happens. When I suspend the debug session, the register shows there is a CAN interrupt:

CAN_InterruptApparent.jpg

After I resume the debug session, I suddenly hit my break-point!! 
IRQ.jpg

Why on earth would this happen *only* after pausing a debug session?

标签 (1)
0 项奖励
回复
1 解答
2,303 次查看
gearhead1107
Contributor IV

Kinda dumb, but still interesting - this happened because interrupts were disabled globally but not re-enabled.

在原帖中查看解决方案

0 项奖励
回复
1 回复
2,304 次查看
gearhead1107
Contributor IV

Kinda dumb, but still interesting - this happened because interrupts were disabled globally but not re-enabled.

0 项奖励
回复