| |||
| Home > Getting Started with RealView Debugger > Loading an image ready for debugging > Loading an image directly | |||
To load an image directly to your debug target:
Select the menu option Target ? Load Image....
Alternatively, click the blue Click to Load Image
to Target hyperlink in the File Editor pane.
The Load File to Target dialog is displayed.
Do not change any default settings in the Load File to Target dialog box.
Locate the dhrystone.axf image
in your Tutorial directory (see Starting the tutorial):
install_directory\RVDS\Examples\...\Tutorial\Debug
Click Open. The image is loaded to the debug target.
In the Code window Text Coloring is enabled by default. To turn on line numbering select Edit ? Advanced ? Show Line Numbers from the Code window main menu.
When you load an image, the debugger:
inserts the source filename, for the current context, in the File field at the top of the File Editor pane
highlights the location of the Program Counter (PC) at the entry point with a red box
moves the text insertion point to the current location of the PC
updates the Code window panes as appropriate, for example, it updates the process information in the Process Control pane
updates the Code window title bar to show the name of the project associated with the image
displays the load line in the Cmd tab in the Output pane.
If an image is compiled to generate debug information, that
is using the --debug switch, loading the image
enables RealView Debugger to gather debug information about the image and
the associated source files. In the dhrystone example
project, this opens the source file dhry_1.c into
the Src tab when you load the image because
it has the context. See Using the code views for more details.