C17 Stdin (Input Of Data Using Input/Output Functions) [Icd Mini / Sim] - Epson S5U1C17001C Manual

Cmos 16-bit single chip microcontroller (c compiler package for s1c17 family) (ver. 3.2)
Hide thumbs Also See for S5U1C17001C:
Table of Contents

Advertisement

c17 stdin
(input of data using input/output functions)
Operation
Enters settings for inputting data from a file or the standard input application (stdinput.exe) and transferring it to the program.
Use the input/output function to load data into the user program.
Format
c17 stdin 1 READ_FLASH READ_BUF [Filename] (setting)
c17 stdin 2 (cancellation)
Filename: Input file name. If no file name is provided, data will be input from [Console] view.
Usage example
■Example 1
(gdb) c17 stdin 1 READ_FLASH READ_BUF input.txt
This sets the data input function that inputs data from a file.
If the program continues to run after this setting is made, the debugger will abort execution at the location of the READ_FLASH
label described in the 1ibg.a library. At that location, the one-line data in the input.txt file is loaded into the input buffer
(READ_BUF), and the program resumes operating.
■Example 2
(gdb) c17 stdin 1 READ_FLASH READ_BUF
This sets a data input function that uses the standard input application.
If the program continues to run after this setting is made, the debugger will abort execution at the location of the READ_FLASH
label described in the 1ibg.a library and launch the standard input application. When data is input into the standard input
application and the user clicks the [OK] button, the input data is loaded into the input buffer (READ_BUF), and the program
resumes operating.
■Example 3
(gdb) c17 stdin 2
This cancels the data input function. In the case of data input from a file, the specified file closes.
Notes
 To use the c17 stdin command, the user program must be linked to libg.a.
 The c17 stdin command uses one hardware breakpoint. If the maximum number of hardware breakpoints is exceeded, an
error will be generated.
 The input buffer (READ_BUF) accepts up to 62 characters. Any characters beyond this limit are discarded.
 The standard input application permits the input of only alphanumeric characters and symbols.
 The c17 stdin 1 command can not be executed continuously. Use the c17 stdin 1 and the c17 stdin 2 as a set.
S5U1C17001C Manual
(Rev. 1.0)
Seiko Epson Corporation
8 Debugger
[ICD Mini / SIM]
8-66

Advertisement

Table of Contents
loading

Table of Contents