I’ve the following problem, when I flash Electron Device OTA, I often need to run it at least two time before my code get successfully through.
When OTA flash fails:
-I do see the Electron device (LED blinking magenta, and then device restart) during the update
-I don’t have any error anywhere (console or on the device) after the device reboot
-But my device still use my older code version (I can see it via Serial logs and a call to a dedicated function) after the device restart
Running the OTA flash a second time will usually solve the issue
I’m using the following environment to flash OTA:
-particle CLI 1.16.0
-Electron FW 0.6.0-rc.1
-my code does use SYSTEM_THREAD(ENABLED); and I do not use any delay call in my code.
As I do use Serial (to print debug logs) and Serial1 (to communicate with another device), could this be part of the issue:
This would be very annoying as I do need to keep at least Serial1 open all the time.