Skip to main content
JKim.44
Visitor II
March 16, 2022
Question

STM32L4 STOP2Mode

  • March 16, 2022
  • 1 reply
  • 659 views

I'm using STM32L476VG and STM32Cube FW_L4 V1.17.1 version HAL Function.

I thought STOP2Mode and RESUME work fine.

However, when I took the current consumption waveform, it is the same as STOP1Mode.

Why is this happening?

void Sleep(void)
{ 
 MX_UART4_DeInit();
 MX_USART1_UART_DeInit();
 MX_USART2_UART_DeInit();
 MX_I2C1_DeInit();
 MX_I2C3_DeInit(); 
 MX_ADC1_DeInit();
 MX_SPI1_DeInit(); 
 MX_QUADSPI_DeInit();
 
 //MX_GPIO_DeInit();
 
// external circuit gpio setting
 
 HAL_SuspendTick(); // Suspend SysTick
 HAL_PWREx_EnterSTOP2Mode(PWR_STOPENTRY_WFI); // Enter in STOP2 mode
 //HAL_PWREx_EnterSTOP1Mode(PWR_STOPENTRY_WFI); // Enter in STOP1 mode
}

This topic has been closed for replies.

1 reply

TDK
Super User
March 16, 2022

What current are you seeing in each mode and how does that line up with what is specified in the datasheet?

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