3.1.2. Using the Load File to Target dialog box

Select File → Load Image... from the Code window main menu to load an image to a processor for execution. This displays the Load File to Target dialog box shown in Figure 3.1.

Figure 3.1. Load File to Target dialog box

Load File to Target dialog box

This dialog box contains controls to configure the way the image is loaded for execution:

Symbols Only

By default, any object file loaded from this dialog box also loads the symbols. If you want to load only the symbols then select this check box, for example when you are working with ROM images.

If the program was initially compiled without a symbol table then you must recompile the program before loading only the symbols.

See Working with symbols for more details.

Replace Existing File(s)

By default, loading a new image overwrites any image currently loaded to the target.

If you are working with multiple applications, use this check box to carry out separate loads of associated modules such as an RTOS and associated applications.

Target Name:

Use this field to enter the target name, where supported.

A name entered here is then used as the argument to a LOAD command (see Specifying the load instruction).

Arguments:

Use this field to enter a space-separated list of arguments to the image.

Entries in this field create an arguments list used with the LOAD command (see Specifying the load instruction).

PC

When you load an image to the debug target you can optionally set the Program Counter (PC):

Auto-Set PC

Selected by default, this control defines the location of the PC when you load an image. RealView Debugger tracks the state of the other check boxes on this dialog box and sets the PC at the normal entry point, for example main(), if you select the check box Replace Existing File(s).

Unselect the Auto-Set PC check box to have control over the PC when you load an image.

Set PC to Entry point

Where selected, RealView Debugger sets the PC at the start address specified in the object module.

This is the default if you select both:

  • Auto-Set PC

  • Replace Existing File(s).

Unselect the Set PC to Entry point check box to prevent the load command setting the PC.

Note

Controls used here, for example setting the PC, take precedence over any load settings elsewhere.

Copyright © 2003, 2004 ARM Limited. All rights reserved.ARM DUI 0234B
Non-Confidential