dfu-utils update -> please test if you have upload problems

Hi everyone,
to try mitigating the USB upload problems on Windows and OSX (which seem to have increased instead than being resolved) we are asking you to test an updated version of dfu-utils binary.

You can download the files from here dfu-utils-cross/distrib at master · arduino/dfu-utils-cross · GitHub

Make sure you are running Curie core version 1.0.5; download the dfu-util executable for your platform and overwrite the one you'll find in

WIN: C:\Users\yourUsername\AppData\Local\Arduino15\packages\Intel\tools\arduino101load\1.6.4+1.18\x86\bin\
OSX: /User/$yourUsername/Library/Arduino15/packages/Intel/tools/arduino101load/1.6.4+1.18/x86/bin 
Linux: ~/.arduino15/packages/Intel/tools/arduino101load/1.6.4+1.18/x86/bin

Please report here your results
Thank you very much

For the brave:
the binaries has been packaged in an handy json for board manager:
http://downloads.arduino.cc/packages/package_arduino101_0.16.325_index.json
This will trigger a fake update of the core containing the updated tools (no need to update anything manually).
To revert to mainline (once 1.0.6 is published) remove the Curie core then remove the line from Additional json.

No improvement for me, still no download.

Windows 7 64, USB3 only.

Sketch uses 29,994 bytes (15%) of program storage space. Maximum is 196,608 bytes.
Forcing reset using 1200bps open/close on port COM12

C:\Users\...\Intel\tools\arduino101load\1.6.4+1.18/arduino101load/arduino101load C:\Users\DaveOR\AppData\Local\Arduino15\packages\Intel\tools\arduino101load\1.6.4+1.18/x86/bin C:\Users\...tmp/Blink.ino.bin COM12 verbose 

Starting download script...
Args to shell: [C:\Users\...\AppData\Local\Arduino15\packages\Intel\tools\arduino101load\1.6.4+1.18/x86/bin C:\Users\...tmp/Blink.ino.bin COM12 verbose]

Serial Port: COM12
BIN FILE C:\Users\...tmp/Blink.ino.bin
Waiting for device...
[b]exit status -1073741515[/b]

Hi Dave,
Thnaks for testing.
I believe I uploaded the wrong file (it had an unmet dependency), can you test again now using this one dfu-utils-cross/dfu-util.exe at master · arduino/dfu-utils-cross · GitHub it would be great!

Thank you so much

:slightly_frowning_face:
Different behaviour but no success. Should we wait to see if anyone has success, perhaps my laptop is especially problematic?

Sketch uses 29,994 bytes (15%) of program storage space. Maximum is 196,608 bytes.
Forcing reset using 1200bps open/close on port COM12
C:\Users\DaveOR\AppData\Local\Arduino15\packages\Intel\tools\arduino101load\1.6.4+1.18/arduino101load/arduino101load C:\Users\DaveOR\AppData\Local\Arduino15\packages\Intel\tools\arduino101load\1.6.4+1.18/x86/bin C:\Users\DaveOR\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp/Blink.ino.bin COM12 verbose 
Starting download script...
Args to shell: [C:\Users\DaveOR\AppData\Local\Arduino15\packages\Intel\tools\arduino101load\1.6.4+1.18/x86/bin C:\Users\DaveOR\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp/Blink.ino.bin COM12 verbose]
Serial Port: COM12
BIN FILE C:\Users\Dave\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp/Blink.ino.bin
Waiting for device...
Waiting for device...
Device found!
Invalid DFU suffix signature
A valid DFU suffix will be required in a future dfu-util release!!!
Error during download
can't detach
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/

Opening DFU capable USB device...
ID 8087:0aba
Run-time device DFU version 0000
Claiming USB DFU Interface...
Setting Alternate Setting #7 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 0000
Device returned transfer size 4360
Copying data from PC to DFU device

Download	[                         ]   0%            0 bytesResetting USB to switch back to runtime mode
SUCCESS: Sketch will execute in about 5 seconds.
the selected serial port SUCCESS: Sketch will execute in about 5 seconds.
 does not exist or your board is not connected

The "the selected serial port SUCCESS: Sketch will execute in about 5 seconds. does not exist or your board is not connected" output also appears in the (orange) status bar.
The LED is not blinking.

Ok, I had a last patch out of thye tree, the binary on github should be ok now
Thanks again for testing, your contribution is very valuable

SUCCESS!
Thanks facchinm!

Starting download script...
Args to shell: [C:\Users\DaveOR\AppData\Local\Arduino15\packages\Intel\tools\arduino101load\1.6.4+1.18/x86/bin C:\Users\DaveOR\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp/Blink.ino.bin COM12 verbose]
Serial Port: COM12
BIN FILE C:\Users\DaveOR\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp/Blink.ino.bin
Waiting for device...
Waiting for device...
Device found!
Invalid DFU suffix signature
A valid DFU suffix will be required in a future dfu-util release!!!
can't detach
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/

