Interrupt only triggered after pausing debug?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Interrupt only triggered after pausing debug?

ソリューションへジャンプ
2,384件の閲覧回数
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,125件の閲覧回数
gearhead1107
Contributor IV

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

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
2,126件の閲覧回数
gearhead1107
Contributor IV

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

0 件の賞賛
返信