Question
STM32L010 current consumption higher than expected
Hi,
I have a custom board with STM32L010. I used STM32 cubeMX to initialize the GPIO,I2C,SPI,ADC,USART,LPTIM2,CRC,DMA and RTC. Then I de-initialize everything except GPIO and put the controller in sleep mode. The current consumption still is 250 uA after it enters sleep mode even though the datasheet says that it should be around 2uA. I use the following code to enter sleep mode,
SCB->SCR &= ~( SCB_SCR_SLEEPDEEP_Msk ); // low-power mode = sleep mode
SCB->SCR |= SCB_SCR_SLEEPONEXIT_Msk; // reenter low-power mode after ISR
/* Ensure Flash memory stays on */
FLASH->ACR &= ~FLASH_ACR_SLEEP_PD;
__WFI(); // enter low-power modeIs there something needs to be added or done to get 2uA current draw?
Thank you in advance for help.
