Putting STM32L452 Sleep Mode
I'm developing a board with an STM32L452 and would like to find out if I can low the power consumption.
The current draining is 35mA, my goal is lower it to 20mA or less to achieve a requirement.
I've tried putting the device to sleep putting SLEEP MODE or STOP 1 MODE using the followings code:
while (1) { /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ HAL_Delay(1000); HAL_SuspendTick(); HAL_PWR_EnterSLEEPMode(PWR_MAINREGULATOR_ON,PWR_SLEEPENTRY_WFI); HAL_ResumeTick(); }
or
while (1) { /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ HAL_Delay(1000); HAL_SuspendTick(); HAL_PWREx_EnterSTOP0Mode(PWR_SLEEPENTRY_WFI); HAL_ResumeTick(); } /* USER CODE END 3 */
But I can not see any change in my current. Still Draining 35mA.
Any help would be appreciate it.
