ARM Technical Support Knowledge Articles

LOGGING SERIAL WINDOW OUTPUT IN A FILE

Applies to: uVision Debugger

Answer


Information in this article applies to:


QUESTION

How do I print or save the contents of the serial window to a file?

ANSWER

The SLOG command logs the serial window contents to a file. For example:

slog > c:file.log

creates the file C:FILE.LOG as a log file. Input and output from the Serial window is written to this file.

slog >> c:file.log

opens an existing log file named C:FILE.LOG for appending log information. If the file does not exist, it is created. Input and output from the Serial window is appended to this file.

slog

displays the status of the log file.

slog off

closes the log file.

MORE INFORMATION

For more information on this and other uVision Debug Commands, go to the Books tab in uVision. Double click on the Tools User's Guide folder, then double click on uVision Debug Commands. SLOG is listed under General Commands.

Article last edited on: 2005-07-20 16:04:55

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential