@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 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.
@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.
Thanks,
Jamie