2018-07-11 08:34 AM
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-configuration2018-07-11 08:51 AM
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-07-11 11:20 AM
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-07-11 12:19 PM
In the newly created project in v1.3.0 , this restriction is absent.
2018-07-12 12:25 AM
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-07-12 09:24 AM
Thanks for the help. I will certainly inform you in case of principle problems.
Sincerely
Vyacheslav