2017-12-02 12:44 PM
Hi!
I am using CubeMX and System Workbench, and an STM32F030f4p.
In CubeMX I enable only one GPIO port so I can turn on-off the LED on the board, and RTC Alarm A.In the code I turn on the power clock with
__HAL_RCC_PWR_CLK_ENABLE();
then I call
HAL_PWR_EnterSTANDBYMode();The curent consumption is 4.6mA. I power the board via the 3V pin, there is nothing else attached to the board.
(I tried an other version of the code on a nucleo board, (F446RE I think) where I am waking up the board periodically with RTC. (the led blinks three times, then the board goes to standby, after 10 second MCU wakes up, the led blinks three times again, etc.)I get similar consumption.)With this really stripped down version of the code where I only enable power clock, then enter standby, I get 4.6mA consumption. I measure the current with a multimeter in serial with the board 3v pin and the power source.Could you help me finding the solution? This is my first time working with an MCU.
#standby-mode2017-12-04 01:55 AM
Are you using some kind of regulator?
2017-12-04 07:57 AM
Hi
sz.fredi
,Welcome to STM32 community
-Nesrine-
2017-12-05 11:27 AM
No I am not using, I power the boards via the 3.3V pin. But I'll check the nucleo schematics.
2017-12-11 12:02 AM
Are you disabling your clocks and putting all the GPIO in AN mode before entering
HAL_PWR_EnterSTANDBYMode();