
What is the main use of dynamic current monitoring?
The CPU draw will be just a part of the total.
Unless one is doing a low power design... but it is trivial to measure the power draw, with a resistor, no?
I would much more like a debugger which is reliable. They all seem to fail after some hours or less, permanently disconnecting from the target. I am running Cube IDE.
@voltsandjolts I agree that of the three, the PPK2 is the best dedicated low-cost power analyzer.
None of them are really adequate for serious dynamic power analysis as they lack adequate sampling rate/bandwidth. I use a Joulescope for that, but it is considerably more expensive. I also agree that the ability to correlate digital signals to current changes is important and useful. The V3-PWR has an extensive set of digital I/O pins including GPIO, SPI, I2C, etc; hopefully, ST will add more functionality to the software (which is very basic at present) to take advantage of those hardware interfaces. Displaying/correlating them to power events as you suggest would be a great enhancement (along with cursors and several other things missing in the software).
What all of these allow (that had previously been difficult) is the very fast shunt-switching that makes it practical to measure the huge dymamic current range of most IoT applications. The other thing I like about the STLinkV3 is the high level of integration (DBG/JTAG, Serial comms, power supply, current monitoring) that gets a lot of clutter off my desk.
Thanks for the pointers to the other devices; I wasn't aware of them! I've summarized the differences between those devices and the STLinkV3-PWR below with product links and more detailed comparisons following.
- The Nordic PPK2 appears to be a generally superior power profiling tool to the STLinkV3-PWR, offering wider voltage and current ranges; measurement speed is the same. They cost about the same, however the PPK2 is not multi-function (no debug/serial functionality) and it has no enclosure. It is more like a poor-man's Joulescope
- The MCU-Link doesn't seem to offer any advantages over the STlink V3-PWR other than cost (and IMO not enough to justify the limitations); the critical issue is that it only offers two jumper-selected current measurement ranges, neither of which is quite right for many IoT devices. It is multi-function (JTAG+serial), but has no enclosure. Personally, I'd pay $50 more to get the much better power measurement capability and an enclosure.
MCU-Link vs. STLINK V3-PWR
https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-/mcu-link-pro-debug-probe:MCU-LINK-PRO
- Critical: MCU-Link requires you to select one of two current measurement ranges: 200nA-50mA or 10uA-350mA (jumper selectable) whereas the STLINK V3-PWR auto-selects among 4 ranges from 100nA to 500mA
- Similar: JTAG and Serial Comms functionality
- Similar: power measurement speed: 100ks/s (MCU-Link docs note limitations at higher speeds)
- Pro: $46 vs. $95
- Pro: auxiliary analog input
- Pro: able to measure current/voltage from other sources (e.g. battery)
- Con: power supply functionality more limited (1v8 or 3v3 only, 350mA max)
- Con: bare board - no enclosure for MCU-Link
Nordic PPK2 vs. STLINK V3-PWR
https://www.nordicsemi.com/Products/Development-hardware/Power-Profiler-Kit-2
- Pro: 5 auto-selected current ranges, max 1A (vs. 4-ranges, 500mA max for V3-PWR)
- Pro: wider voltage range (0v8 to 5v0)
- Pro: able to measure current from other power sources
- Con: not multi-function (no JTAG/SWD or serial comms functionality
- Con: Some specs fuzzy (stated differently in each document, sometimes even in the same document). Lower current measurement range is stated as 100nA, 200nA, 500nA. Accuracy varies from 1% to +/-20%
- Similar: $86-$92 vs. $95 for STLINK V3-PWR
- Con: bare board - no enclosure for PPK2
Someone kindly contributed a nice design and you can buy 9 breakout PCBs for $11.10 shipped: https://oshpark.com/projects/HWRz6QUn/view_design.
I have been using the PPK2 for some time. As someone else pointed out, it has a basic logic analyzer, which is very convenient especially for complex code (like BLE), where different output pins on the CPU under test can be toggled, and used to correlate power consumption to specific events (with a 100kHz resolution)
Also, at least my PPK2 is enclosed in a transparent enclosure. It's not a bare board at all, even if it might look like one in the pictures.
It is always simple to say the product is unacceptable if few issues appear, however also "the Rome wasn't built in a day" and the product is out for only a few months. In fact, it combines two older solutions (ST-Link and PowerShield) in one and uses different hardware (STM32H7, older solution used STM32F7 and STM32L4 respectively).
As for the capacitor-overcurrent issue, I guess it might not necessarily an issue, if you get to overcurrent state (by connecting large capacitor) that it fails and make you "think what you have done wrong". Anyway, I also agree that, if possible, the firmware should recover itself if such case and a hard reset should not be an only option.
...
There are also commonly cases like it does not work at all, however form what I know it should be used as ST-Link in whole our ecosystem (STM32CubeIDE, STM32CubeProg). The ST-Link firmware updater included in certain tools may not know V3PWR yet, however it should be a problem only until the next update. So, the clue might be to use up-to-date versions of the tools.
If you are more interested in V3PWR, it is good to know UM2269 which documentation for the protocol used in the PowerShield part. If you have any specific ideas how to improve our products, please let us know, you are welcome.
- That dang STC14 connector. This is a problem with the entire STLINK-V3 line, not just the STLINK-V3PWR: ST standardized on a 2x7 0.050" pin header for the core connectivity (SWD, UART) and it is a PITA. Unless you have an STC14 connector on your target, you have a problem because now you can't easily connect things using the ubiquitous 0.100" dupont jumper wires.
So every STLINK-V3 needs a breakout board to split the STC14 connector out to 0.100" pin headers.