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

The Power Logwindow is available from the C-SPY driver menu during a debug session.

This window displays collected power values. This figure shows the Power Log window for the J-Link debug probe.
A row with only Time/Cycles displayed in pink denotes a logged power value for a channel that was active during the actual collection of data but currently is disabled in the Power Log Setup window.
Note
There is a limit on the number of saved logs. When this limit is exceeded, the oldest entries in the buffer are erased.
Display area
This area contains these columns:
- Time
The time from the application reset until the event, based on the clock frequency.
If the time is displayed in italics, the target system could not collect a correct time, but instead had to approximate it.
This column is available when you have selected Show Time from the context menu.
- Cycles
The number of cycles from the application reset until the event, based on the operating frequency specified in the Operating Frequency dialog box, see Operating Frequency dialog box. This information is cleared at reset.
If a cycle is displayed in italics, the target system could not 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 (J-Link only)
Displays one of these:
An address, which is the content of the
PC, that is, the address of an instruction close to where the power value was collected.‑‑-, 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.
Idle, the power value is logged during idle mode.
- Name [ unit ]
The power measurement value expressed in the unit you specified in the Power Log Setup window (J-Link only).
Context menu
This context menu is available:

These commands are available:
- Enable
Enables the logging system, which means that power values are saved internally within the IDE. The values are displayed in the Power Log window and in the Power graph in the Timeline window (if enabled). The system will log information also when the window is closed.
Note: For the E2 emulator, this command only toggles the display of power log data. The power log system can only be enabled/disabled in the Power Log Setup window.
- Clear
Deletes the log information. Note that this will also happen when you reset the debugger, or if you change the execution frequency in the Operating Frequency dialog box.
- 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.
- Choose Live Log File
Displays a standard file selection dialog box where you can choose a destination file for the logged power values. The power values are continuously saved to that file during execution. The content of the live log file is never automatically cleared, the logged values are simply added at the end of the file.
- Enable Live Logging to
Toggles live logging on or off. The logs are saved in the specified file.
- Clear log file
Clears the content of the live log file.
- 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.
- Open Setup Window
Opens the Power Log Setup window.
The format of the log file
The entries in the log file are separated by TAB and line feed. The logged power values are displayed in these columns:
- Time/Cycles
The time from the application reset until the power value was logged.
- Approx
An x in the column indicates that the power value has an approximative value for time/cycle.
- PC
The value of the program counter close to the point where the power value was logged. For the E2 emulator, this will be
– – – –for all values, because the C-SPY E2 emulator driver does not support this feature.
- Name [ unit ]
The corresponding value from the Power Log window, where Name and unit are according to your settings in the Power Log Setup window. For the E2 emulator, this will be
Current [mA]for all values.