Opening DFU capable USB device...
ID 8087:0aba
Run-time device DFU version 0011
Claiming USB DFU Interface...
Setting Alternate Setting #7 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 0011
Device returned transfer size 2048
Copying data from PC to DFU device

Download 0% 0 bytes
Download [== ] 10% 2048 bytes
Download [===== ] 21% 4096 bytes
Download [======= ] 31% 6144 bytes
Download [========== ] 42% 8192 bytes
Download [============= ] 53% 10240 bytes
Download [=============== ] 63% 12288 bytes
Download [================== ] 74% 14336 bytes
Download [===================== ] 85% 16384 bytes
Download [======================= ] 95% 17208 bytes
Download [=========================] 100% 17208 bytes
Download done.
Sent a total of 17208 bytes
state(2) = dfuIDLE, status(0) = No error condition is present
Done!
Resetting USB to switch back to runtime mode
SUCCESS: Sketch will execute in about 5 seconds.

still have download problem

processing.app.debug.RunnerException
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:141)
at cc.arduino.UploaderUtils.upload(UploaderUtils.java:78)
at processing.app.Sketch.upload(Sketch.java:1186)
at processing.app.Sketch.exportApplet(Sketch.java:1160)
at processing.app.Sketch.exportApplet(Sketch.java:1132)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2381)
at java.lang.Thread.run(Thread.java:745)
Caused by: processing.app.SerialException: 接触串口 'COM4' 释出错。
at processing.app.Serial.touchForCDCReset(Serial.java:87)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:130)
... 6 more
Caused by: jssc.SerialPortException: Port name - COM4; Method name - openPort(); Exception type - Port busy.
at jssc.SerialPort.openPort(SerialPort.java:164)
at processing.app.Serial.touchForCDCReset(Serial.java:81)
... 7 more

@coloz,
Can you try closing and reopening your IDE? Something is using your serial port still. I just saw that issue when trying to upload a sketch when my IDE was still set for Arduino Yun. :confused:

Earlier I reported this problem and happy with workaround by Master resetting button for upload.

Now, in 1.0.5 release, this upload problem is gone. Thanks a lot Facchinm.

Upload works as charm now,

patch is not successful on my PC; Lenovo X240 Window 7 64-bit


Starting download script...
Args to shell: [C:\Users\ekowashi\AppData\Local\Arduino15\packages\Intel\tools\arduino101load\1.6.4+1.18/x86/bin C:\Users\ekowashi\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp/Blink.ino.bin COM32 verbose]
Serial Port: COM32
BIN FILE C:\Users\ekowashi\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp/Blink.ino.bin
Waiting for device...
fork/exec C:/Users/ekowashi/AppData/Local/Arduino15/packages/Intel/tools/arduino101load/1.6.4+1.18/x86/bin/dfu-util.exe: This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher.


The updated dfu-util.exe is small (36KB) compared to the original (263KB). Am I using correct file?
I downloaded it from dfu-utils-cross/dfu-util.exe at master · arduino/dfu-utils-cross · GitHub

I tried 2x Genuino 101's on 3 different PCs, all running Window 7 64-bit. None of them worked except for one. NUC rear USB 2.0 port worked while the front USB 3.0 did not. It was reproduce-able.

Hi gadgepin,
I believe that the file you downloaded got corrupted somehow, the dfu-util.exe binary is ~440Kb
Could you try redownloading it and check if the size is correct (before testing again, of course :slight_smile: ) ?

The first time I downloaded, I got a small file also. You have to click on the .EXE file links in GitHub and then click the 'View Raw' link on the following page for your browser to download the actual file.

thanks for the advice. I could download correct .EXE file.

But, the problem still exists. I tested it on following PC. I will try it on other PCs next week.
Dell XPS Windows 7 64-bit
Arduino 1.6.8 + Genuino 101 driver 1.0.5

Arduino: 1.6.8 (Windows 7), Board: "Arduino/Genuino 101"

Sketch uses 29,994 bytes (15%) of program storage space. Maximum is 196,608 bytes.
Forcing reset using 1200bps open/close on port COM24
C:\Users\e\AppData\Local\Arduino15\packages\Intel\tools\arduino101load\1.6.4+1.18/arduino101load/arduino101load C:\Users\e\AppData\Local\Arduino15\packages\Intel\tools\arduino101load\1.6.4+1.18/x86/bin C:\Users\e\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp/Blink.ino.bin COM24 verbose
Starting download script...
Args to shell: [C:\Users\e\AppData\Local\Arduino15\packages\Intel\tools\arduino101load\1.6.4+1.18/x86/bin C:\Users\e\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp/Blink.ino.bin COM24 verbose]
Serial Port: COM24
BIN FILE C:\Users\e\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp/Blink.ino.bin
Waiting for device...
Waiting for device...
Cannot open DFU device 8087:0aba
Waiting for device...
Cannot open DFU device 8087:0aba
Waiting for device...
Waiting for device...
Flashing is taking longer than expected
Try pressing MASTER_RESET button
Waiting for device...
Waiting for device...
Cannot open DFU device 8087:0aba
Waiting for device...
Cannot open DFU device 8087:0aba
Waiting for device...
Cannot open DFU device 8087:0aba
Waiting for device...
ERROR: Device is not responding.
Device is not responding, check the right serial port is selected or RESET the board right before exporting

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

