cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32wb55cgu6 HAL_PWREx_EnterSHUTDOWNMode();

GilAndrei
Associate

 

I am developing a very energy-efficient device. Which will work on the 2032 element. I understand that this will be a server that will wake up every 3 seconds for a short time and wait for a connection to it. I have a problem that in the HAL_PWREx_EnterSHUTDOWNMode(); mode, the controller consumes as much as 0.113 mA, but it should be 0.013. Maybe I am not turning on the SHUTDOWNMode correctly?
/* USER CODE BEGIN SysInit */

/* USER CODE END SysInit */

/* Initialize all configured peripherals */
/* USER CODE BEGIN 2 */

/* USER CODE END 2 */

/* Infinite loop */
/* USER CODE BEGIN WHILE */
while (1)
{

HAL_PWREx_EnterSHUTDOWNMode();
/* USER CODE END WHILE */

/* USER CODE BEGIN 3 */
}
/* USER CODE END 3 */
}

1 REPLY 1
STTwo-32
ST Employee

Hello @GilAndrei 

I suggest you set CPU2 to the lowest power mode before interring SHUTDOWN Mode. You may want to refer to the PWR_STANDBY_RTC example for more details on how to implement this.

Best Regards.

STTwo-32

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.