µVision User's GuideAbout µVision User Interface Creating Applications Debugging Debug Commands ASM ASSIGN BreakAccess BreakDisable BreakEnable BreakKill BreakList BreakSet COVERAGE COVERAGE Overview Report COVERAGE GCOV Export COVERAGE ASM Report COVERAGE MTB Import COVTOFILE DEFINE DIR Display Enter EVALuate EventRecorder EXIT FUNC Go INCLUDE IRLOG ITMLOG KILL LOAD LOG LogicAnalyze MAP MODE Ostep PerformanceAnalyze Pstep RESET SAVE SBC (only Cortex-M) SCOPE SET SIGNAL SLOG Tstep Unassemble WatchSet WatchKill TraceAccessPoint TraceDataPoint TraceDisable TraceEnable TraceHalt TraceKill TraceList TraceRun (ETM) TraceSuspend (ETM) Debug Functions Simulation Flash Programming Dialogs Utilities Command Line Example Programs Appendix
The LOAD command instructs the µVision debugger to load an object file. You can load the object file of the current project when starting the µVision debugger by enabling Options for Target – Debug - Load Application at Startup.
µVision analyzes the contents of the file to determine the file type (if the file type cannot be determined, then an error message is displayed). The following file types are supported:
The LOAD command has several options that depend on the target in use:
The LOAD command supports the specification of an address offset for Cortex-M targets. This allows to adjust the effective addresses of the loaded debugging information and symbols of position independent code. The offset specifies the base address where the bootloader or overlay manager is copying the code at during runtime.
LOAD MYPROG.HEX LOAD %L CLEAR INCREMENTAL 0x2000 // Clear previously loaded program information, and load linker output file with an address adjustment of 0x2000 LOAD MyAxf.axf 0x4000 // Clear previously loaded program information, reset target, and load application MyAxf.axf with an address offset of 0x4000
This command loads myprog.hex.
Support for Key Sequences
A limited number of key sequences can be used in the LOAD command. This enhancement allows using a generic Debugger initialization file across multiple projects. Key sequences supported by the load command are:
The following examples assume that the µVision project file is available in the directory C:\Projects\Blinky and that the output directory is .\Output.
LOAD $L@L.axf // C:\Projects\Blinky\Output\Blinky.axf, loads linker output file LOAD $L@L.hex // C:\Projects\Blinky\Output\Blinky.hex, loads Intel hex file LOAD $L%L // C:\Projects\Blinky\Output\Blinky.axf LOAD %L // C:\Projects\Blinky\Output\Blinky.axf1 LOAD .\Output\Blinky.axf // C:\Projects\Blinky\Output\Blinky.axf
of your data.