Just thinking aloud about a safe-mode feature…
Developers using OTA update to program the core sometimes have to perform a factory reset in order to regain cloud connectivity - for example, after flashing firmware that starts in semi automatic mode and, due to a bug, doesn’t enable the cloud.
Factory reset resets everything, requiring users to re-register wifi credentials. Developers who have dfu-util and the spark CLI installed can use that to reflash the stock tinker app to regain cloud connectivity, but these tools are not available out of the box, and must be installed.
I’m thinking of a “safe-mode” - where factory code is restored without resetting the wifi credentials - would help speed up the development cycle.
This could be achieved by a longer press of mode on startup, longer than used to enter DFU mode, but not so long to cause a full factory reset. The mode hold duration, LED colors and actions would be like this:
- < 3 seconds: boot normally
3 seconds, flashing yellow, DFU mode
6.5 seconds, flashing green, safe mode
10 seconds, flashing white, factory reset
The new thing is the flashing green at 6.5 seconds. Letting go of mode when you see flashing green would restore the factory firmware without clearing wifi credentials.
Would this be useful? Other thoughts?