load
(load program)
Operation
Loads the program and data from a file into target MCU memory.
Format
load [Filename]
Filename: Name of elf format or ROM data (Motorola format) file to be debugged (with path also specifiable)
When this entry is omitted, the file specified previously by the file command is loaded. This specification is
usually omitted.
Usage example
(gdb) file sample.elf
(gdb) target sim
(gdb) load
The program and data are loaded from sample.elf in the current directory (specified by the file command) into target
memory (computer memory in this example because the debugger operates in simulator mode).
Notes
The load command must be executed after the file and target commands. The following shows the basic sequence of
command execution:
(gdb) file sample.elf
(gdb) target sim
(gdb) load
(gdb) c17 rst
The load command loads only several areas of an object file containing the code and data. All other areas are left intact in
the previous state before load command execution.
S5U1C17001C Manual
(Rev. 1.0)
(loads debugging information.)
(connects the target MCU.)
(this command)
(resets the CPU.)
Seiko Epson Corporation
8 Debugger
[ICD Mini / SIM]
8-45