STM32G030 sometimes not waking up from STOP 1 Mode
Hey everyone, I have developed a circuit board with STM32G030. I use the STOP 1 mode to save power, the device wakes up on a pin change interrupt.
Sometimes the current consumption in STOP 1 mode is around 1,2mA higher mode than normal (3uA) but lower than run mode(2,5mA) and the MCU does not wake up anymore. The same in Standby Mode.
I can´t find the reason, maybe someone has an idea.
Here is my STOP Mode function:
void StopMode(void)
{
LED_On(OFF);
I2C_On(OFF);
MOT_EN(OFF);
//DisableDebugger();
//disablePeripherie();
HAL_SuspendTick();
sleep = 1;
HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI); //Stop 1
SystemClock_Config();
HAL_ResumeTick();
USR_LED_On(1);
LED_On(ON);
I2C_On(ON);
MOT_EN(ON);
}
