I'm having issues with the dfu utility in the Arduino 101, and was hoping somebody might have some insight into a solution.
First, I am able to upload programs(sketches) in Windows 7 using the Arduino IDE, error free. I don't believe this is a hardware issue with the Arduino 101.
I have had intermittent success using the Arduino IDE (Ubuntu 16.04 LTS, 64-bit) to upload sketches. And I have been able to program (via dfu) C++ projects provided in the Curie Open Development Kit - A such as arc/examples/Blink, every now and then.
However, I always get "can't detach" and "error resetting after download" messages using the Linux process (following directions from Installing and Using the A Tree | Intel® Software ). More often than not the programming process exits before completion. At times this has forced me to return to the Windows computer, and the Arduino IDE, to re-program the bootloader.
I'll be switching to a jtag programmer soon, but wanted to check and see if there is something simple I'm not doing, or if there are any know issues with the using the USB serial bootload process.
Here is the terminal output from an attempt to upload "Blink" with a failure.
sol3@sol3-linux:~/CODK/CODK-A/arc/examples/Blink$ make upload SERIAL_PORT=/dev/ttyACM0
Resetting port /dev/ttyACM0
stty -F /dev/ttyACM0 1200
Uploading arc.bin to port /dev/ttyACM0
/home/sol3/CODK/CODK-A/arc/bin/arduino101load /home/sol3/CODK/CODK-A/arc/bin/x86/bin arc.bin /dev/ttyACM0 true
Starting download script...
Args to shell: [/home/sol3/CODK/CODK-A/arc/bin/x86/bin arc.bin /dev/ttyACM0 true]
Serial Port: /dev/ttyACM0
BIN FILE arc.bin
Waiting for device...
dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
dfu-util: Error during download
dfu-util: can't detach
dfu-util: error resetting after download
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 email@example.com
Opening DFU capable USB device...
Run-time device DFU version 0011
Claiming USB DFU Interface...
Setting Alternate Setting #7 ...
Determining device status: state = dfuIDLE, status = 0
DFU mode device DFU version 0011
Device returned transfer size 2048
Copying data from PC to DFU device
Download [=== ] 12% 6144 bytesResetting USB to switch back to runtime mode
ERROR: Upload failed on /dev/ttyACM0
/home/sol3/CODK/CODK-A/arc/Makefile.inc:136: recipe for target 'upload' failed
make: *** [upload] Error 1