Getting started with SWO trace
Before you start C-SPY, choose Project>Option>Driver
Click the Setup tab or the Connection tab, respectively, and choose Interface>SWD.
After you have started C-SPY, choose SWO Trace Windows Settings from the C-SPY driver menu. In the dialog box that appears, make your settings for controlling the output in the Trace window.
To see statistical trace data, select the option Force>PC samples, see SWO Trace Window Settings dialog box.
To configure the hardware’s generation of trace data, click the SWO Configuration button available in the SWO Configuration dialog box. For more information, see SWO Configuration dialog box.
Note specifically these settings:
The value of the CPU clock option must reflect the frequency of the CPU clock speed at which the application executes. Note also that the settings you make are preserved between debug sessions.
To decrease the amount of transmissions on the communication channel, you can disable the Timestamp option. Alternatively, set a lower rate for PC Sampling or use a higher SWO clock frequency.
Open the SWO Trace window—available from the C-SPY driver menu—and click
the Activate button to enable trace data collection.Start the execution. The Trace window is continuously updated with trace data. For more information about the window, see Trace window.