OTA Photon Firmware

Is it possible to update Firmware over the air? Not user part but system parts (aka modules). If so please explain.

Instructions on OTA updating system firmware: https://github.com/spark/firmware/releases/tag/v0.4.1

I’ll reproduce it here so that we have a searchable record:

The system firmware update can be applied OTA or via DFU.

OTA with the particle-cli

Here’s the steps to flash using particle-cli

  • download system-part1.bin and system-part2.bin
  • put the device (the photon) in safe mode: hold setup, then tap reset, and release setup when the LED blinks magenta
  • the device will connect to the cloud, and breathe cyan (in 0.4.2 or later, it will breathe magenta, indicating safe mode)
  • run particle flash <photonid> system-part1.bin
  • when the device reboots, put the device again in safe mode
  • run particle flash <photonid> system-part2.bin

Flashing locally with DFU

It’s also possible to flash the firmware update using DFU:

  • download system-part1.bin and system-part2.bin
  • put your photon in DFU mode - hold setup, tap reset, and release setup when the LED blinks yellow.
  • run dfu-util -d 2b04:d006 -a 0 -s 0x8020000 -D system_part1.bin
  • run dfu-util -d 2b04:d006 -a 0 -s 0x8060000 -D system_part2.bin
4 Likes