2024-04-03 05:22 AM
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.
2024-04-04 03:05 AM
Hello @jkfc95, welcome to ST Community
With these values, I believe you're not successfully entering Sleep/stop0 mode at all.
As the expected Idd value in sleep mode is around 0.83mA and decreases when increasing Fhclk.
Could you please describe more the conditions (Fhclk clocking, peripherals enabled, RTC disabled/enabled, WKUP source, debug on?)
Also, check this wiki article
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.