# Particles-cli cannot find DFU devices

**URL:** <https://community.particle.io/t/particles-cli-cannot-find-dfu-devices/12279>\
**Category:** Troubleshooting\
**Created:** [June 3, 2015, 1:45am UTC](https://community.particle.io/t/particles-cli-cannot-find-dfu-devices/12279 "2015-06-03T01:45:21Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhijiewang](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/zhijiewang/32/2285_2.png) [@zhijiewang](https://community.particle.io/u/zhijiewang)\
**Post date:** [June 3, 2015, 1:45am UTC](https://community.particle.io/t/particles-cli-cannot-find-dfu-devices/12279/1 "2015-06-03T01:45:21Z")

</div>

Nothing changed between the 2 runs. But through particles DFU can find 2

```auto
[root@localhost ~]# sudo particle flash --usb tinker
Apparently I didn't find a DFU device? util said  
Error writing firmware... no dfu device found.
[root@localhost ~]# dfu-util -l
dfu-util 0.8

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2014 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Found DFU: [2b04:d006] ver=0200, devnum=28, cfg=1, intf=0, alt=1, name="@DCT Flash /0x00000000/01*016Kg", serial="00000000010C"
Found DFU: [2b04:d006] ver=0200, devnum=28, cfg=1, intf=0, alt=0, name="@Internal Flash /0x08000000/03*016Ka,01*016Kg,01*064Kg,07*128Kg", serial="00000000010C"
[root@localhost ~]#

```

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [June 3, 2015, 1:47am UTC](https://community.particle.io/t/particles-cli-cannot-find-dfu-devices/12279/2 "2015-06-03T01:47:58Z")

</div>

Hey there, are you trying the say that the firmware was not flashed?

---

<div class="post-metadata">

**Author:** ![zhijiewang](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/zhijiewang/32/2285_2.png) [@zhijiewang](https://community.particle.io/u/zhijiewang)\
**Post date:** [June 3, 2015, 1:49am UTC](https://community.particle.io/t/particles-cli-cannot-find-dfu-devices/12279/3 "2015-06-03T01:49:22Z")

</div>

"sudo particle flash --usb tinker"  
This should flash the firmware, but it failed.  
Centos 7, dfu-util 0.8, latest particl-cli 1.15

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [June 3, 2015, 1:50am UTC](https://community.particle.io/t/particles-cli-cannot-find-dfu-devices/12279/4 "2015-06-03T01:50:34Z")

</div>

I guess it doesn’t work with `particle flash --usb tinker` as well?

---

<div class="post-metadata">

**Author:** ![zhijiewang](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/zhijiewang/32/2285_2.png) [@zhijiewang](https://community.particle.io/u/zhijiewang)\
**Post date:** [June 3, 2015, 1:52am UTC](https://community.particle.io/t/particles-cli-cannot-find-dfu-devices/12279/5 "2015-06-03T01:52:12Z")

</div>

Device flashing yellow (in dfu mode)

➜ ~ dfu-util -l  
dfu-util 0.8

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.  
Copyright 2010-2014 Tormod Volden and Stefan Schmidt  
This program is Free Software and has ABSOLUTELY NO WARRANTY  
Please report bugs to [dfu-util@lists.gnumonks.org](mailto:dfu-util@lists.gnumonks.org)

dfu-util: Cannot open DFU device 2b04:d006  
➜ ~ particle flash --usb tinker  
Apparently I didn’t find a DFU device? util said dfu-util 0.8

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.  
Copyright 2010-2014 Tormod Volden and Stefan Schmidt  
This program is Free Software and has ABSOLUTELY NO WARRANTY  
Please report bugs to [dfu-util@lists.gnumonks.org](mailto:dfu-util@lists.gnumonks.org)

Error writing firmware… no dfu device found.

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [June 3, 2015, 1:54am UTC](https://community.particle.io/t/particles-cli-cannot-find-dfu-devices/12279/6 "2015-06-03T01:54:46Z")

</div>

Hmmm…

I’m not entirely sure if it’s an issue with your account requiring `sudo dfu-util -l` in order to list things properly…

Anyway, what are you want to flash via DFU? We can use the DFU-commands for now.

---

<div class="post-metadata">

**Author:** ![zhijiewang](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/zhijiewang/32/2285_2.png) [@zhijiewang](https://community.particle.io/u/zhijiewang)\
**Post date:** [June 3, 2015, 1:55am UTC](https://community.particle.io/t/particles-cli-cannot-find-dfu-devices/12279/7 "2015-06-03T01:55:50Z")

</div>

flash a simple analog read and print back to serial command app.

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [June 3, 2015, 1:57am UTC](https://community.particle.io/t/particles-cli-cannot-find-dfu-devices/12279/8 "2015-06-03T01:57:32Z")

</div>

Would you prefer to use the [Web IDE](https://build.particle.io) and flash via OTA for now?

It will be great for the application that you want to do since using the `particle-cli` you still need to compile code and flash via DFU

---

<div class="post-metadata">

**Author:** ![zhijiewang](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/zhijiewang/32/2285_2.png) [@zhijiewang](https://community.particle.io/u/zhijiewang)\
**Post date:** [June 3, 2015, 2:11am UTC](https://community.particle.io/t/particles-cli-cannot-find-dfu-devices/12279/9 "2015-06-03T02:11:04Z")

</div>

If I am at home, I would be able to play with Web IDE. But When I am at work, I am behind many layers of proxy and filtering (those stuff blocks certain communication). particle-cli is the only viable solution when I am at work. (Corporate laptop has usb ports locked, so I am using my personal laptop via guest network(

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [June 3, 2015, 2:13am UTC](https://community.particle.io/t/particles-cli-cannot-find-dfu-devices/12279/10 "2015-06-03T02:13:29Z")

</div>

Ok so the command will be:

`dfu-util -d 2b04:d006 -a 0 -s 0x80A0000:leave -D name_of_file.bin`

You can also see how to compile using the `particle-cli` at: [https://github.com/spark/particle-cli#compiling-remotely-and-flashing-locally](https://github.com/spark/particle-cli#compiling-remotely-and-flashing-locally)
