Skip to main content
Bs.1
Associate III
January 20, 2021
Question

STM32 LOw power mode

  • January 20, 2021
  • 0 replies
  • 433 views

Hi,

I am trying to put my STM32 part in sleep mode.

I have attached the code here.

As per my understanding to go into sleep mode HAL_PWR_EnterSLEEPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI);

API is provided.

even though I used below lines, my board current is 3mA

HAL_SuspendTick();

HAL_PWR_EnterSLEEPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI);

& if I remove those lines then also current will be the 3mA.

I am using digital multimeter to measure the current in board, connecting in series with my sypply .

Can any one help me to how to go into sleep mode??

Thanks in advance...

This topic has been closed for replies.