After standby LSE not work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-17 10:46 PM - last edited on ‎2025-03-20 8:17 AM by Andrew Neil
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:
- When using the LSI clock, standby entry and WKUP2 wakeup work normally.
- 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?
- Labels:
-
STM32G0 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-18 6:07 AM
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
Description
The PC13 port toggling disturbs the LSE clock.
Workaround
None
QM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-19 10:34 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-20 8:02 AM
Hello @ZZH, I trust that your issue is resolved by now.
Your post suggests that you can successfully put the STM32G0 into Standby Mode. I have difficulties with that, and posted about it (STMG0B1RET output pin does not pull down in Standby Mode) and studied several posts, to no avail.
Not sure if you can share a code snippet? Or perhaps comment on my code? I really appreciate it.
