cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L1 and low power stop mode

samuel23
Associate III
Posted on March 28, 2017 at 12:26

Hi,

I am using a

https://community.st.com/tags♯/?tags=stm32l1

on the STM32L152c-discovery and trying to reach a lower power consumption.

But I can't reach less than 0.6mA !!! (10x more than in theory).

Where this current is going?

Any idea?

HAL_Init();

HAL_PWREx_EnableUltraLowPower();

HAL_PWR_DisablePVD();

SysTick->CTRL=0;

HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON,PWR_STOPENTRY_WFE);

while(1);

Thanks!

#power #stm32l1 #stop-mode
3 REPLIES 3
Khouloud GARSI
Lead II
Posted on March 28, 2017 at 13:10

Hi

Samuel.Poiraud.005

‌,

I advice you to look at the 'PWR' example provided by ST under the path below:

'STM32Cube_FW_L1_V1.6.0\Projects\STM32L100C-Discovery\Examples\PWR'

The example has been tested with STM32L100C-Discovery board, but can be easily tailored to any other supported device and development board.

Khouloud.

Posted on March 28, 2017 at 17:48

Thanks,

I compared and used this code, and get no difference in the current.

I found 300uA in the useless boot0 pull-up. So it remains only about 400uA.

I am not sure the MCU is eating this current, but there is nothing else on the board.

sima2
Associate III

Did you find a solution? I have the same trouble.