cancel
Showing results for 
Search instead for 
Did you mean: 

stm2L010f4 have high consumption in stop mode

jdo
Associate II
 
17 REPLIES 17

Hello @jdo​,

The "HAL_PWREx_EnableFlashPowerDown();" function is not available in STM32L0 package.

To minimize the consumption in Stop mode with STM32F4 MCU, FLASH can be powered off before entering the Stop mode.

In your case, try to check the consumption, when all pins are set as analog and without used "HAL_PWREx_EnableFlashPowerDown()" function.

Thank you.

Kaouthar

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Your 4 output and led in stop mode sink how many current ? = schematics.

jdo
Associate II

i am using internal clok 8 mhz

jdo
Associate II

in stop mode with:  HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI);

i have 0.3 uA, but i put in while {}

 while (1)
  {
 
 
 
       tec_master();
 
       if (key_row)
       {
    	   monitor_cpu++;
    	   
    	 HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI);
    	
       }

but monitorcpu increase continue without press key.

jdo
Associate II

need stop the clock?

Ahhh i write in first message You flash code from IDE with disabled debug in low power mode ?

For measure and use STOP or other low power mode you cant use debug!

jdo
Associate II

thannks! now i have 0,5uA in mode stop, the macro HAL is problem, i am using register and is rigth.