2019-10-02 05:57 PM
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
2019-10-17 02:39 AM
Hello,
Do you use a firmware example or did you generate a CubeMX project?
Best Regards,
Mohamed Aymen.
2019-10-17 03:03 AM
You should plase DisableGPIOclock() after GPIO_MODER_ALL. GpioClock is needed to set GPIO registers.
2019-10-29 06:59 PM
Thanks for reply. I have already solve this problem.
2019-10-30 01:44 AM
Hello,
Can you please share with us how you solve this problem ?
Thanks and Best Regards,
Mohamed Aymen.
2020-01-06 11:55 PM
These solve my problem. Thank you.
" You should plase DisableGPIOclock() after GPIO_MODER_ALL. GpioClock is needed to set GPIO registers. "