Error writing firmware: Missing permissions to use DFU

Hi, I’m trying to factory reset my particle photon because I can’t flash any code, but I’m receiving :Error writing firmware: Missing permissions to use DFU
when I do particle device doctor

dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Deducing device DFU version from functional descriptor length
dfu-util: Cannot open DFU device 0a5c:217f
Found DFU: [2b04:d006] ver=0250, devnum=14, cfg=1, intf=0, path="1-1.2", alt=1, name="@DCT Flash   /0x00000000/01*016Kg", serial="240029000b47363433353735"
Found DFU: [2b04:d006] ver=0250, devnum=14, cfg=1, intf=0, path="1-1.2", alt=0, name="@Internal Flash   /0x08000000/03*016Ka,01*016Kg,01*064Kg,07*128Kg", serial="240029000b47363433353735"

Problem solved just had to add sudo to all the command

I presume you’re using Linux. The Particle CLI installer should have installed a udev rule so you can call dfu-util without using sudo. You can manually install the udev rule as well, the instructions are here:

You might need to reboot after copying the udev rule.

1 Like