配置低速外部时钟:
配置低速外部时钟步骤:
第一步:System_Core 下的 RCC Low Speed Clock( LSE ) 选择 Crystal / Ceramic Resonator 。
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/448911fa6e2b2ffd2134c90c881851b3.png)
第二步:Timers 下的 RTC 选项,Activate Clock Source 前打勾, 激活RTC 时钟源。如果需要日历功能,则激活日历。
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/b674b15db921d0421865783624b336ca.png)
第三步,Clock Configuration 中选择 LSE。
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/827249037e05922285733cd758104f24.png)
如果第二步RTC 没有配置,则 Clock Configuration 中无法选择LSE外部低速时钟作为RTC 时钟源。