Event Log window
What do you want to do?
Learn about:
Learn how to:
Get reference information about the Event Log window, see below the line.

The Event Log window is available from the C-SPY driver menu.

This window displays the events produced when the execution passes specific positions in your application code. The Cortex ITM communication channels are used for passing the events from a running application to the C-SPY Events system.
Note
There is a limit on the number of saved logs. When this limit is exceeded, the oldest entries in the buffer are erased.
Requirements
A Cortex device and one of these alternatives:
The C-SPY I-jet driver and an I-jet or I-jet Trace in-circuit debugging probe with an SWD interface between the debug probe and the target system
The C-SPY J-Link/J-Trace driver and a J-Link or J-Trace debug probe with an SWD interface between the debug probe and the target system
The C-SPY ST-LINK driver and an ST-LINK debug probe with an SWD interface between the debug probe and the target system
The C-SPY TI XDS driver and a TI XDS debug probe with an SWD interface between the debug probe and the target system.
Display area
Each row in the display area shows the events in these columns:
- Cycles
The number of cycles from the start of the execution until the event. This information is cleared at reset.
If a cycle is displayed in italics, the target system has not been able to collect a correct time, but instead had to approximate it.
This column is available when you have selected Show cycles from the context menu.
- Program Counter
An address, which is the content of the
PC, that is, the address of the instruction that performed the memory access.‑‑-, the target system failed to provide the debugger with any information.
Overflow in red, the communication channel failed to transmit all data from the target system.
- ITM1 , ITM2 , ITM3, ITM4
The Cortex ITM communication channels for which the events are logged. For each event, the event value is displayed.
Add a preprocessor macro to your application source code where you want events to be generated. See Getting started using event logging.
Context menu
This context menu is available:

These commands are available:
- Enable
Enables the logging system. The system will log information also when the window is closed.
- Clear
Deletes the log information. Note that this will also happen when you reset the debugger.
- Variable
The name of the channel for which the Events-specific commands below apply. This menu command is context-sensitive, which means it reflects the channel in the Events graph you selected in the Timeline window (one of up to four).
- Signed
Toggles between displaying the selected value as a signed or unsigned number. Note that this setting also affects the log window.
- Hexadecimal
Toggles between displaying the selected value in decimal or hexadecimal format. Note that this setting also affects the log window.
- Save to File
Displays a standard file selection dialog box where you can select the destination file for the log information. The entries in the log file are separated by
TABandLFcharacters. An X in the Approx column indicates that the timestamp is an approximation.
- Show Time
Displays the Time column. If the Time column is displayed by default in the C-SPY driver you are using, this menu command is not available.
- Show Cycles
Displays the Cycles column. If the Cycles column is not supported in the C-SPY driver you are using, this menu command is not available.