Particle Photon stuck in DFU mode/Error in CLI

My Photon is stuck in DFU mode, on normal startup, nothing blinks and the D7 LED is dimly lit. I have tried updating firmware using the CLI, but it gives me this error:Cannot read property ‘code’ of undefined

So I tried several things and pretty much each one gives me the the following error
C:\Users\spurrj>particle flash --usb system-part1-0.7.0-photon.bin
Error writing firmware: file does not exist and no known app found.

You can try particle update -v
After that you may want to run pariticle flash --usb tinker -v

The error message you have quoted above suggests that you don’t have the respective file available at there. For that command to work you’d need to download the binaries and execute the command from the location where you have downloaded them to (or provide the full path to the files in the command).

1 Like