Stop mode in stm32L552
Hi all,
I am using stm32L552CE. When I enter stop mode or sleep mode, the current is too high (5mA for stop mode, 18mA for sleep mode).
/* Enable PWR clock */
__HAL_RCC_PWR_CLK_ENABLE();
HAL_Delay(5000);
printf("Go into stop mode\r\n");
/****** Suspend the Ticks before entering the STOP mode or else this can wake the device up **********/
HAL_SuspendTick();
/* Enter Stop Mode */
HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI);
SystemClock_Config ();
HAL_ResumeTick();
printf("Wake up from stop mode\r\n");
Please help me. Thanks.
