Skip to main content

IAR Embedded Workbench for RX 5.20

execUserSetup

In this section:
Syntax
execUserSetup
For use with

All C-SPY drivers.

Description

Called once after the target application is downloaded.

Implement this macro to set up the memory map, breakpoints, interrupts, register macro files, etc.

Warning

If you define interrupts or breakpoints in a macro file that is executed at system start (using execUserSetup) we strongly recommend that you also make sure that they are removed at system shutdown (using execUserExit). An example is available in SetupSimple.mac, see the tutorials in the Information Center.

The reason for this is that the simulator saves interrupt settings between sessions and if they are not removed they will get duplicated every time execUserSetup is executed again. This seriously affects the execution speed.