I’ve got an Electron with v0.5.2b that stays in safe mode (breathing magenta) after flashing via particle flash --serial electron_firmware...bin on Windows 10. I’m seeing spark/status/safe-mode events in the console so it appears it’s connected to the cloud. I’ve tried resetting as well as disconnecting and reconnecting the battery. It just doesn’t seem to want to run my image.
I’ve flashed this board successfully before; this issue started this morning. I recompiled and flashed a v0.5.2b Photon with the same code and it ran as expected. Any guesses what’s up?
Thank you, updating the firmware to 0.5.3 appears to have worked. I have been using Particle Dev and was unaware there was a new release; will note the --target option and build with CLI in the future.
FWIW: I had been using the firmware manager, the version currently available for download is v0.5.2b. I used zadig to install the WinUSB driver and particle update to get the board up to 0.5.3.
Yup, we too noticed that the usual Firmware Update Thread was not updated, which usually poses as the (temporarily pinned) announcement of a new release.
And the lag of the firmware updater doesn’t help either
It’s kind of a soft release at this point… we’re working out some issues we’re having with releasing the 0.5.3 Firmware Manager, supporting docs with links, then the Github release notes will make their way to the Firmware Update Thread
I’ve run into this same problem. I can flash OTA and everything works fine. If I flash the same code using Particle Dev, I end up stuck in Safe Mode.
I’ve tried particle compile electron --target 0.5.3 directory-name
followed by particle flash --target 0.5.3 juliet --serial directory-name/electron_firmware_1479918207111.bin
but still end up in Safe Mode.
Any ideas?
Running Particle Cli v1.18.0 on OS X.
Particle Dev doesn’t have any updates available.
This issue just started today. As of yesterday I was able to flash with the cli with no problems. At first I thought it was related to my code, but I’ve stripped it down to a blink example for troubleshooting. Still no luck.
What system firmware version do you have on your Electron? Put it in listening mode (blinking blue) by holding down the MODE button until it blinks blue then issue the command:
Did you try the syntax that Wat used? That’s normally how you call particle flash. Also, you might want to try the --usb option instead. It has better error reporting if the flash fails, which I think is might be what’s happening.
Also, you might want to also try:
particle flash --usb tinker
as a baseline for something that should always work. If you get a dfu-util not found error you should install it, but you could also use --serial. The error reporting for a failed flash is better with --usb.