cancel
Showing results for 
Search instead for 
Did you mean: 

Achieve 1micro amp deep sleep stop mode

Dprom
Associate II

Hi, Im using STM32L07CB with 16Mhz HSI and perform deep sleep stop mode. My run mode current consumption is 2mA~2.5mA. During sleep, my current consumption goes 16uA. My question is how to achieve 1uA during sleep mode?? I have already implemented these setting:-

PWR_CRbits.CWUF = 1;

 PWR_CRbits.PDDS = 1;

 PWR_CRbits.FWU = 1;

 PWR_CRbits.ULP = 1;

 PWR_CRbits.LPDS = 1;

 RCC_CFGRbits.STOPWUCK = 1;

 SCB_SCRbits.SLEEPDEEP = 1;

 ADC_CRbits.ADEN= 0;   //0-disabled ADC, enabled

 DAC_CRbits.EN1 = 0;    //0-disabled DAC1, enabled

 DisableInterrupts();

DisableGPIOclock();

GPIO_MODER_ALL = MODE_ANALOG; //00- input,01-gpio output,10-ALT func,11-analog

 asm{WFI};

please help me STM..!

THANK YOU IN ADVANCE

5 REPLIES 5
Mohamed Aymen HZAMI
ST Employee

Hello,

Do you use a firmware example or did you generate a CubeMX project?

Best Regards,

Mohamed Aymen.

Uwe Bonnes
Principal III

You should plase DisableGPIOclock() after GPIO_MODER_ALL. GpioClock is needed to set GPIO registers.

Dprom
Associate II

Thanks for reply. I have already solve this problem.

Mohamed Aymen HZAMI
ST Employee

Hello,

Can you please share with us how you solve this problem ?

Thanks and Best Regards,

Mohamed Aymen.

These solve my problem. Thank you.

" You should plase DisableGPIOclock() after GPIO_MODER_ALL. GpioClock is needed to set GPIO registers. "