cancel
Showing results for 
Search instead for 
Did you mean: 

Low-power sleep mode

Anup123
Associate

Not able to send STM32L4S9ZIJ6 into low-power sleep mode even after using inbuilt sleep API calls. Have used HAL_PWR_EnterSLEEPMode function call after configuring SLEEP_PD register, configuring system clock to run at 2MHz & changing the regulator mode into low power regulator mode while configuring interrupt mode for device wake up. The input supply voltage is 3V.
Please suggest any resolution on the issue as the board is not entering low-power sleep mode.

image (3).png

2 REPLIES 2
TDK
Guru

You can see an example of using low power modes in a number of CubeMX examples. Use those for inspiration and to check your code against. Here is one of them:

STM32CubeL4/Projects/NUCLEO-L4P5ZG/Examples/PWR/PWR_SLEEP/Src/main.c at 464b08aabe6d5433b6108cc3e77a3a2f84cbba63 · STMicroelectronics/STM32CubeL4 (github.com)

 

If you feel a post has answered your question, please click "Accept as Solution".
nouirakh
ST Employee

Hello @Anup123 

To solve the issue of the STM32L4S9ZIJ6 not entering low-power sleep mode, can you verify these points:

  1. Voltage Scaling: Ensure that the voltage scaling is set correctly  using HAL_PWREx_ControlVoltageScaling.

  2. Clock Configuration: Verify that the system clock is configured to a lower frequency before entering sleep mode.

  3. Interrupt Configuration: Ensure that the wake-up interrupt is correctly configured and enabled.

  4. Set the regulator to low-power mode using HAL_PWR_EnterSLEEPMode.
  5. Sleep Mode Entry: Use HAL_PWR_EnterSLEEPMode with the appropriate parameters.