ST意法半导体
直播中

杨明

7年用户 143经验值
私信 关注
[问答]

为什么STM8CubeMX禁止在STM8L152R6Tx上使用LSI?

大家好,
为什么STM8CubeMX禁止频率低于1 MHz的RTC时钟,不允许使用LSE?我想做一块手表!
提前致谢。

#lsi #rtc#stm8cubemx#clock-configuration

以上来自于谷歌翻译


以下为原文




Hello everyone,
Why does the STM8CubeMX prohibit the clocking of the RTC with a frequency of less than 1 MHz, not allowing to use of an LSE? I want made a watch!
Thanks in advance.

#lsi #rtc #stm8cubemx #clock-configuration

回帖(4)

李振云

2018-11-15 11:04:57
亲爱的维亚切斯拉夫,
在这个帖子的标题中你提到了LSI,而在内容中你提到了LSE,所以我不完全清楚这些时钟源中哪一个是你问题的主题。
无论如何,我为STM8L152R6Tx创建了一个新的STM8CubeMX项目,我可以选择LSE和LSI作为时钟源,为RTC提供信号。请看下面:
为了能够选择LSE,必须事先做一件事。在Pinout选项卡中,必须启用LSE(在RCC项目中):
问候
Szymon

以上来自于谷歌翻译


以下为原文




Dear Vyacheslav,
In title of this thread you mention LSI, while in content you refer to LSE, so it is not fully clear to me which of these clock sources is a subject of your question.
Anyway I created a new STM8CubeMX project for STM8L152R6Tx and I am able to select both LSE and LSI as a source of clock, that feeds RTC. Please see below:
In order to be able to select LSE one thing in advance has to be done. In Pinout tab LSE has to be enabled (in RCC item):
Regards
Szymon
举报

杨明

2018-11-15 11:17:50
亲爱的Szymon,你理解正确。我使用的是Linux 1.2.0版,这里是截图。
也许这只是程序中的一个错误,而且它与限制无关。在1.3.0版中,同样的限制。你怎么看?
谢谢。

以上来自于谷歌翻译


以下为原文




Dear Szymon, You understood correctly. I'm using Linux version 1.2.0, here is a screenshot.
Perhaps this is just a mistake in the program and to the restriction it has nothing to do. In version 1.3.0, the same limitation. What do you think?
Thank you.
举报

李振云

2018-11-15 11:36:45
谢谢你的澄清。它看起来像程序中的一个错误。我很抱歉,因为我可以想象这对你来说很困惑。我相信你可以使用LSE来提供RTC,LSE的预期频率是32.768kHz。绝对不是1..16MHz。作为对此信息的确认,请从以下数据表中找到提取的部分:
我将采取行动并将其报告给负责维护STM8CubeMX的团队。在此之前,如果您发现在Linux操作系统上运行STM8CubeMX有任何其他问题,请告诉我吗?
问候
Szymon

以上来自于谷歌翻译


以下为原文




Thank you for clarification. It looks like a bug in the program. I am sorry for it, as I can imagine that it was confusing to you. I am sure you can use LSE to feed RTC and expected frequency of LSE is 32.768kHz. Definitely not 1..16MHz. As a confirmation of this information please find an extracted part from datasheet below:
I will take an action and report it to the team responsible for maintenance of STM8CubeMX. Before doing it, could you please let me know if you discovered any other problems with STM8CubeMX running on the Linux OS?
Regards
Szymon
举报

杨明

2018-11-15 11:47:25
谢谢您的帮助。如果遇到原则问题,我一定会通知你。
诚挚
维亚切斯拉夫

以上来自于谷歌翻译


以下为原文




Thanks for the help. I will certainly inform you in case of principle problems.
Sincerely
Vyacheslav
举报

更多回帖

发帖
×
20
完善资料,
赚取积分