| |||
| Home > Loading Images and binaries > Loading an executable image on startup > Examples of loading an image on startup | |||
The following examples show how to use the --init and --exec arguments:
To establish a connection to an ARM926EJ-S RVISS
model, and load an image with sections ER_RO and ER_RW and
the argument 5000:
rvdebug.exe --init=@ARM926EJ-S@RVISS_1 --exec "C:\rvd\images\my_image.axf;ER_RO,ER_RW;5000"
If you want to supply arguments, but no sections, leave the sections blank, for example:
"C:\rvd\images\my_image.axf;;5000"
To establish a connection to a Cortex-A8 model, and load an image without specific sections and without arguments:
rvdebug.exe --init=@ARM_Cortex-A8@ISSM --exec C:\rvd\images\my_image.axf
If a pathname includes spaces, it must be enclosed in quotes, for example:
rvdebug.exe --init=@ARM_Cortex-A8@ISSM --exec "C:\rvd\my images\my_image.axf"
These examples start RealView Debugger, connect to a Cortex-A8 model, and issue a load/pd/r command to load the named image to your debug target:
the /pd switch
specifies that any error messages are to appear in a dialog box
the /r switch specifies that
any image currently loaded on the chosen target is to be replaced
by the specified image.