Robert,
There are several ways to display the value of variables:
- inside Data Component
- in Visualization Tool, ...
The key question is what are the information you want capture ?
1- The periodical refresh can be used to refresh at defined time the variables listed under Data component.
However it's a periodical refresh and not display each changed value.
If the defined time is 1second, the data will be refreshed every second.
To enable it you need to select the Data Component and with pop-up menu select Mode + Periodical ...
Now you can define an update rate.
Run the application.
2- If you want capture only write access you need to use another solution.
In this case the watchpoint is probably a better solution.
The watchpoint can be set on variable name in the Data component or in the Memory component too.
Inside Data the watchpoint is dedicated to a specific variable whereas under Memory you can define a watchoint on memory area (range).
How to set it:
- select variable or memory area,
- pop-up menu + Set watchpoint.
Open the Watchpoint configuration: Run menu + Control Point...
Click on Watchpoints Tab.
In the Watchpoint configuration you can define some options as stop on read, write or read/write, condition and add a command.
The command will be executed.
In the command option you can set continue - in this case the application restarts after command execution.
The command could be a single debugger command or a call a command file.
By this way you can save the value of a variable for instance by using:
fprintf (test.txt,"%s %2d","The value of the counter is:",counter)
The content of the file test.txt is: The value of the counter is: 25
3- Visualization too.
You can add a new component and display what you want here.
You will find more information in the Debugger_HC12.pdf manual (\CWS12v5.1\Help\PDF)
Page 497: Book IV - Commands and Environment Variables
Page 143: Visualization Tool Component
Have a great day,
Pascal
Freescale Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------