@Gordon I finally got time to implement your suggestions and the results were all consistent with a clock that is running way too fast so I tried it on a second Espruino board and the code worked fine.
No errors on load() except the occasional I2C bus confusion from the previous
I think this particular board may just require a longer delay for the LSE clock to settle down as it works once powered and then the reset button pressed.
This is probably due to borderline capacitance on the 32.768KHz crystal circuit (which I had added).
So, it appears that resetting the time and then immediately creating intervals does work.
© Espruino, powered by microcosm.
Report a problem