[SOLVED] dfu-util: Cannot open DFU device 1eaf:0003

All distros
Post Reply
PaulRB
Posts: 21
Joined: Tue Apr 28, 2015 1:15 pm
Location: West Yorkshire, UK

[SOLVED] dfu-util: Cannot open DFU device 1eaf:0003

Post by PaulRB » Sat Jun 20, 2015 5:00 pm

Help!

I fixed this before on my desktop, but am now having the same problem with my laptop, can't remember how I fixed it and can't find anything about it on Google...

I have installed Arduino IDE 1.6.5 on Ubuntu 14.0.4 (64 bit). Installed the Arduino SAM boards on Boards Manager, installed dfu-util 0.8, installed Arduino_STM32.

No problems uploading to Nano 3.

Trying to upload to Maple Mini clone (in erpetual bootloader mode) I am getting:

Code: Select all

Sketch uses 13,748 bytes (12%) of program storage space. Maximum is 110,592 bytes.
Global variables use 3,200 bytes of dynamic memory.
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

dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
dfu-util: Cannot open DFU device 1eaf:0003
dfu-util: No DFU capable USB device available
But lsusb shows:

Code: Select all

Bus 002 Device 003: ID 05c6:9204 Qualcomm, Inc. 
Bus 002 Device 006: ID 1eaf:0003  
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 17ef:4816 Lenovo 
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Can someone please remind me how to fix this?

Thanks,

Paul
Last edited by PaulRB on Sun Jun 21, 2015 2:02 pm, edited 1 time in total.

User avatar
martinayotte
Posts: 1229
Joined: Mon Apr 27, 2015 1:45 pm

Re: dfu-util: Cannot open DFU device 1eaf:0003

Post by martinayotte » Sat Jun 20, 2015 5:34 pm

Do you have a file similar to /etc/udev/rules.d/45-maple.rules installed ?
It contains the following :

Code: Select all

ATTRS{idProduct}=="1001", ATTRS{idVendor}=="0110", MODE="664", GROUP="dialout"
ATTRS{idProduct}=="1002", ATTRS{idVendor}=="0110", MODE="664", GROUP="dialout"
ATTRS{idProduct}=="0003", ATTRS{idVendor}=="1eaf", MODE="664", GROUP="dialout" SYMLINK+="maple"
ATTRS{idProduct}=="0004", ATTRS{idVendor}=="1eaf", MODE="664", GROUP="dialout" SYMLINK+="maple"
And your user account should be part of the "dialout" group.

PaulRB
Posts: 21
Joined: Tue Apr 28, 2015 1:15 pm
Location: West Yorkshire, UK

Re: dfu-util: Cannot open DFU device 1eaf:0003

Post by PaulRB » Sat Jun 20, 2015 7:19 pm

Hi, thanks for the reply.

Code: Select all

paul@paulsLaptop:~$ sudo adduser paul dialout
[sudo] password for paul: 
The user `paul' is already a member of `dialout'.
Here's the section of my /lib/udev/rules.d/77-mm-usb-device-blacklist.rules file where I added the extra lines:

Code: Select all

# Arduinos
ATTRS{idVendor}=="2341", ENV{ID_MM_DEVICE_IGNORE}="1"
ATTRS{idVendor}=="1b4f", ATTRS{idProduct}=="9207", ENV{ID_MM_DEVICE_IGNORE}="1"
ATTRS{idVendor}=="1b4f", ATTRS{idProduct}=="9208", ENV{ID_MM_DEVICE_IGNORE}="1"
ATTRS{idVendor}=="1eaf", ATTRS{idProduct}=="0003", ENV{ID_MM_DEVICE_IGNORE}="1"
ATTRS{idVendor}=="1eaf", ATTRS{idProduct}=="0004", ENV{ID_MM_DEVICE_IGNORE}="1"
Does that look OK?

User avatar
martinayotte
Posts: 1229
Joined: Mon Apr 27, 2015 1:45 pm

Re: dfu-util: Cannot open DFU device 1eaf:0003

Post by martinayotte » Sat Jun 20, 2015 7:48 pm

I don't think you should add anything to /lib/udev/rules.d/77-mm-usb-device-blacklist.rules (mine is not been touched since 2012)

But you need to create the file /etc/udev/rules.d/45-maple.rules and put the contain I mentioned above.

EDIT : BTW, don't forget to do a "sudo restart udev" after adding the file. Then, try dfu-util -l while the Maple is in "perpetual mode", you should see something like that :

Code: Select all

dfu-util -l
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

Found DFU: [1eaf:0003] devnum=0, cfg=1, intf=0, alt=0, name="Bootloader 2.0.rc1 ERROR. Upload to RAM is not supported. (Maple-mini)"
Found DFU: [1eaf:0003] devnum=0, cfg=1, intf=0, alt=1, name="Bootloader 2.0.rc1 Upload to Flash address 0x8005000 (Maple-mini)"
Found DFU: [1eaf:0003] devnum=0, cfg=1, intf=0, alt=2, name="Bootloader 2.0.rc1 Upload to Flash address 0x8002000 (Maple-mini)

PaulRB
Posts: 21
Joined: Tue Apr 28, 2015 1:15 pm
Location: West Yorkshire, UK

Re: dfu-util: Cannot open DFU device 1eaf:0003

Post by PaulRB » Sun Jun 21, 2015 2:01 pm

Many thanks, martinayotte!

Your suggested /etc/udev/rules.d/45-maple.rules file worked. I can now upload to the MM.

Paul

Post Reply