S5U1C17001C ManUal
EPSOn
10-125
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
10 DEBUggEr
10
Debugger
10.7.14 Simulated i/O Commands
c17 stdin
(data input simulation)
[ICD Mini / SIM]
Operation
Sets conditions for data to be entered from a file or [Simulated I/O] window and passed to the program.
The following conditions are set by the
c17 stdin
command:
•
Break address
(position at which
gdb
takes in data)
•
Input buffer address (65-btye buffer)
•
Input source
(file or [Simulated I/O] window)
For operation on the program side, see Section 10.6.8, "Simulated I/O".
Format
c17 stdin 1
BreakAddr
BufferAddr
[
Filename
]
(set)
c17 stdin 2
(clear)
BreakAddr
: Break address (decimal, hexadecimal, or symbol)
BufferAddr
: Input buffer address (decimal, hexadecimal, or symbol)
The buffer size is fixed to 65 bytes.
Filename
: Name of input file
When this entry is omitted, data entry from the [Simulated I/O] window is assumed.
Conditions: 0
≤
BreakAddr
≤
0xffffff, 0
≤
BufferAddr
≤
0xffffff
Input examples
n
Example 1
(gdb)
c17 stdin 1 READ_FLASH READ_BUF input.txt
Data entered from a file is set.
When you run the program continuously after making this setting, the debugger aborts processing at the
position of the
READ_FLASH
label in the program. Here, the debugger takes one line of data from the
input.
txt
file and places it in the input buffer (
READ_BUF
), then resumes program execution.
n
Example 2
(gdb)
c17 stdin 1 READ_FLASH READ_BUF
Data entered via 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
READ_FLASH
label in the program and opens the [Simulated I/O] window. When you enter data
in the window and press the [Enter] key, the debugger takes data from the window and places it in the input
buffer (
READ_BUF
), then resumes program execution.
n
Example 3
(gdb)
c17 stdin 2
The data input simulation function is cleared. If data entered from a file was set, the specified file is closed.
Notes
•
The break addresses specified by the
c17 stdin
command cannot duplicate those of software PC
breaks. Be sure to clear software PC breaks before executing the
c17 stdin
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 ...