cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L452 shutdown mode very high current consumption

priven
Associate II
Posted on May 28, 2018 at 17:01

Hello,

I'm using STM32L452 for my project and I'm trying to use shutdown mode, but I'm getting very high current consumption ~1mA but with STOP1 mode the current consumption is only 65uA (Its according to spec because I have additional load)

I used the examples from cubeL4 ver 1.8

STOP1 function: (65uA)

   HAL_SuspendTick();

   HAL_PWREx_EnterSTOP1Mode(PWR_STOPENTRY_WFI);

   HAL_ResumeTick();

Shutdown function: (1mA)

   HAL_PWREx_EnableGPIOPullDown(PWR_GPIO_C, PWR_GPIO_BIT_13);

   HAL_PWREx_EnableGPIOPullUp(PWR_GPIO_A, PWR_GPIO_BIT_2);

   HAL_PWREx_EnablePullUpPullDownConfig();

   /* Disable all used wakeup sources: WKUP pin */

   HAL_PWR_DisableWakeUpPin(PWR_WAKEUP_PIN2);

   HAL_PWR_DisableWakeUpPin(PWR_WAKEUP_PIN4);

   /     * Clear wake up Flag */

   __HAL_PWR_CLEAR_FLAG(PWR_FLAG_WU);

   /* Enable wakeup pin WKUP2 WKUP4 */

   HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN2_HIGH);

   HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN4_LOW);

   HAL_PWREx_EnterSHUTDOWNMode();

Please assist

Regards,

Michael

0 REPLIES 0