| |||
| Home > Loading Images and binaries > Loading multiple images to the same target > Procedure | |||
To load two images to the same debug target:
Load the first image, for example hello.axf,
with the default load options (see Loading an executable image).
Load a second image to the same target, for example demo.axf.
This image must not overlap any part of the first image in memory. You must load the second image as follows:
Select Target ? Load Image... from the main menu to display the Load File to Target dialog box (see Loading an executable image).
Unselect the Replace Existing File(s) check box, to prevent this image replacing the first image.
The Set PC to Entry point check box is also unselected. This ensures that the PC still points to the entry point in the first image.
The Set PC to Entry point check box must be selected only for the image that contains the entry point, which might not be the first image you load.
Click Open.
Select View ? Process Control from the default Code window main menu to display the Process Control pane.
Expand the display to see the process details, shown in Figure 4.5.
Because no image is currently executing, the Process entry
shows the current location of the PC, which was auto-set when the
first image was loaded. You can set the PC manually to start debugging
or reload the image that you want to test. For information on changing
the PC see:
Chapter 9 Changing the Execution Context for details on setting scope.
Chapter 13 Altering the Target Execution Environment for details on changing register entries.
Alternatively, use run and step operations (see Chapter 8 Executing Images).
RealView Debugger can only keep track of the entry point for a single image. Therefore, if you are working with multiple images, you must set a manual breakpoint at the entry point of any other images you have loaded (see Chapter 10 Setting Breakpoints). This ensures that RealView Debugger is able to debug these images in the usual way.