Debugging The Program; Gdb Command File - 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

3.6 Debugging the Program

The debugger can be started once an execution file (.elf) has been generated using a build operation and the preparations described
in the preceding section have been completed.
The debugger is started via the launch configuration window.
The launch configuration window is used for the various settings to start debugging and for launching the debugger (GDB).
3.6.1

GDB Command File

The commands executed when the debugger starts can be described in the GDB command file in the project.
The project contains the following two types of GDB command files:
gdbsim.ini
gdbmini2.ini
gdbmini3.ini
Select the GDB command file you want to use in the "Debug configuration" window.
Example:
GDB command file[gdbmini3.ini]
c17 model_path c:/EPSON/GNU17V3/mcu_model
c17 model 17W23
target icd icdmini3
load
# Please uncomment following commented out lines to enable STDOUT while debugging.
# c17 stdout 1 WRITE_FLASH WRITE_BUF
# Please uncomment following commented out lines to enable STDIN while debugging.
# c17 stdin 1 READ_FLASH READ_BUF
# Please uncomment following commented out lines to enable LCD panel simulator while
debugging.
# c17 lcdsim on
If you use the ICDmini for debugging, edit the gdbminix.ini GDB command file corresponding to the ICDmini in the project, and
specify the target model.
With the c17 model_path command, specify the MCU model information folder. If GNU17 is installed in c:\EPSON\GNU17V3,
specify as follows:
c17 model_path c:/EPSON/GNU17V3/mcu_model
With the c17 model command, specify the target model. If the target model is S1C17W23, specify as follows:
c17 model 17W23
The settings above are not required if gdbsim.ini is selected and the simulator used for debugging.
If flash security is set for the target MCU, the flash security password must be unlocked by connecting to the target MCU using the
target command and then executing the c17 pwul command before executing the load command. If the flash security version is M03
and the password set is "ABCD1234", specify as follows:
C17 pwul M03 ABCD1234
Edit the file and add any other commands you wish to execute when the debugger starts.
For detailed information on debugger commands, refer to Chapter 8, "Debugger."
S5U1C17001C Manual
(Rev. 1.0)
Simulator GDB command file
ICDmini2 (S5U1C17001H2) GDB command file
ICDmini3 (S5U1C17001H3) GDB command file
Seiko Epson Corporation
3 GNU17 IDE
3-17

Advertisement

Table of Contents
loading

Table of Contents