s5u1c33000c Epson Electronics America, Inc., s5u1c33000c Datasheet - Page 305

no-image

s5u1c33000c

Manufacturer Part Number
s5u1c33000c
Description
Cmos 32-bit Single Chip Microcomputer S5u1c33000c Manual
Manufacturer
Epson Electronics America, Inc.
Datasheet
16.8.4 Executing from Command File
Another method for executing commands is to use a command file that contains descriptions of a series of debug
commands. By reading a command file into the debugger you can execute the commands written in it.
Creating a command file
Example of a command file
Reading in and executing a command file
Successive execution using a command file
Restriction
S5U1C33000C MANUAL
(C COMPILER PACKAGE FOR S1C33 FAMILY) (Ver. 4)
(1) Execution by the startup option
(2) Execution by a command
Create a command file as a text file using an editor.
Although there are no specific restrictions on the extension of a file name, Seiko Epson recommends using
".cmd".
The example below shows a command file included in the simulated I/O sample files.
Example: File name = simIO.cmd
You can use a command file to write the commands that come with a guidance mode. In this case, be sure to
break the line for each guidance input item as you write a command. In the above example, the contents
following stdout and stdin are guidance items.
There are two methods to read a command file into the debugger and to execute it, as described below.
By specifying the -c option in the db33 startup command, you can execute one command file when the
debugger starts up.
Example: Startup command of the db33
The db33 has the com and cmw commands available that you can use to execute a command file.
The com command reads in a specified file and executes the commands in that file sequentially in the order
they are written.
The cmw command performs the same function as the com command except that each command is
executed at intervals specified by the md command (1 to 256 seconds).
Examples: com startup.cmd
The commands written in the command file are displayed in the [Command] window.
After a command file is executed once, pressing [Enter] alone can execute all the commands described in
the command file repeatedly. The successive execution function is terminated when some other command
is executed.
You can read in another command file from within a command file. However, nesting of these command
files is limited to a maximum of five levels. An error is assumed and the subsequent execution is halted
when the com or cmw command at the sixth level is encountered.
db33 -c startup.cmd -p 33104_1.par
cmw test.cmd
...Loads the file.
...Cold-resets the CPU.
...Sets stdout conditions.
...Sets stdin conditions.
...Sets a software break point.
EPSON
CHAPTER 16: DEBUGGER
289

Related parts for s5u1c33000c