Epson S5U1C17001C Manual page 589

Cmos 16-bit single chip microcomputer, c compiler package for s1c17 family
Hide thumbs Also See for S5U1C17001C:
Table of Contents

Advertisement

10 DEBUggEr
n Example 2 (ICD Mini mode)
(gdb) c17 clockmd 1
(gdb) c17 rst
CPU resetting .................... done
(gdb) continue
Breakpoint 1, sub (k=0) at main.c:20
(gdb) c17 clock
0 hour 0 min 1 sec 23 ms 1.33 us
(gdb) continue
Continuing.
Breakpoint 1, sub (k=1) at main.c:20
(gdb) c17 clock
0 hour 1 min 53 sec 0 ms 0 us
In this example, after setting in reset mode, the execution counter is reset by the reset command, thereby
starting the program. In reset mode, the execution counter is reset when program execution resumes after a
break. Therefore, counts in this mode differ from those in cumulating mode.
Notes
• In ICD Mini mode, the continue/until command must be executed before this command becomes
effective.
In simulator mode, this command is always effective.
• The c17 clock command cannot display execution times while the lapse of time break (c17 timebrk)
is enabled. Disable the lapse of time break (c17 timebrk 0) to measure execution times.
• The execution counter is reset in the following cases:
1. When the c17 clockmd command changes execution counter mode (from cumulating mode to reset
mode or vice versa)
2. When the program is started with the counter set to reset mode
3. When the CPU is reset
4. When the c17 timebrk, step, stepi, next, nexti or finish command is executed in ICD
Mini mode
• Deviations of about 30 to 40 cycles will occur in ICDmini mode because it includes debugging mode
entering and exiting processes.
10-138
EPSOn
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
S5U1C17001C ManUal

Advertisement

Table of Contents
loading

Table of Contents