Flashing Photon sporadically working

So haven’t been messing with stuff for awhile but decided to whip up a nightlight for the little one and while trying to get things working just the way I want I have noticed that only rarely is the new firmware making it onto the Photon. No SOS or anything like that happening. Dashboard says it flashed and I saw the magenta flashing but I know the new code isn’t running because it is publishing events I changed. It has flashed a few times but it is very difficult to troubleshoot when I don’t know what code is running on it.

Any ideas on how to fix this?

You can always look at https://dashboard.particle.io/user/logs and see if you get an app/hash event after your OTA.
And usually OTA failing is due to running code.
Only if you still have the same issue in Safe Mode too looking at the device itself might be required.

So weird enough…the firmware file remained in my app folder so it was just sending that firmware over and over. If I delete it, new code get flashed. Using Particle Dev on Mac.

Yes, that is the (:stuck_out_tongue_closed_eyes:) intended - but counterintuitive, to say the least :confounded: - behaviour of the “build and flash” button, which should better be called “build (but only if no .bin present) and flash” button.

You have no idea how many people stumbled over this already, but this gets permanently defended by some as the best practice behaviour :confused:

But to get around this annoyance you can just press the “build :cloud: button first and then the (:stuck_out_tongue_closed_eyes:) “build (but only if no .bin present) and flash” button - or manually remove the .bin file :stuck_out_tongue_closed_eyes: :stuck_out_tongue_closed_eyes:

1 Like