Skip to main content

IAR Embedded Workbench for Arm 9.70.x

Using a setup macro file

In this section:

A setup macro file is a macro file that you choose to load automatically when C-SPY starts. You can define the setup macro file to perform actions according to your needs, using setup macro functions and system macros. Thus, if you load a setup macro file you can initialize C-SPY to perform actions automatically.

For more information about setup macro files and functions, see Introduction to C-SPY macros.

For an example of how to use a setup macro file, see Initializing target hardware before C-SPY starts.

To register a setup macro file:
  1. Before you start C-SPY, choose Project>Options>Debugger>Setup.

  2. Select Use macro file and type the path and name of your setup macro file, for example Setup.mac. If you do not type a filename extension, the extension mac is assumed.