embedded
hardware_error
ai_generated
partial
RTC: LSE振荡器未就绪,切换到LSI备份时钟
RTC: LSE oscillator not ready, switching to LSI backup clock
ID: embedded/rtc-oscillator-failure
80%修复率
85%置信度
1证据数
2024-02-15首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| STM32Cube_FW_H7_V1.11.0 | active | — | — | — |
| STM32Cube_FW_F4_V1.27.1 | active | — | — | — |
| GCC ARM Embedded 12.2.Rel1 | active | — | — | — |
根因分析
低速外部晶振未能启动或稳定,通常由于负载电容错误、晶振损坏或PCB寄生效应引起。
English
Low-speed external (LSE) crystal oscillator failed to start or stabilize, usually due to incorrect load capacitors, crystal damage, or PCB parasitics.
官方文档
https://www.st.com/resource/en/application_note/dm00231744-oscillator-design-guide-for-stm32-mcus-and-mpus-stmicroelectronics.pdf解决方案
-
Verify LSE load capacitors: for a 12.5 pF crystal, use two 22 pF caps in series (effective 11 pF). Adjust via RCC_BDCR register in firmware if needed.
-
Use an external 32.768 kHz square wave oscillator module (e.g., SiTime SiT1532) in bypass mode to bypass crystal issues.
无效尝试
常见但无效的做法:
-
85% 失败
The MCU RTC peripheral is designed for 32.768 kHz; a higher frequency won't oscillate correctly.
-
70% 失败
Overdriving can damage the crystal or cause spurious oscillations; proper load capacitance matching is required.
-
90% 失败
LSI is less accurate (typically ±5% vs ±20 ppm for LSE) and may cause RTC drift in time-sensitive applications.