Skip to main content
Associate II
June 30, 2026
Question

STOP2 Mode current in STM32WL55

  • June 30, 2026
  • 1 reply
  • 17 views

I have written a small code which inits a GPIO in push pull config and a UART using cubemx then goes into stop mode. I have implemented same example in STM32L073 nucleo and STM32WL55 nucelo. In L073 I am able to see the current goes to 2-3uA. But in WL55 it is consuming 300uA or so. As per datasheet both will disable clocks to peripherals while going into stop mode. But in case of WL55 I am able to 1.5uA only when I denit all the gpios and disable clocks. Is it expected behavior or am I missing something.  I have added my code below for reference, thanks in advance.

 

int main(void)

{



/* USER CODE BEGIN 1 */



/* USER CODE END 1 */



/* MCU Configuration--------------------------------------------------------*/



/* Reset of all peripherals, Initializes the Flash interface and the Systick. */

HAL_Init();



/* USER CODE BEGIN Init */



/* USER CODE END Init */



/* Configure the system clock */

SystemClock_Config();



/* USER CODE BEGIN SysInit */



/* USER CODE END SysInit */



/* Initialize all configured peripherals */

MX_GPIO_Init();

MX_USART1_UART_Init();

/* USER CODE BEGIN 2 */



/* USER CODE END 2 */



/* Infinite loop */

/* USER CODE BEGIN WHILE */



while (1) {

/* USER CODE END WHILE */



/* USER CODE BEGIN 3 */

HAL_SuspendTick();

HAL_PWREx_EnterSTOP2Mode(PWR_SLEEPENTRY_WFI); // used this in case of WL55  HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI); // used this in case of L073

}

/* USER CODE END 3 */

}

 

1 reply

ST Technical Moderator
July 1, 2026

Hello SaiVenkat,

 

take the example \Projects\NUCLEO-WL55JC\Examples_MIX\PWR\PWR_STOP1\ as reference for measuring the STOP2 mode current consumption.

Just change HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI); with HAL_PWREx_EnterSTOP2Mode(PWR_STOPENTRY_WFI);

You will measure about 1 uA.

 

BR,
Filippo

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks