User manual
UM0036 STM8 C tutorial
Doc ID 7705 Rev 11 357/385
12.7.1 View program execution history
The Trace window is used to view the contents of the trace buffer. The Trace Buffer is a
physical memory module in the emulator that records the hardware cycles that occur when
a program is executed.
1. Select View>Trace to display the Trace window.
2. Right-click in the Trace window to open the contextual menu.
Figure 288. Trace contextual menu
3. Select Emulator commands>Clear Trace buffer.
4. Click on Debug>Step Over a few times in order to generate trace record.
Note: If you have executed a Chip Reset (debug>Chip Reset) prior to Step Over, STVD may not
be able to terminate the exectuion of the step command. To regain control, select
Debug>Stop Program form the main menu bar.
5. From the Trace Contextual menu select Column Display....
6. Click on Uncheck all and then check the following: Record, Address, Data, Symbolic
Disassembly. Click on OK to view the results.
7. From the Trace Contextual menu select Copy to File....
8. In the Save Trace Contents window click on the Last records button and enter 100 as
the number of records to save. Enter a filename in the File name field. Click on OK to
save the records.