Detecting a pending interrupt before cpsie i instruction

Don't know, whether the question is put right, anyway, I'm debugging an assembler program.

The effect is, that as soon as I enable interrupts using the "cpsie i" instruction, an exception (code=5, buserror) occurs.

The PC (TOS) has some weird value (00000007). I can only imaging that some timer or some other asynchronous event is causing this.

I also intercepted the sysTick-Handler by a breakpoint but this isn't being hit. (I'm using STM32CubeIDE 1.9.0 to debug the code).

Is it possible to look ahead just in the moment before I'm about to enable interrupts to detect which interrupt source is pending?

Forgot to mention that disabling IWDG Interrupts (suspend watchdog counters during debugging) didn't help.

Parents Reply Children
No data
More questions in this forum
There are no posts to show. This could be because there are no posts in this forum or due to a filter.