Showing results for 
Search instead for 
Did you mean: 

After standby LES not work


I'm using the STM32G030FP6 in standby mode with WKUP2 for wakeup and the system has a backup battery. I'm facing the following issues:

  1. When using the LSI clock, standby entry and WKUP2 wakeup work normally.
  2. When using the LSE clock, after entering standby and then waking up with WKUP2, the LSE fails to oscillate. I've already extended the timeout period to 10 seconds, but after a reset, the LSE still does not oscillate, and the system gets stuck at the LSE clock initialization part and reports a hardfault. The LSE starts up normally the first time the system is powered on, but once it goes into sleep mode, the LSE cannot start up again. I referred to the standby routine in the LL_example, which only includes the LSI clock mode, with no LSE clock mode. Is there a demo for the LSE clock mode, or did I miss some configuration?
Associate II

Hi, i don't think if i can resolve your problem but did you use the PC13 GPIO on your board ?

because on the erratasheet i found this issue:


2.2.7 PC13 signal transitions disturb LSE
The PC13 port toggling disturbs the LSE clock.


On my system, PC13 is not utilized (STM32G030FP6 doesn't have PC13), and during debugging, I've discovered that I can't enable the LSEON bit of the BDCP register during abnormal startup.