User manual

UM0036 STM8 C tutorial
Doc ID 7705 Rev 11 365/385
To make the trap interrupt occur more frequently:
1. Restart the application.
2. Locate the state variable in the Editor window (line 132).
3. Place the cursor on the state variable.
4. Select Edit>QuickWatch to view it in the QuickWatch window.
In the QuickWatch window change the timeoutValue value for elements 0, 1 and 2 of
this array to a lower value (for example 200).
Figure 298. QuickWatch
Then select Debug Instrument>Performance Analysis and click on Continue to execute
the program (do not click on Run because you would reset the chip and lose the values
previously set). The results of the performance analysis appear much more quickly.
1. Select Debug>Stop Debugging from the main menu.
2. Select File>Close Workspace to close the workspace. The current workspace is
closed and automatically saved.
Figure 299. New performance analysis results