Skip to main content

IAR Embedded Workbench for RH850 3.20.x

Simulating an interrupt in a multi-task system

In this section:

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.

To simulate a normal interrupt exit:
  1. Set a code breakpoint on the instruction that returns from the interrupt function.

  2. Specify the __popSimulatorInterruptExecutingStack macro as a condition to the breakpoint.

    When the breakpoint is triggered, the macro is executed and then the application continues to execute automatically.