2017-01-26 07:47 PM
Hello, I got stuck in a power mode on Nucleo-L053R8 for a week. My desire is going to make this board consume an energy lowest as possible when it is on standby mode. I used this code
/*Disable clock to unused peripheral*/
__GPIOC_CLK_DISABLE();
__GPIOH_CLK_DISABLE();
__GPIOA_CLK_DISABLE();
__GPIOB_CLK_DISABLE();
__GPIOD_CLK_DISABLE();
__SYSCFG_CLK_DISABLE();
__PWR_CLK_DISABLE();
SysTick->CTRL=0x00;
HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN2); __HAL_PWR_CLEAR_FLAG(PWR_FLAG_WU);
HAL_PWR_EnterSTANDBYMode();
I got 18 uA on my ammeter but reference manual claims only 0.27 uA so what else do I need to turn off to get lowest power consumption as possible.
#stm32l0-nucleoSolved! Go to Solution.
2017-01-27 03:22 AM
Hi,
Khouloud. I still stuck in this problem. I measured this board and I got 16.1 uA in new config. I am confused about LED (LD3) I think this LED may consume a little bit energy(Am I right?). I measure IDD form JP6.
2017-01-27 03:24 AM
I can decrease only 2 uA. Now I got 16 uA.
2017-01-27 03:34 AM
I have also struggled with this power consumption for MANY hours. The features are very complex. Did you enable low power mode?
// Enable low power
LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_PWR); LL_PWR_EnableUltraLowPower(); LL_PWR_SetRegulModeLP(LL_PWR_REGU_LPMODES_LOW_POWER); LL_PWR_EnableLowPowerRunMode(); LL_APB1_GRP1_DisableClock(LL_APB1_GRP1_PERIPH_PWR);I would suggest you to start with an empty project and forget all about your I/O and interrupts and only focus on achieving the expected standby current. Then move on to initialize I/O etc. That was how I figured out to use the right features.
2017-01-27 03:36 AM
Hi,
I use
mailto:MSI@4.2MHz
, I got 16.1 uA but if I usemailto:MSI@65KHz
, I got 47.3 uA. So confused.2017-01-27 03:39 AM
You're right. I lost my point. I will start over to achieve my goal. Thanks.
2017-01-27 06:01 AM
Hello everyone,
Please refer to the ''PWR_STANDBY'' example provided when downloading the
package:STM32Cube_FW_L0_V1.8.0\Projects\STM32L053R8-Nucleo\Examples\PWR\PWR_STANDBYThe Idd=0.29µA; which is with the same as the value on the datasheet.
Khouloud
2017-01-29 11:01 PM
Hi, Khouloud
Today, I used an example from
/external-link.jspa?url=http%3A%2F%2Fwww.st.com%2Fcontent%2Fst_com%2Fen%2Fproducts%2Fembedded-software%2Fmcus-embedded-software%2Fstm32-embedded-software%2Fstm32cube-embedded-software%2Fstm32cubel0.html
package but I got this. I don't think it works fine.
2017-01-30 12:52 AM
Finally, I got it. Thanks for helping.
2017-01-30 01:36 AM
You are welcome