cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L4 STOP2Mode

JKim.44
Associate

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
}

1 REPLY 1
TDK
Guru

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".