File Loading Commands; File (Load Debugging Information) [Icd Mini / Sim] - Epson S5U1C17001C Manual

Cmos 16-bit single chip microcontroller (c compiler package for s1c17 family) (ver. 3.2)
Hide thumbs Also See for S5U1C17001C:
Table of Contents

Advertisement

8.5.10 File Loading Commands

file
(load debugging information)
Operation
Loads only debugging information from elf format object files.
Use the load command to load necessary object code.
Format
file Filename
Filename: Name of object file in elf format to be debugged (with path also specifiable)
Usage example
(gdb) file sample.elf
Debugging information is loaded from sample.elf in the current directory.
Notes
 The file command only loads debugging information; it does not load object code. Therefore, except when the program is
written to target MCU ROM, you cannot start debugging by simply executing the file command.
 The file command must be executed before the target and load commands. The following shows the basic sequence
of command execution:
(gdb) file sample.elf
(gdb) target sim
(gdb) load
(gdb) c17 rst
 Unless executed for elf object files in executable format (generated by the linker), the file command results in an error
and no files can be loaded. If the loaded file contains no debugging information, an error also results.
 The elf format object files contain information on source files (including the directory structure). For this reason, unless the
source files exist in a specified directory in the object file as viewed from the current directory, the source files cannot be
loaded. Basically, the series of operations from compiling to debugging should be performed in the same directory.
 Once the file command is executed, operation cannot be aborted until the debugger finishes loading the file.
 An error will occur if an unsupported elf file (with no C17 flag) is specified.
S5U1C17001C Manual
(Rev. 1.0)
(this command)
(connects the target MCU.)
(loads the program.)
(resets the CPU.)
Seiko Epson Corporation
8 Debugger
[ICD Mini / SIM]
8-44

Advertisement

Table of Contents
loading

Table of Contents