10-126
EPSOn
S5U1C17001C ManUal
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
10 DEBUggEr
c17 stdout
(data output simulation)
[ICD Mini / SIM]
Operation
Sets conditions for data to be output from a specified output buffer to a file or the [Simulated I/O] window.
The following conditions are set by the
c17 stdout
command:
•
Break address
(position at which
gdb
outputs data)
•
Output buffer address (65-btye buffer)
•
Output destination
(file or [Simulated I/O] window)
For operation on the program side, see Section 10.6.8, "Simulated I/O".
Format
c17 stdout 1
BreakAddr
BufferAddr
[
Filename
]
(set)
c17 stdout 2
(clear)
BreakAddr
: Break address (decimal, hexadecimal, or symbol)
BufferAddr
: Output buffer address (decimal, hexadecimal, or symbol)
The buffer size is fixed to 65 bytes.
Filename
: Name of output file
When this entry is omitted, data is output to the [Simulated I/O] window.
Conditions: 0
≤
BreakAddr
≤
0xffffff, 0
≤
BufferAddr
≤
0xffffff
Input examples
n
Example 1
(gdb)
c17 stdout 1 WRITE_FLASH WRITE_BUF output.txt
Data output to a file is set.
When you run the program continuously after making this setting, the debugger aborts processing at the
position of the label
WRITE_FLASH
in the program. Here, the debugger outputs data from a specified buffer
(
WRITE_BUF
) to a specified file, then resumes program execution.
n
Example 2
(gdb)
c17 stdout 1 WRITE_FLASH WRITE_BUF
Data output to the [Simulated I/O] window is set.
When you run the program continuously after making this setting, the debugger aborts processing at the
position of the label
WRITE_FLASH
in the program. Here, the debugger opens the [Simulated I/O] window
and displays it with the data contained in a specified buffer (
WRITE_BUF
), then resumes program execution.
n
Example 3
(gdb)
c17 stdout 2
The data output simulation function is cleared. If data output to a file was set, the specified file is closed.
Notes
•
The break addresses specified by the
c17 stdout
command cannot duplicate those of software PC
breaks. Be sure to clear software PC breaks before executing the
c17 stdout
command. Break addresses
overlapping those of hardware PC breakpoints are accepted.
•
If the break address is specified with an odd value, the specified address is adjusted to the 16-bit boundary by
assuming LSB = 0.
Summary of Contents for S5U1C17001C
Page 6: ......
Page 17: ...1 General S5U1C17001C Manual 1 General ...
Page 18: ......
Page 21: ...1 2 Install S5U1C17001C Manual 2 Installation ...
Page 22: ......
Page 29: ...3 SoftDev S5U1C17001C Manual 3 Software Development Procedures ...
Page 30: ......
Page 103: ...4 SrcFiles S5U1C17001C Manual 4 Source files ...
Page 104: ......
Page 121: ...5 IDE S5U1C17001C Manual 5 gnU17 iDE ...
Page 122: ......
Page 365: ...6 Compiler S5U1C17001C Manual 6 C Compiler ...
Page 366: ......
Page 385: ...7 Library S5U1C17001C Manual 7 library ...
Page 386: ......
Page 405: ...8 Assemblr S5U1C17001C Manual 8 assembler ...
Page 406: ......
Page 439: ...9 Linker S5U1C17001C Manual 9 linker ...
Page 440: ......
Page 449: ...10 Debugger S5U1C17001C Manual 10 Debugger ...
Page 450: ......
Page 626: ...11 Tools S5U1C17001C Manual 11 Other Tools ...
Page 627: ......
Page 696: ...S1C17 Family C Compiler Package Quick Reference Reference ...