s5u1c17001c Epson Electronics America, Inc., s5u1c17001c Datasheet - Page 510

no-image

s5u1c17001c

Manufacturer Part Number
s5u1c17001c
Description
Cmos 16-bit Application Specific Controller
Manufacturer
Epson Electronics America, Inc.
Datasheet
10 DEBUGGER
10.7.14 Simulated I/O Commands
c17 stdin
■ Example 1
■ Example 2
■ Example 3
10-118
Operation
Format
Input examples
Notes
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
• Input buffer address (65-btye buffer)
• Input source
For operation on the program side, see Section 10.6.8, "Simulated I/O".
c17 stdin 1 BreakAddr BufferAddr [ Filename ] (set)
c17 stdin 2
BreakAddr: Break address (decimal, hexadecimal, or symbol)
BufferAddr: Input buffer address (decimal, hexadecimal, or symbol)
Filename: Name of input file
Conditions: 0 ≤ BreakAddr ≤ 0xffffff, 0 ≤ BufferAddr ≤ 0xffffff
(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.
(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.
(gdb) c17 stdin 2
The data input simulation function is cleared. If data entered from a file was set, the specified file is closed.
• The break addresses specified by the c17 stdin command cannot duplicate those of software PC
• If the break address is specified with an odd value, the specified address is adjusted to the 16-bit boundary by
breaks. Be sure to clear software PC breaks before executing the c17 stdin command. Break addresses
overlapping those of hardware PC breakpoints are accepted.
assuming LSB = 0.
The buffer size is fixed to 65 bytes.
When this entry is omitted, data entry from the [Simulated I/O] window is assumed.
(data input simulation)
(position at which gdb takes in data)
(file or [Simulated I/O] window)
EPSON
(clear)
(C COMPILER PACKAGE FOR S1C17 FAMILY) (Ver. 1.1)
S5U1C17001C MANUAL
[ICD Mini / SIM]

Related parts for s5u1c17001c