Open paradajz opened 2 months ago
Hi @paradajz! We appreciate you submitting your first issue for our open-source project. ๐
Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. ๐ค๐
However once I remove the power supply and then bring it back on, the rtc_get_time is unable to retrieve the time so I have to set it again. I am not sure if I am missing anything obvious here.
This is expected, see ref man (RM0385, ยง29.1 Introduction)
[...]
As long as the supply voltage remains in the operating range, the RTC never stops,
regardless of the device status (Run mode, low-power mode or under reset).
Just read the "with battery" in the title. Re-opening.
RTC_SEL() is the RTC clock source selection as described in the RCC backup domain control register (RCC_BDCR bit[9:8])
If you choose to clock the RTC by an external LSE clock, then Device Tree DTS must be RTC_SEL(1)
and the LSE must be 32768Hz
to keep the calendar during power-off, the hardware must supply the RTC by Vbat and "VBAT pin can be connected to an optional standby voltage supplied by a battery or by another source."
Okay, I've set RTC_SEC to 1, but the issue remains. I'm using Epson Q13FC13500003 crystal with 1p caps.
I've also tried to set different levels of driving-capability
to no avail.
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.
To be tested first with nucleo_wb55rg which provides native HW battery support
I am using custom board based on
nucleo_f767zi
. I have an external RTC clock and I'm trying to use it for the RTC:overlay:
(side note: I have no idea what
RTC_SEL
does and if it's even setup correctly).config:
Everything seems to work fine during runtime. I can read the time without issues, and also when I reset the board, the time is kept. However once I remove the power supply and then bring it back on, the
rtc_get_time
is unable to retrieve the time so I have to set it again. I am not sure if I am missing anything obvious here.Zephyr version: v3.7.0