Input and output file, File control commands – Freescale Semiconductor Microcontrollers User Manual

Page 633

Advertising
background image

ColdFire V1 Full Chip Simulation Connection

FCS Visualization Utilities

633

Microcontrollers Debugger Manual

If you have chosen a connection from or to the virtual SCI port, you can also specify, in
the Virtual SCI section, which ports to use as virtual SCI ports. This enables you to make
a connection to any port in the FCS framework.

Input and Output File

You can use a file as an input stream for the terminal component or redirect the output to a
file.

To use a file as an input stream, make sure that at least one connection exists from the
input file to any output device. Then you can open an input file by choosing Input File
from the context menu. As soon as you press the OK button in the File Open dialog, input
from the file starts. The file closes as soon as the end of file is reached or when you choose
Close Input File from the context menu.

When the input file reaches its end a CTRL-Z character (ASCII code 26 decimal) is sent to
all output devices receiving characters from the input file to notify them that the file
transfer is complete.

Redirecting input devices to an output file is a similar process. Choose your connections
from input devices to the output file. Then open or create your output file by choosing
Output File from the context menu. If the file does not exist the debugger creates it.
Otherwise you can choose to overwrite or append the existing file. To stop writing to the
output file choose Close Output File from the context menu.

File Control Commands

You can open and close input and output files through special Escape sequences in the
data stream from the serial port or virtual SCI.

Table 28.15

illustrates the different possible

commands and associated Escape sequences where filename is a sequence of
characters terminated by a control character (e.g. CR) and is a valid filename.

Table 28.15 Terminal File Control Commands

Escape Sequence

Function

ESC “h” “1”

Close output file.

ESC “h” “2” filename

Open output file.

ESC “h” “3” filename

Open output file and suppress output to terminal display.

ESC “h” “4”

Close input file

ESC “h” “5” filename

Open input file.

Advertising