SourcePoint AMD Help

Table of Contents

File Menu - Macro Menu Item

Select the Macro menu item from the File menu to access the following options: Load Macro and Configure Macros.

Load Macro Option

Select the Load Macro option to load an existing macro file.

1. ย ย ย ย ย Select the Load Macro option.

2. ย ย ย ย ย A standard Open file dialog box displays.

3. ย ย ย ย ย Select the desired macro by clicking on it to highlight it or browse for it.

4. ย ย ย ย ย Click the Open button. The macro loads, and the Open file dialog box closes.

Configure Macros Option

Select Configure Macros to open the Configure Macros dialog. There are two types of macros: User-defined macros and Event macros. User-defined macros are macros that you create and link to the buttons in the Macro toolbar. Event macros are macros that run when a specific event occurs (e.g., target reset, project load, etc.).

User-Defined Macros Tab

ย 

Configure Macros dialog box

Select macro. Use this drop down list to select a user-defined macro number. Up to 20 user-defined macros can be specified.

Note: You must add the macro icons to the icon toolbar prior to adding user-defined macros 4 - 19. If you do not, the select macros drop down text box shows only Macros 0 - 3. To add macros to the toolbar, right-click on the Macro toolbar and select Customize.

Cmd/macro file. Use this box to specify the macro file to execute. Select the Browse button to find the file. ย Clearing this field removes the macro definition.

Alternatively, you can specify a command to execute. ย If the text entered in this box begins with a "#" character, then it is considered to be a command and is executed directly. ย Multiple commands can be separated by semicolons.

Echo file to command window. Enabling this option causes the contents of the macro file to be echoed to the Command window.

Button text. By default user-defined macro buttons are labeled โ€Macro 0,โ€ "Macro 1,โ€ etc. ย This field can be used to display more descriptive text. The text is visible on the toolbar only when you choose to display both the icon and text.

Clear All. Use this button to remove all macros definitions. ย 

Note: User-defined macros are saved in target configuration files. See Option Menu - Save Target configuration File Menu Item in SourcePoint Environment for more information.

Event Macros Tab

Event Macros dialog box

Select event. Choose the event to link a macro with. ย When the event occurs, the macro file will be executed. ย See Event descriptions below.

Cmd/macro filename. Use this box to specify the macro file to execute. Select the Browse button to find the file.

Alternatively, you can specify a command to execute. ย If the text entered in this box begins with a "#" character, then it is considered to be a command and is executed directly. ย Multiple commands can be separated by semicolons.

Echo file to command window. Enabling this option causes the contents of the macro file to be echoed to the Command window.

Disable macro. ย Enabling this option temporarily disables an event macro from running.

Clear All. Use this button to remove all macros definitions. ย 

Note: Event macros are saved in target configuration files. See Option Menu - Save Target configuration File Menu Item in SourcePoint Environment for more information.

ย 

Event

Description

Breakpoint (any)

Macro executes after any breakpoint is hit. This macro is in addition to any individual breakpoint macros that have been set.

Emulator Connected

Macro executes after SourcePoint connects to the emulator, but before target configuration occurs.

Go

Macro executes just prior to sending the Go command to the emulator.

Project Load

Macro executes immediately after loading or reloading a project.

Project Unload

Macro executes immediately after unloading a project (which includes closing SourcePoint).

Reset (before)

Macro executes just prior to sending the Reset command to the emulator.

Reset detected

Macro executes when the emulator detects a target reset initiated by either SourcePoint or the target. ย If the target requires security unlocking, this event can be used to run an unlock macro.

Reset complete

Macro executes immediately after target reset has completed.

Reset (after)

Macro executes after a user-initiated reset completes. ย This event does not occur if Run after reset is enabled.

Startup

Macro executes when SourcePoint starts.

Stop (user)

Macro executes after the Stop button is pressed, and the emulator signals the target has stopped

Target configure

Macro executes after target power on and before project load. ย This macro provides the discover/configure functions and any custom target security unlocking procedures (when required). ย See the Target Configuration Technical note for more information.

Target power on detected

Macro executes when the emulator detects a power on transition. ย If the target requires security unlocking, this event can be used to run an unlock macro.

Target power on complete

Macro executes when the emulator signals that the target power cycle is complete.

Target stop

Macro executes whenever the target stops (either because of a breakpoint or the stop key being pressed). Macro executes before SourcePoint does any automatic memory or register reads to refresh state.

ย