2022-03-16 02:18 AM
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
}
2022-03-16 06:53 AM
What current are you seeing in each mode and how does that line up with what is specified in the datasheet?