Trace information
Running the target program after setting trace mode with this command displays trace information in the [Trace]
window for each instruction executed, or outputs it to a file.
The contents of trace information displayed in a window or output to a file are as follows:
Format of each trace information line
num clk pc code bus_addr/type/data r0 r1 r2 r3 r4 r5 r6 r7 sp ie/il/cvzn src_mix
num:
Number of executed instructions (in decimal)
Number of instructions executed since the CPU was reset
clk:
Number of execution clocks (in decimal)
Number of execution clocks since the CPU was reset
pc:
Address of executed instructions (in hexadecimal)
code:
Instruction codes (in hexadecimal)
bus_addr: Accessed memory addresses (in hexadecimal)
type:
Type of bus operation
r8: Byte data read; r16: 16-bit data read; r32: 32-bit data read
w8: Byte data write; w16: 16-bit data write; w32: 32-bit data write
data:
Read/written data (in hexadecimal)
r0–r7:
r0–r7 register values (in hexadecimal)
sp:
sp register value (in hexadecimal)
ie:
IE bit value in psr
il:
IL bit value in psr
cvzn:
C, V, Z and N bit values in psr
src_mix: Disassembled contents and source codes of executed instructions
Display example
First half of information lines (trace number to register values)
num
clk
pc
code
652
1445
0040dc
9900
653
1446
0040de
4000
654
1447
0040e0
4000
655
1449
0040e2
d900
656
1450
0040e4
2a12
657
1451
0040e6
2814
658
1452
0040e8
4000
659
1457
0040ea
1805
660
1458
0040f6
a001
661
1459
0040f8
9000
662
1462
0040fa
0e0e
663
1466
004118
0120
664
1467
0040ec
8201
665
1468
0040ee
9205
Second half of information lines (SP value to source code)
sp ie/il/cvzn
src mix
003ef8 0 0 0010
ld
003ef8 0 0 0010
ext
003ef8 0 0 0010
ext
003ef8 0 0 0010
ld
003ef8 0 0 0010
ld
003ef8 0 0 0010
ld
003ef8 0 0 0010
ext
003ef4 0 0 0010
call
003ef4 0 0 0010
and
003ef4 0 0 0010
cmp
003ef4 0 0 0010
jreq
003ef8 0 0 0010
ret
003ef8 0 0 0000
add
003ef8 0 0 1001
cmp
S5U1C17001C ManUal
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
bus addr/type/data
r0
------ --- --------
000094 000000 000000 00ffff 000000 000000 000000 000000
------ --- --------
000094 000000 000000 00ffff 000000 000000 000000 000000
------ --- --------
000094 000000 000000 00ffff 000000 000000 000000 000000
000000 w16 00000000
000094 000000 000000 00ffff 000000 000000 000000 000000
------ --- --------
000094 000000 000000 00ffff 000000 000000 000000 000000
------ --- --------
000000 000000 000000 00ffff 000000 000000 000000 000000
------ --- --------
000000 000000 000000 00ffff 000000 000000 000000 000000
003ef4 w32 000040ec
000000 000000 000000 00ffff 000000 000000 000000 000000
------ --- --------
000000 000000 000000 00ffff 000000 000000 000000 000000
------ --- --------
000000 000000 000000 00ffff 000000 000000 000000 000000
------ --- --------
000000 000000 000000 00ffff 000000 000000 000000 000000
003ef4 r32 000040ec
000000 000000 000000 00ffff 000000 000000 000000 000000
------ --- --------
000000 000000 000000 00ffff 000001 000000 000000 000000
------ --- --------
000000 000000 000000 00ffff 000001 000000 000000 000000
%r2,0x0
(main.c)
0x0
0x0
[0x0],%r2
%r4,%r2
(main.c)
%r0,%r4
(main.c)
0x0
0x5
%r0,0x1
(main.c)
%r0,0x0
0xe
(main.c)
%r4,0x1
(main.c)
%r4,0x5
EPSOn
r1
r2
r3
r4
00012
i = 0;
00014
for( j = 0; j < 6; ++j )
00016
00022
if(k & 0x1)
00027 }
00014
for( j = 0; j < 6; ++j )
10 DEBUggEr
r5
r6
r7
sub(j);
10-123
10
Debugger
Need help?
Do you have a question about the S5U1C17001C and is the answer not in the manual?