cancel
Showing results for 
Search instead for 
Did you mean: 

Nucleo-L053R8 (Standby Mode)

Nathapol Tanomsup
Associate II
Posted on January 27, 2017 at 04:47

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-nucleo
18 REPLIES 18
Posted on January 27, 2017 at 11:22

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.  

Posted on January 27, 2017 at 11:24

I can decrease only 2 uA. Now I got 16 uA. 

Posted on January 27, 2017 at 11:34

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.

Posted on January 27, 2017 at 11:36

Hi,

I use

mailto:MSI@4.2MHz

, I got 16.1 uA but if I use

mailto:MSI@65KHz

, I got 47.3 uA. So confused.
Posted on January 27, 2017 at 11:39

You're right. I lost my point. I will start over to achieve my goal. Thanks.

Khouloud GARSI
Lead II
Posted on January 27, 2017 at 15:01

Hello everyone,

Please refer to the ''PWR_STANDBY'' example provided when downloading the

http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software/stm32cubel0.html

package:

STM32Cube_FW_L0_V1.8.0\Projects\STM32L053R8-Nucleo\Examples\PWR\PWR_STANDBY0690X00000606ALQAY.png

The Idd=0.29µA; which is with the same as the value on the datasheet.

0690X00000605vRQAQ.png

Khouloud

Posted on January 30, 2017 at 07:01

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.

0690X00000603aGQAQ.jpg

Posted on January 30, 2017 at 08:52

Finally, I got it. Thanks for helping.

0690X00000603aQQAQ.jpg
Posted on January 30, 2017 at 09:36

You are welcome