Simulating an interrupt in a multi-task system
If you are using interrupts in such a way that the normal instruction used for returning from an interrupt handler is not used, for example in an operating system with task-switching, the simulator cannot automatically detect that the interrupt has finished executing. The interrupt simulation system will work correctly, but the status information in the Interrupt Configuration window might not look as you expect. If too many interrupts are executing simultaneously, a warning might be issued.
Set a code breakpoint on the instruction that returns from the interrupt function.
Specify the
__popSimulatorInterruptExecutingStackmacro as a condition to the breakpoint.When the breakpoint is triggered, the macro is executed and then the application continues to execute automatically.