Over 32h the drift was about 3 seconds, so just on the order of 26 ppm. I do not think that should be problematic in any way since the firmware uses 50ppm by default?
What surprised me was that I seemingly had to change the accuracy in two places to actually make a difference: https://github.com/espruino/Espruino/commit/2c2ba5894a9a1450d20100e8370eb622acd64a4a while your 50ppm commit only changed bluetooth.c.
I will have to try your suggestion comparing RTC and systick.
So systick is expected to go up with 64MHz while RTC goes up at the 32kHz of the external crystal?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Over 32h the drift was about 3 seconds, so just on the order of 26 ppm. I do not think that should be problematic in any way since the firmware uses 50ppm by default?
What surprised me was that I seemingly had to change the accuracy in two places to actually make a difference: https://github.com/espruino/Espruino/commit/2c2ba5894a9a1450d20100e8370eb622acd64a4a while your 50ppm commit only changed
bluetooth.c
.I will have to try your suggestion comparing RTC and systick.
So systick is expected to go up with 64MHz while RTC goes up at the 32kHz of the external crystal?