ARM Technical Support Knowledge Articles

HOW CAN I LOG VARIABLE VALUES TO A FILE

Applies to: uVision Debugger

Answer


Information in this article applies to:


QUESTION

I run my microcontroller application in the µVision simulator andon the target debugger. This application fills an array with data. Is it possible to write the values of this array to a file on my PC? Every time I modify my application, I want to compare the data with the previous version.

ANSWER

Yes, this is possible. Let's assume that the application defines an array like this:

unsigned char testarray[100];

Depending on the format you need, there are many ways to log these values to a file:

SEE ALSO

Article last edited on: 2005-07-27 02:01:34

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