Using The Debugger - 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.3

Using the Debugger

 Starting debugging
The procedure for starting the debugger for the first time with the current project is described below.
(1) Select [Debug Configurations...] on the [Run] menu to display the launch configuration dialog box. It can also be opened
from the [Debug] button menu on the toolbar.
(2) Select the C/C++ Application type and select the Debug configuration that corresponds to the project name.
(3) Select the GDB command file within the project using GDB Command file on the Debugger tab.
gdbsim.ini:
When debugging in simulator mode
gdbmini2.ini: When debugging using the ICDmini2 (S5U1C17001H2)
gdbmini3.ini: When debugging using the ICDmini3 (S5U1C17001H3)
(4) Specify the symbol for starting debugging using "Stop on startup at" on the Debugger tab. The main function is specified
beforehand to support programs written in C.
(5) Click the [Debug] button to start debugging.
For details of the Debug configuration, refer to Section 3.6.4, "Setting the Debug Configuration."
 Debugging the program
The program can be executed from the [Run] menu while debugging is in progress.
Operations specific to the GNU17 debugger (gdb c17 commands) can be selected and executed from [Debug Command] on the
[C17] menu.
Command
c17 rst
c17 rstt
c17 int
c17 intclear
c17 tm
c17 chgclkmd
Note: The c17 ttbr, c17 pwul, c17 model_path, and c17 model commands must be described in the GDB
command file executed when the debugger is launched.
The following views can also be used to check the program status during debugging:
View
Breakpoints
Console
Disassembly
EmbSys Registers
Expressions
Memory Browser
Registers
Variables
S5U1C17001C Manual
(Rev. 1.0)
Reset
Reset target
Interrupt
Clear interrupt
Set trace mode
DCLK change mode
Allows the breakpoint settings to be checked and modified for all projects within the
workspace.
Allows the following outputs to be checked:
 Messages output by tools while building is in progress
 GDB command file execution results
 gdb c17 command execution results
 Standard output for programs during execution
Allows reverse assembly of programs to be checked.
Allows peripheral circuit register values to be checked and modified.
Allows any monitoring expression (global symbol or register) to be registered and the values
checked for all projects within the workspace.
Allows the memory contents to be checked and modified.
Allows the CPU register values to be checked and modified.
Allows the variables to be checked and modified.
Local variables are displayed automatically, depending on program execution status. Global
variables are displayed if they are registered.
Seiko Epson Corporation
Function
Function
3 GNU17 IDE
3-19

Advertisement

Table of Contents
loading

Table of Contents