Whenever I hit flash on the Web IDE, I get a spark/flash/status of failed. The updated code, however, seems to be flashed correctly and everything works as expected. Here’s the typical events I get while flashing:
As far as I know, the app-hash event is only triggered after a flash, right? Any idea why I get this status of failed, even though the new code is flashed just fine?
You can ignore the failure message - it’s a false negative caused by the way the cloud determines the result of the OTA - the cloud team are aware of this - I’ve posted a suggestion internally to to give some time to fixing it this sprint.
There are several reasons why a flash would fail with that error:
The device isn’t actually online (more common with cellular)
An Electron with a 3rd-party SIM card has the keep-alive set incorrectly
The user firmware is interfering with the flash.
The last one can usually be remedied by flashing in safe mode (breathing magenta). Hold down RESET and SETUP/MODE, release RESET and continue to hold down SETUP/MODE until the status LED blinks magenta (red and blue at the same time). Release SETUP/MODE. Wait while the status LED cycles trough blinking green, blinking cyan, fast blinking cyan, and finally breathing magenta. Then try flashing.