How to measure the MCU power consumption
When entering the stop mode, how to measure the power consumption?
If you are using any of ST boards (Nucleo, Discovery) there is always a dedicated jumper marked usually "Idd" where you can connect your meter and measure current consumption.
There is as well quite nice dedicated board (X-NUCLEO-LPM01A) which allows you to measure current consumption and your application power profile.
stop-mode mode means that all high speed clocks are switched off. Only low speed external clock can be active (if RTC is configured), thus to measure the power consumption the best is to measure surrent consumption on Vdd line of the MCU (as Vdd and Vdda should be on the same level in most of STM32).
Please remember that STOP mode is not modifying your IO lines states, so to limit current consumption please perform any IO lines reconfiguration (the best is to use analog mode) to limit current consumption.
What I would like to recommend to you is to have a look at one of our free mooc trainings where we are demonstrating each of low power modes (on STM32L4 example). You can see a bit more about this session here.
The session is active on our learning portal here (requires free registration by posting email to us).
Another option could be a lecture of one of our dedicated application notes (i.e. for stm32l4 lines we have AN4621 or AN4746).
Hope it helps.
VCC3V3 connects to the following vdd pinsVDD1VDD2VDD3VDDAVDDIO2
to measure the mcu power consumption,I need to measure all Idd between VCC3V3-VDD1, VCC3V3-DVV2, VCC3V3-VDD3, VCC3V3-VDDA, VCC3V3-DVVIO2, then sum up the current?
The best would be to measure current consumption at one point Vcc3V3. If not possible sum of all mentioned currents will give you an answer.
Retrieving data ...