okay, the patch worked fine on another PC ; it is blinking.
I will try other programs. thank you!

Thanks for the file, it fixed the issue for me

Having the problem despite runnig IDE 1.6.8 and Intel Curie Boards 1.0.5 and have downloaded and executed the dfu-util.exe

Here's the verbose error stream (upload only the full stream with compile exceeded the character limit):

Arduino: 1.6.8 (Windows 10), Board: "Arduino/Genuino 101"

Sketch uses 29,994 bytes (15%) of program storage space. Maximum is 196,608 bytes.
Forcing reset using 1200bps open/close on port COM3
C:\Users\Mini\AppData\Local\Arduino15\packages\Intel\tools\arduino101load\1.6.4+1.18/arduino101load/arduino101load C:\Users\Mini\AppData\Local\Arduino15\packages\Intel\tools\arduino101load\1.6.4+1.18/x86/bin C:\Users\Mini\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp/Blink.ino.bin COM3 verbose
Starting download script...
Args to shell: [C:\Users\Mini\AppData\Local\Arduino15\packages\Intel\tools\arduino101load\1.6.4+1.18/x86/bin C:\Users\Mini\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp/Blink.ino.bin COM3 verbose]
Serial Port: COM3
BIN FILE C:\Users\Mini\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp/Blink.ino.bin
Waiting for device...
Waiting for device...
Cannot open DFU device 8087:0aba
Waiting for device...
Cannot open DFU device 8087:0aba
Waiting for device...
Cannot open DFU device 8087:0aba
Waiting for device...
Cannot open DFU device 8087:0aba
Flashing is taking longer than expected
Try pressing MASTER_RESET button
Waiting for device...
Waiting for device...
Waiting for device...
Waiting for device...
Waiting for device...
ERROR: Device is not responding.
Device is not responding, check the right serial port is selected or RESET the board right before exporting

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

And YES I did press master Reset to no avail.

Win 7 Home Premium Arduino IDE 1.6.7

Tried 1.0.5, 1.0.4, 1.0.5 with new dfu-util.exe, nothing seems to work.

Downloaded the new dfu-util.exe but still get the same error.

The usb driver resets and "libusb (WinUSB) devices" shows up for awhile and then the COM drive starts, but I get this error message:

Sketch uses 29,530 bytes (15%) of program storage space. Maximum is 196,608 bytes.
C:\Users\Dad\AppData\Local\Arduino15\packages\Intel\tools\arduino101load\1.6.4+1.18/arduino101load/arduino101load C:\Users\Dad\AppData\Local\Arduino15\packages\Intel\tools\arduino101load\1.6.4+1.18/x86/bin C:\Users\Dad\AppData\Local\Temp\buildfb9be056cf471315fd4afef427bdeec8.tmp/sketch_apr11a.ino.bin COM47 verbose
Starting download script...
Args to shell: [C:\Users\Dad\AppData\Local\Arduino15\packages\Intel\tools\arduino101load\1.6.4+1.18/x86/bin C:\Users\Dad\AppData\Local\Temp\buildfb9be056cf471315fd4afef427bdeec8.tmp/sketch_apr11a.ino.bin COM47 verbose]
Serial Port: COM47
BIN FILE C:\Users\Dad\AppData\Local\Temp\buildfb9be056cf471315fd4afef427bdeec8.tmp/sketch_apr11a.ino.bin
Waiting for device...
Waiting for device...
Waiting for device...
Waiting for device...
Waiting for device...
Flashing is taking longer than expected
Try pressing MASTER_RESET button
Waiting for device...
Waiting for device...
Waiting for device...
Waiting for device...
Waiting for device...
ERROR: Device is not responding.
Device is not responding, check the right serial port is selected or RESET the board right before exporting

@bruce-johnston2 @rlstrand I'd really appreciate if you could paste a screenshot of Windows Device Manager while the board is up and running and another screenshot right after pressing MASTER_RESET continuously (keep pressing the button to keep the board in bootloader mode). Thank you so much

I was watching the device manager while attempting the upload. The board goes through the reboot process and the libusb (WinUSB) appears. Then drops out and the serial driver shows up under the ports category.

I ran the dfu-util -l from the command line and it did not find the device. Tried various delays from the pressing of the master reset button.

I am running an HP laptop with two USB ports on the left side and two USB ports on the right side. All USB 2.0.

I was using a left side port. I decided to try a right side port. Both right side ports work. dfu-util -l lists out the ROM sections. Neither left side port works in communicating to the dfu. USB enumerates but is not communicating.

Once I got a sketch uploaded all ports work in serial mode.

So for now I have a workaround. Anything that I can do for you to debug further?

Rolf

Sorry for the long delay.