2024-08-06 03:51 AM
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.
2024-08-06 04:43 AM
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:
2024-08-19 03:59 AM
Hello @Anup123
To solve the issue of the STM32L4S9ZIJ6 not entering low-power sleep mode, can you verify these points:
Voltage Scaling: Ensure that the voltage scaling is set correctly using HAL_PWREx_ControlVoltageScaling.
Clock Configuration: Verify that the system clock is configured to a lower frequency before entering sleep mode.
Interrupt Configuration: Ensure that the wake-up interrupt is correctly configured and enabled.
Sleep Mode Entry: Use HAL_PWR_EnterSLEEPMode with the appropriate parameters.