4.5. Loading multiple images to the same target

RealView Debugger provides the option to load multiple images to the same debug target, that is where there is only a single connection. This enables you to load, for example, both an executable image and an OS-aware image at the same time.

The procedure described in the next section assumes that you have two images, hello.axf and demo.axf, that do not overlap in memory. For example:

To load two images to the same debug target:

  1. Load the first image, for example hello.axf, with the default load options.

  2. 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:

    1. Select Target → Load Image... from the Code window main menu to open the Load File to Target dialog box.

    2. Deselect 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 deselected. 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.

    3. Click Open.

  3. Select View → Process Control from the Code window main menu to open the Process Control view.

  4. Expand the display to see the process details. Figure 4.6 shows an example:

    Figure 4.6. Multiple images in the Process Control view

    Multiple images in the Process Control view

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.


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. This ensures that RealView Debugger is able to debug these images in the usual way.

See also:

Copyright © 2002-2011 ARM. All rights reserved.ARM DUI 0153N