An5999 How To Use Stlinkv3pwr To Monitor Power Consumption On stm32 Mcus Stmicroelectronics
An5999 How To Use Stlinkv3pwr To Monitor Power Consumption On stm32 Mcus Stmicroelectronics
Application note
Introduction
STLINK-V3PWR is a two-in-one standalone debugger probe and source measurement unit (SMU) that supplies and acquires
the current consumption of any microcontroller-centric application. Like any ST-LINK device, the STLINK-V3PWR probe has a
debug interface and a bridge connector, with several GPIOs and I2C, SPI, and CAN protocol capabilities.
It is a key element of any electronic application to correctly manage its power consumption, and even more so for low-power
applications, where energy consumption is optimized. This application note presents various usages of STLINK-V3PWR during
the development of a new application.
• The first chapter describes the architecture and major features of STLINK-V3PWR.
• The second chapter presents the power consumption considerations related to decoupling capacitor filtering.
• The third chapter covers synchronized trace debugging with the power supply current acquisition waveform feature.
• The following chapters describe the available STLINK-V3PWR software tools.
• The final chapter presents several usages with a basic application.
1 STLINK-V3PWR overview
STLINK-V3PWR is a very useful tool to supply, debug, and control an application. It has three connectors
dedicated to those usages:
• Supplying and acquiring the current consumption waveform with the POWER connector (24 AWG cables
are included).
• Debugging the microcontroller target with the DEBUG connector.
• Controlling a target application with the BRIDGE connector.
Note: Refer to UM3097: Source measurement unit (SMU) and debugger/programmer for STM32 microcontrollers for
more information.
The main feature of the debug probe is the possibility to monitor the current consumption waveform of an
application, and acquire helpful data to improve firmware performance and quality by:
• Monitoring and verifying the average power consumption during firmware execution (for example,
compared with the product datasheet).
• Verifying the current waveform transient during application execution to ensure any wrong or timing
constraint configurations.
• Reducing the number of external device or peripheral configurations to smooth the current call waveform.
• Ensuring there is no problem related to code execution, like unexpected current shapes during concurrent
interrupts. (STLINK-V3PWR allows the synchronization of the current consumption waveform with the
debug trace, which is very helpful during application debugging.)
Power consumption measurement is based on two key elements: determining the current value, and regularly
sampling this electrical parameter.
Table 1. Total decoupling capacitor comparison between two STM32 series and two packages
STM32G031J6M6 STM32G484QE
8 pins; SO8N package 128 pins; LPQFP128 package
STM32G0316-DISCO board STM32G484E-EVAL board
Number of supply pins = 1 (VDD) Number of supply pins = 12 (VDD, VDDA, VREF+)
Total decoupling capacitance: 4.8 µF Total decoupling capacitance: 7.7 µF
1x4.7 <µF + 1x100 nF 1x4.7 µF + 2x1 µF + 10x100 nF
The next simulation figures show the filtering effect of the decoupling capacitor and acquisition sampling when a
current pulse is applied with the same quality wire used.
• Real 50 µs to 10 µs pulse current waveform at STM32 supply pins (blue color).
• Real 50 µs to 10 µs pulse current waveform at STLINK-V3PWR VOUT connector (green color).
• 100-ksample/s acquired pulse current waveform by STLINK-V3PWR (red color).
Table 2. Current acquisition sampling rate effect on current pulse observation with an STM32G0316-
DISCO board
Table 3. Current acquisition sampling rate effect on current pulse observation with an STM32G484E-EVAL
board
The figures above show that the shorter the current pulse, the higher the effects of filtering and sampling. The
current waveform observation moves from correct to difficult to incorrect for the same acquisition rate. When the
current waveform transient is shorter than 20 µs, only one acquisition current sample point is available when the
pulse is high, so the measurement accuracy of the current waveform value is low. When the current waveform
pulse duration is greater than 20 µs, a good measurement accuracy of the current waveform value is possible
with two samples during the high level of the pulse.
3 STLINK-V3PWR interfaces
Figure 3. STLINK-V3PWR Virtual COM port PWR is COM37 in the Windows 10® environment
The communication between the computer and the STLINK-V3PWR power interface is based on a specific
syntax, described in UM2269: Getting started with PowerShield firmware. The default configuration of the Virtual
COM port is:
• Baud rate: 3.6 Mbit/sec (3686400 bauds)
• Data: 8 bits
• Stop: 1 bit
• Parity: none
• Flow control: none
Enable local echo, new-line receive/transmit CR+LF.
The figure below illustrates a simple example of communication with STLINK-V3PWR, using terminal emulator
software like Tera Term with status and version commands.
The Virtual COM port interface can be used easily to communicate and interact with script languages or
automation software.
To simplify the user experience, it is recommended to use STM32CubeMonitor-Power, which is a dedicated
software tool for interfacing with STLINK-V3PWR.
With STM32CubeMonitor-Power, the user can control STLINK-V3PWR through a graphical interface, to
manipulate and save current waveform acquisitions. For more information related toSTM32CubeMonitor-Power,
refer to UM2202: STM32CubeMonitor-Power software tool for power andultra-low-power measurements. The next
chapter presents several usages of STM32CubeMonitor-Power
Figure 5. Example of STLINK-V3PWR trigger output with 2900 µA current threshold (current waveform in
red with STM32CubeMonitor-Power, TGO signal in blue with PicoScope® software)
Refer to the STLINK-V3PWR connection figure in UM3097: Source measurement unit (SMU) and debugger/
programmer for STM32 microcontrollers (chapter Typical application) for more information on how to connect the
bridge connector pins.
Refer to the STLINK-V3PWR connection figure in UM3097: Source measurement unit (SMU) and debugger/
programmer for STM32 microcontrollers (chapter Typical application) for more information on how to connect the
bridge connector pins.
4 Connecting STLINK-V3PWR
In addition to providing the power supply, STLINK-V3PWR allows for target debugging through its STDC14 debug
connector. STLINK-V3PWR should simply be connected to the target application debug connector STDC14
receiver with the cable available in the STLINK-V3PWR kit.
The following examples describe how to configure the board and where to connect the STLINK-V3PWR VOUT
and GND signals.
Figure 10. MB1549 configuration (jumpers in green, VOUT/GND connection pins in red)
STM32CubeMonitor-Power software manages the power interface of the STLINK-V3PWR probe. It uses the
dedicated PWR Virtual COM port to communicate with the probe and retrieve the current waveform acquisition
samples. This chapter describes the possible usage for STM32CubeMonitor or GNU Octave to create your own
graphical user interface.
5.1 STM32CubeMonitor-Power
This chapter provides a step-by-step description of the actions to acquire and save a current waveform.
2. Click on [TAKE CONTROL] to connect STLINK-V3PWR and start its configuration with the ACQUISITION &
REPLAY panel on the left side.
3. For the initial configuration, set the sampling frequency parameter to 100 kHz to ensure full bandwidth
acquisition. After turning the application power on with the [POWER ON] button (both the STLINK-V3PWR
OUT and AUX LEDs are now green), set the acquisition time to the desired duration (for example,
10 seconds) and then click on [START ACQUISITION] (the OUT LED is now blinking).
4. The graphical interface allows you to zoom and pan inside the current waveform acquisition.
5. Finally, the [Show Report] button allows access to statistical data (minimum, maximum, average, etc.). If
necessary, the acquisition waveform can be saved or reloaded with the [SAVE GRAPH] and [ADD
DATALOG] buttons.
100 kHz
10 kHz
1 kHz
500 Hz
50 Hz
Figure 16. Selecting a hardware trigger source from the STM32CubeMonitor-Power configuration window
The input trigger detection is functional on rising and falling edges. Because it is a level shifter input, it is
necessary to apply a reference voltage to the T_VCC pin and to connect a ground reference to the GND pin to
ensure correct functionality. (If an STDC14 debug cable is connected between STLINK-V3PWR and the target
application, the T_VCC reference and GND are polarized from it.)
The trigger output TGO signals from the bridge connector generate an output event when a sample of the current
acquisition waveform is above a current value threshold. The output trigger signal on TGO is set to a high level in
real time when the actual acquired current sample value is above the programmed threshold. TGO is set to a low
level when the actual acquired current sample value is below the threshold. In addition, TGO is the output signal
of a level shifter, so it is necessary to apply a reference voltage to the T_VCC pin and to connect a ground
reference to the GND pin to ensure correct functionality. If an STDC14 debug cable is connected between
STLINK-V3PWR and the target application, the T_VCC reference and GND are connected through this cable.
Figure 17. Selecting a current value threshold from the STM32CubeMonitor-Power configuration window
Figure 19. Same current waveform with graphical optimization (zoom in)
5.2 STM32CubeMonitor
STM32CubeMonitor software is based on Node-RED® technology, and helps design and create graphical
interfaces with elements like buttons, label boxes, and graphs to control and display any type of data. You can
easily develop a Node-RED® flow with STM32CubeMonitor to manage a power Virtual COM port and retrieve the
acquisition data from the STLINK-V3PWR debug probe (the STLINK-V3PWR power interface is based on a
specific syntax described in UM2269: Getting started with PowerShield firmware).
These data can be displayed on a graphical dashboard to highlight various types of numerics, gauges, or charts
relative to the current consumption waveform. There are buttons to start the current acquisition, and turn the
VOUT power on or off. Some functionalities are controlled with switches, like the point-per-point waveform
average to filter high frequency noise, the loop mode to perform continuous acquisitions, and the simple constant
subtraction calculation to focus on relative measurements. Refer to the power measurement section in the STM32
wiki portal for more information.
The relative measurement feature is very useful to measure the current consumption difference between two
application states. The example below shows the power consumption difference when the application is running
at 160 MHz or 24 MHz.
Activation of the relative mode creates a constant compensation offset and gets a relative measurement. The
result is 62.744 mA - 62.744 mA = 0 mA from this measuring point.
Figure 22. Dashboard STLINK-V3PWR, application running at 160 MHz (relative mode enabled)
When the application frequency is reduced to 24 MHz while the relative mode is enabled, the graphical interface
shows an easily visible current consumption reduction of 6.028 mA compared to the 160 MHz configuration.
Figure 23. Dashboard STLINK-V3PWR, application running at 24 MHz (relative mode enabled)
STM32CubeIDE can be used for debugging only with the STLINK-V3PWR probe. The supply source should be
managed separately, using STLINK-V3PWR and STM32CubeMonitor-Power, or the embedded application
supply.
6.1 STM32CubeIDE
After the STM32 target is powered on and the debug cable attached to it, the STM32CubeIDE debug session can
be configured and started.
Once the debug has been configured, you can launch the same window for the debug session by clicking on the
[Debug] button. The firmware execution is paused after the main() function; select [Resume] from the [Run]
menu to continue the firmware execution. Current consumption can be observed step by step, parallel to the code
execution.
Moreover, a global variable can be plotted using the debug interface in the Serial Wire Viewer Data Trace
Timeline Graph window.
STLINK-V3PWR has a specific feature that allows the synchronization of the current waveform acquisition with
the debug trace content based on the STM32 target timestamps during the debugging session. This feature
requires the availability of a Serial Wire Output pin to retrieve the debug data trace, which also includes the power
synchronization data via ITM.
The IDE software tools Arm® µVision® (from version V5.39) and IAR Embedded Workbench® for Arm® (from
version V9.32) are compatible with the STLINK-V3PWR debug and power features, including synchronized
acquisition.
Warning: When the debug session starts, the STLINK-V3PWR VOUT and VAUX supplies are
automatically turned on. When the debug session ends, the STLINK-V3PWR VOUT and
VAUX supplies are automatically turned off.
IAR Embedded Workbench® (from version V9.32.2) includes the STLINK-V3PWR debugger drivers and allows
the user to configure the power settings in the Project Debugger Options window. It allows you to configure the
debug interface, the supply voltage, and the CPU and SWO clock frequencies. Select [Auto Emulator] and
checking [Always prompt for probe selection]. Target power sets the target application voltage on the VOUT
and VAUX supplies
Figure 28. IAR Embedded Workbench IDE STLINK-V3PWR main options window
Figure 29. Starting the IAR Embedded Workbench IDE debug session
Figure 30. IAR Embedded Workbench IDE STLINK-V3PWR debug probe selection window
Figure 31. IAR Embedded Workbench IDE debug session break at the main() function
From the ST-LINK menu, open the Power Log Setup window to configure:
• The sampling frequency (Hz): set the current waveform sampling frequency.
• The current value threshold: set the current threshold and action associated (check [Log All], etc.). Select
[Log All] and [Halt CPU Above Threshold] to halt the code execution automatically above a given
threshold.
Figure 32. IAR Embedded Workbench IDE Power Log Setup window
The Power Timeline configuration is complete and ready for waveform analysis.
Note: When you use the zoom feature or scrolling in the IAR Embedded Workbench® IDE timeline, the displayed
current waveform is limited to a 15-second duration.
Figure 36. IAR Embedded Workbench IDE timeline power observation duration after zoom or scrolling
Figure 37. IAR Embedded Workbench IDE Communication tab in the project options
Figure 42. IAR Embedded Workbench IDE - view trace variable (data log breakpoints)
Figure 43. IAR Embedded Workbench IDE - edit trace variable (right-click option)
Once the data log has been configured, the [Data Log] feature must be enabled in the Timeline window using the
right-click option:
Figure 45. IAR Embedded Workbench IDE timeline synchronized power and data log
For more information, refer to the Watch and graph variables over time with sampled graphs and Power
debugging articles on the IAR™ knowledge website.
Figure 46. Arm® µVision® STLINK-V3PWR settings window, from the "Project/Options" menu
From the Debug probe settings window, you can access the Power tab to configure the power features of
STLINK-V3PWR.
Figure 47. Arm® µVision® STLINK-V3PWR power configuration window (acquisition disabled)
Figure 48. Arm® µVision® STLINK-V3PWR power configuration window (acquisition enabled with trace
counter)
Important: The current waveform displayed in the µVision® system analyzer is limited to a maximum number of points
(approximately 1.2 million samples). Consequently, with a sampling rate of 100 kHz, the current waveform
duration is limited to approximately 12 seconds.
Figure 50. Arm® µVision® System Analyzer with 100-kHz acquisition (~12 s maximum duration)
Figure 51. Arm® µVision® System Analyzer with 20 kHz acquisition (~60 s maximum duration)
Warning: When the debug session starts, the STLINK-V3PWR VOUT and VAUX supplies are
automatically turned on. When the debug session ends, the STLINK-V3PWR VOUT and
VAUX supplies are automatically turned off.
Figure 57. Arm® µVision® - variable view in the System Analyzer, synchronized with the current waveform
This chapter describes how to interleave STLINK-V3PWR bridge communication, debug, and current waveform
acquisition with a software application developed in the STM32CubeIDE environment. This application example
controls the bridge, debug, and power interfaces using the ST-LINK bridge API, STM32CubeProgrammer, and
serial port communication.
The user can observe the current consumption waveform (pulse rate) when the sensor is enabled and its
configuration is changed (4th and 5th steps: BSP_ENV_SENSOR_Enable() and
BSP_ENV_SENSOR_Set_OutputDataRate()). The average current value is increased after the output rate is
configured; this configuration may be changed to reduce power consumption.
Figure 62. Memory reading through the debug interface with STM32_Programmer_CLI
Then, control the target application with SPI communication through the bridge interface, and measure the
average current when each sensor is enabled. The following figures show the application interface.
Figure 64. STLINK-V3PWR bridge SPI communication and power consumption measurements
The following figures show the application source code in the STM32CubeIDE environment.
Figure 66. STLINK-V3 bridge API and power consumption functions via serial COM port communication
This chapter has demonstrated how to use the STLINK-V3PWR features to program or access the STM32
memory, control a complex target application with the bridge interface, and perform current consumption
measurements with a unique debug probe. This approach can be very useful when verifying the correct
application behavior and performances.
9 Conclusion
Revision history
Table 5. Document revision history
Contents
1 STLINK-V3PWR overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2 Current consumption measurements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.1 Current consumption value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.2 Current consumption acquisition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
3 STLINK-V3PWR interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.1 Debug probe driver installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.2 STLINK-V3PWR power interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.2.1 Power connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.2.2 USB communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.2.3 Triggers input and output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.3 STLINK-V3PWR debug interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.3.1 SWD protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.3.2 SWD+SWV protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.3.3 JTAG protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.4 STLINK-V3PWR bridge interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4 Connecting STLINK-V3PWR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
4.1 Supply a generic application board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.2 Supply an STM32 Nucleo, Discovery, or Evaluation board . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
5 STLINK-V3PWR software tools. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15
5.1 STM32CubeMonitor-Power . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5.1.1 First steps with the software tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5.1.2 Sampling frequency selection example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
5.1.3 Input and output triggers TGI and TGO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
5.1.4 Display optimization feature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
5.2 STM32CubeMonitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.3 GNU Octave 7.3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
6 STLINK-V3PWR debug only IDE software tools. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27
6.1 STM32CubeIDE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
6.1.1 Debug configuration and run . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
7 STLINK-V3PWR debug and power software tools. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30
7.1 IAR Embedded Workbench IDE (from version V9.32.2). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
7.1.1 Power configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
7.1.2 Visualizing the power current consumption waveform . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
7.1.3 Trace configuration (project options) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
7.1.4 Start/stop debug session. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
List of tables
Table 1. Total decoupling capacitor comparison between two STM32 series and two packages . . . . . . . . . . . . . . . . . . . . 4
Table 2. Current acquisition sampling rate effect on current pulse observation with an STM32G0316-DISCO board . . . . . . 5
Table 3. Current acquisition sampling rate effect on current pulse observation with an STM32G484E-EVAL board . . . . . . . 6
Table 4. Sampling frequency comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Table 5. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
List of figures
Figure 1. The STLINK-V3PWR debug probe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Figure 2. STSW-LINK007 - ST-LinkUpgrade interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Figure 3. STLINK-V3PWR Virtual COM port PWR is COM37 in the Windows 10® environment . . . . . . . . . . . . . . ..... 8
Figure 4. Example of STLINK-V3PWR communication using Tera Term software . . . . . . . . . . . . . . . . . . . . . . . . ..... 8
Figure 5. Example of STLINK-V3PWR trigger output with 2900 µA current threshold (current waveform in red with
STM32CubeMonitor-Power, TGO signal in blue with PicoScope® software) . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Figure 6. STLINK-V3PWR debug USB device in a Windows 10 environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Figure 7. STLINK-V3PWR COM PORT is COM38 in a Windows 10 environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Figure 8. STLINK-V3PWR bridge USB device in a Windows 10 environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Figure 9. MB1367 configuration (jumpers in green, VOUT/GND connection pins in red). . . . . . . . . . . . . . . . . . . . . . . . 13
Figure 10. MB1549 configuration (jumpers in green, VOUT/GND connection pins in red). . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 11. STLINK-V3PWR configuration with STM32CubeMonitor-Power . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Figure 12. STLINK-V3PWR configuration with STM32CubeMonitor-Power . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Figure 13. STLINK-V3PWR configuration and start acquisition with STM32CubeMonitor-Power . . . . . . . . . . . . . . . . . . . 17
Figure 14. STM32CubeMonitor-Power zoom and pan features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Figure 15. STM32CubeMonitor-Power statistical report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Figure 16. Selecting a hardware trigger source from the STM32CubeMonitor-Power configuration window . . . . . . . . . . . 22
Figure 17. Selecting a current value threshold from the STM32CubeMonitor-Power configuration window . . . . . . . . . . . . 22
Figure 18. Current waveform with graphical optimization (show all). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Figure 19. Same current waveform with graphical optimization (zoom in). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Figure 20. STM32CubeMonitor dashboard with STLINK-V3PWR example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Figure 21. Dashboard STLINK-V3PWR, application running at 160 MHz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Figure 22. Dashboard STLINK-V3PWR, application running at 160 MHz (relative mode enabled) . . . . . . . . . . . . . . . . . . 25
Figure 23. Dashboard STLINK-V3PWR, application running at 24 MHz (relative mode enabled). . . . . . . . . . . . . . . . . . . 25
Figure 24. GNU Octave STLINK-V3PWR, power consumption waveform acquisition . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Figure 25. STM32CubeIDE Debug Configuration window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Figure 26. STM32CubeIDE Debug window side by side with STM32CubeMonitor-Power . . . . . . . . . . . . . . . . . . . . . . . 29
Figure 27. STM32CubeIDE SWV Data Trace Timeline Graph window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Figure 28. IAR Embedded Workbench IDE STLINK-V3PWR main options window . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Figure 29. Starting the IAR Embedded Workbench IDE debug session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Figure 30. IAR Embedded Workbench IDE STLINK-V3PWR debug probe selection window . . . . . . . . . . . . . . . . . . . . . 31
Figure 31. IAR Embedded Workbench IDE debug session break at the main() function . . . . . . . . . . . . . . . . . . . . . . . . . 31
Figure 32. IAR Embedded Workbench IDE Power Log Setup window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Figure 33. IAR Embedded Workbench IDE Timeline window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Figure 34. IAR Embedded Workbench IDE timeline configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Figure 35. IAR Embedded Workbench IDE timeline power observation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Figure 36. IAR Embedded Workbench IDE timeline power observation duration after zoom or scrolling. . . . . . . . . . . . . . 33
Figure 37. IAR Embedded Workbench IDE Communication tab in the project options . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Figure 38. IAR Embedded Workbench IDE start/stop debug session. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Figure 39. IAR Embedded Workbench IDE run/stop code execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Figure 40. IAR Embedded Workbench IDE trace configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Figure 41. IAR Embedded Workbench IDE - add variable to trace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Figure 42. IAR Embedded Workbench IDE - view trace variable (data log breakpoints) . . . . . . . . . . . . . . . . . . . . . . . . . 36
Figure 43. IAR Embedded Workbench IDE - edit trace variable (right-click option) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Figure 44. IAR Embedded Workbench IDE timeline data log . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Figure 45. IAR Embedded Workbench IDE timeline synchronized power and data log . . . . . . . . . . . . . . . . . . . . . . . . . 38
Figure 46. Arm® µVision® STLINK-V3PWR settings window, from the "Project/Options" menu . . . . . . . . . . . . . . . . . . . . 39
Figure 47. Arm® µVision® STLINK-V3PWR power configuration window (acquisition disabled). . . . . . . . . . . . . . . . . . . . 40
Figure 48. Arm® µVision® STLINK-V3PWR power configuration window (acquisition enabled with trace counter) . . . . . . . 40
Figure 49. Arm® µVision® System Analyzer window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Figure 50. Arm® µVision® System Analyzer with 100-kHz acquisition (~12 s maximum duration) . . . . . . . . . . . . . . . . . . 41
Figure 51. Arm® µVision® System Analyzer with 20 kHz acquisition (~60 s maximum duration) . . . . . . . . . . . . . . . . . . . 42