Interrupt only triggered after pausing debug?

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

Interrupt only triggered after pausing debug?

Jump to solution
1,066 Views
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?

Labels (1)
0 Kudos
1 Solution
807 Views
gearhead1107
Contributor IV

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

View solution in original post

0 Kudos
1 Reply
808 Views
gearhead1107
Contributor IV

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

0 Kudos