| |||
| Home > Customizing a Debug Configuration > Using the Thumb-2EE helper macro > Loading the Thumb-2EE helper macro for a multiprocessor system | |||
If your Thumb-2EE supported processor is part of a multiprocessor system, the method described in Loading the Thumb-2EE helper macro for a single processor system might not be desirable. This is because RealView Debugger loads the macro for each processor to which an image is loaded.
To make sure the Thumb-2EE helper macro is loaded only for a Thumb-2EE supported processor in a multiprocessor system, do the following:
Select Connect to Target... from the Target menu to display the Connect to Target window.
Locate the required Debug Configuration:
Select Configuration from the Grouped By list.
Expand the Debug Interface containing the Debug
Configuration of interest. For this example, expand Instruction
Set System Model (ISSM).
Make sure that all targets are disconnected on the Debug Configuration.
Right-click on the Debug Configuration to display
the context menu. For example, right-click on ISSM.
Select Properties... from the context menu to display the Connection Properties window. The settings group for the chosen Debug Configuration is selected.
Create an Advanced_Information block
for each:
Expand the Advanced_Information group
in the left pane.
Right-click on the Default group
to display the context menu.
Select Make New... from the context menu to display the Enter Value dialog box.
Enter a processor name corresponding to the target processor. For example, enter ARM_Cortex-A8.
Click Create to create the new group for the processor.
Repeat this procedure for other target processors as required.
For the Thumb-2EE supported target, select the target-specific
group in the Advanced_Information block. For
example, select the ARM_Cortex-A8 block.
Specify the commands to load the image and the macro:
Right-click on the black Commands setting
in the right pane to display the context menu.
Select Make New... from the context menu.
Enter the following INCLUDE command to load the help macro:
include 'install_directory\RVD\Core\...\etc\thumb2ee.inc'
A new Commands setting is created, colored
blue.
Right-click on the main Commands setting
in the right pane to display the context menu.
Select Make New... from the context menu.
Enter the required LOAD command to load your image, for example:
load/pd/r 'install_directory\RVDS\Examples\...\cached_dhry\CortexA8dhry\CortexA8dhry.axf'
You might have to build the example image in this directory first.
A new Commands setting is created, colored
blue.
The commands are added to the Commands list
in reverse order. Therefore, the LOAD command
runs before the INCLUDE command. You can re-order
the commands if you have added them in the wrong order.
Select Save and Close from the File menu.
When you connect to a Thumb-2EE supported target, the image is automatically loaded first and then the helper macro is loaded. The macro is not loaded when you load an image to any other processor in the system.
Chapter 16 Using Macros for Debugging in the RealView Debugger User Guide.