-
Notifications
You must be signed in to change notification settings - Fork 985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LSI not counting time while powered off, LSE backupdomain not working at all #1919
Comments
Hi. Which board exactly? |
Hi, thanks for your reply. I use platform.io with stm32 platform on arduino framework. TM32duino RTC version is latest (1.3.4). |
Pio is not up to date with core version. And are you sure you used latest RTC library version. |
I just updated everything. PlatformIO, Arduino_Core_STM32 (framework-arduinoststm32 - 4.20200.221104), RTC (1.3.4) and the ST STM32 Platform are now all up-to-date. But the behaviour is still the same: |
As far as I know pio is not up to date. An issue is open for that. So even if you update pio st stm32 you do not use latest core version. I will try next week with arduino IDE. |
Thanks. I just tried the workaround with version 2.4.0, but it didn't change anything. I am still hoping for help :) |
Hi @Zelsof I've transfered the issue to the core. I've found the reason why you met this issue . 2- LSE was not preserved nor count because the default system core clock config set the RTC clock source to LSI. So as the LSE was used the backup domain was reset and so the inits used to know if RTC is already initialized return 0. |
This prevents the RTC clock to be reset when clock source is not the same and a poweroff with VBAT or software reset occurs. Moreover, LSI does not count when power off and VBAT so it is not useful. Fixes stm32duino#1919 Signed-off-by: Frederic Pillon <[email protected]>
This prevents the RTC clock to be reset when clock source is not the same and a poweroff with VBAT or software reset occurs. Moreover, LSI does not count when power off and VBAT so it is not useful. Fixes stm32duino#1919 Signed-off-by: Frederic Pillon <[email protected]>
This prevents the RTC clock to be reset when clock source is not the same and a poweroff with VBAT or software reset occurs. Moreover, LSI does not count when power off and VBAT so it is not useful. Fixes #1919 Signed-off-by: Frederic Pillon <[email protected]>
This prevents the RTC clock to be reset when clock source is not the same and a poweroff with VBAT or software reset occurs. Moreover, LSI does not count when power off and VBAT so it is not useful. Fixes stm32duino#1919 Signed-off-by: Frederic Pillon <[email protected]>
Hello,
I know that parts of this issue have been already discussed and I am sorry for repeating some. Unfortunately I couldn't find a working solution for my problem. Hopefully anybody can help. Hardwares-setup: I am using an STM32 F446RE board. Vbat is supplied by 3V battery.
LSI CLOCK
(no clocktype setup, or use of command
RTC.setClockSource(STM32RTC::LSI_CLOCK);
):10: LSI oscillator clock used as the RTC clock
(seems good)RTC.isTimeSet()
returnstrue
at startupLSE CLOCK
(by
RTC.setClockSource(STM32RTC::LSE_CLOCK);
)01: LSE oscillator clock used as the RTC clock
(seems good)RTC.isTimeSet()
returnsfalse
at startupHSE CLOCK
(by
RTC.setClockSource(STM32RTC::HSE_CLOCK);
)I want to use the LSE clock, but it doesn't keep anything in the backupdomain, whereas LSI does, but not counting time.
Does anybody has an idea what is wrong, and how I can realize a working setup?
Thank you in advance!
Additionally here are a few, maybe relevant register entries:
The text was updated successfully, but these errors were encountered: