A Photon I am using was unable to work when plugged in this morning, even running the same code it has been running for weeks. On startup, I get a hard fault error. I have removed the Photon from my circuit and plugged it directly into the computer. I can perform a hard reset and download Tinker to it, but it still returns a hard fault error.
I am not able to set it up reliably from a computer in listening mode. When I start communicating with the Photon through the CLI, the blue LED usually stops blinking and the interface locks. Instead, I loaded WiFi information to the Photon through the Android app.
Any thoughts?
Edit: No scrolling required! Here is the resolution:
particle update
particle keys server cloud_public.der (download from https://s3.amazonaws.com/spark-website/cloud_public.der)
particle keys new photon
particle keys load <device_id> photon.der
particle keys send photon.pub.pem
! System firmware update successfully completed!
Your device should now restart automatically.
You may need to re-flash your application to the device.
Unfortunately, the device did not restart automatically, but continued to flash yellow. I eventually pressed the reset button and flashed Tinker, then set the Wifi credentials (this time I could do it through the CLI).
dfu-util 0.7
Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org
Filter on vendor = 0x2b04 product = 0xd006
Opening DFU capable USB device... ID 2b04:d006
Run-time device DFU version 011a
Found DFU: [2b04:d006] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash /0x08000000/03*016Ka,01*016Kg,01*064Kg,07*128Kg"
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
No valid DFU suffix signature
Warning: File has no DFU suffix
DfuSe interface name: "Internal Flash "
Downloading to address = 0x080a0000, size = 3952
.
File downloaded successfully
The device never left DFU mode after the flash, and on reset returned to the original hard fault state.
I can’t remember but was there a need to change to version 0.8 of dfu-util? Was there a bug that showed up with new firmware… can’t remember but 0.8 has been out for 18months anyway.