Open gertvb opened 3 years ago
Any ideas on when this will be fixed? It's a deal breaker for a project I'm working on and hate to have to go to a M0 board...
This code was changed here: https://github.com/adafruit/circuitpython/commit/7100d5e485a93552e035476cb794145d6e194052#diff-a944053c00651f658ae1cb445647c6509c09f656236817a32d11eded4ad449d1R143 about two years ago, before 5.4.0-beta.0. We added a SWRST
of the RTC
, in preparation for a rework of how ticks are used internally, so we could use less power during time.sleep()
.
I am not sure we can undo that; we may depend on the tick registers starting at 0, and the RTC being in a known state. @tannewt do you know off the bat whether we could avoid the reset? We also SWRST the RTC in various cases involving alarm
sleep states.
Can you use a battery-powered breakout board RTC, or are you too tight for space for that? I think we would recommend that as the best solution, since it will work through any disruption to the SAMD51 itself.
Thanks for the quick update. I definitely could use an external RTC, it's just a bummer that the board is advertised as including one. Any sense of if this is SAMD51 specific?
I bet we could remove the SRST or do it conditionally on the state of the CTRL register.
code.py.txt
Firmware
Code/REPL
Behavior
Code runs fine, except that the following now with Circuitpython 6.2.0 has to be set everytime the Feater is reset, whereas with Circuitpython 5.3.1 the RTC kept track of time even when the reset button was pressed
Description
I am using the internal RTC on the AtSAMD51 to keep time in a project I am working on.
Under CircuitPython 5.3.1 the values stored in the internal RTC of the AtSAMD51 was not cleared when pressing the reset button
With CircuitPython 6.2.0 the internal RTC values are cleared when pressing reset
Additional Info
None