Skip to content

How to recover Particle Photon devices with deprecated firmware

License

Notifications You must be signed in to change notification settings

makercrew/particle-photon-recovery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Particle Photon Recovery Tutorial

On devices with deprecated firmware, particle identify will not be able to determine the firmware version. The following is the procedure to restore such devices.

NOTE: The following procedure requires the Particle CLI and a serial connection via USB.

Step 1 - Confirm

Identify the device to get the device id, and to confirm whether or not your device has the deprecated firmware.

$ particle identify

Your device id is <xxxxxxxxxxxxxxxxxxxxxxxx>
Unable to determine system firmware version

NOTE: The device above has deprecated firmware, because it reports, "Unable to determine system firmware version".

Step 2 - Setup the device

Setting up the device performs three important actions...

  • logs the CLI into your Particle account
  • connects the device to your local Wi-Fi
  • claims the device to your Particle account

Now you have the ability to update the firmware!

$ particle setup
 _ __             _   _      _
| '_ \  __ _ _ __| |_(_) ___| | ___
| |_) |/ _` | '__| __| |/ __| |/ _ \
|  __/| (_| | |  | |_| | (__| |  __/
|_|    \__,_|_|   \__|_|\___|_|\___|
                 https://particle.io

> Setup is easy! Let's get started...
...

The wizard will prompt you for all the details you will need.

Step 3 - Enter "DFU Mode"

To enter DFU Mode:

  1. Hold down BOTH buttons (SETUP and RESET)
  2. Release only the RESET button, while holding down the SETUP button.
  3. Wait for the LED to start flashing yellow (it will flash magenta first)
  4. Release the SETUP button

Photon in with blinking blue LED (i.e. Listening mode)

(imagine a blinking LED...)

Photon Documentation

Step 4 - Update firmware

Next we will attempt to update the firmware via the Particle CLI. The update will FAIL, but this is necessary to allow for the side-loading of firmware in the following steps.

$ particle update

> Your device is ready for a system update.
> This process should take about 50 seconds. Here it goes!


! An error occurred while attempting to update the system firmware of your device:

dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!

dfu-util: Error during download get_status


> Please visit our community forums for help with this error:
https://community.particle.io/
Cannot read property 'code' of undefined

NOTE: The error above is a result of your deprecated firmware. The device will now be breathing magenta, which means the device is in "Safe Mode".

Step 5 - Enter "Listening Mode"

To put your Photon in Listening Mode, hold the SETUP button for three seconds, until the RGB LED begins blinking blue.

Photon in with blinking blue LED (i.e. Listening mode)

(imagine a blinking LED...)

Photon Documentation

Step 6 - Side-load firmware

When a device has the deprecated firmware, it cannot receive firmware updates over the air (OTA). Therefore it becomes necessary to side-load firmware via the Particle CLI.

We will load a supported, stable firmware version, then receive the remaining updates OTA.

Firmware: bootloader-0.7.0-photon.bin

$ particle flash --serial bootloader-0.7.0-photon.bin
! PROTIP: Hold the SETUP button on your device until it blinks blue!
? Press ENTER when your device is blinking BLUE 
sending file: /<absolute/path/to/file>/bootloader-0.7.0-photon.bin

Flash success!

Step 7 - Recover from Mystery Mode

Call Scooby and the gang, because you have entered the mystery mode, solid green!

Photon with solid green LED (i.e. Mystery Mode)

To break free you will need to enter DFU mode and update the firmware again (see steps 3 and 4). However this time you will see much more promising output.

$ particle update
 
> Your device is ready for a system update.
> This process should take about 50 seconds. Here it goes!

! System firmware update successfully completed!

> Your device should now restart automatically.

Particle Forum Discussion

Step 8 - Eureka!???

When it reboots, you will find yourself in an infinite loop; blue onboard LED on, magenta, blue onboard LED off, breathe white, green and repeat.

PUT THE GUN DOWN...

Yes, the Photon is in an infinite loop, but you can fix it; you will need to break the cycle manually. In order to do so, pull the plug (power down) while the status LED is showing magenta. Take a deep breath, steady your nerves, then plug it back in.

If you caught it at the right time, your Photon will be breathing cyan and you should be good to go!

I know it sounds crazy, but...

It's a fairly simple operation - with heavy sarcasm

About

How to recover Particle Photon devices with deprecated firmware

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published