Error uploading sketchs (RESOLVED)

Using Win 7 X64, IDE 1.6.11, Core 1.0.7 for 101.

This is my first 101 (arrived this morning) so please excuse me if I missed something simple.

I can see the board in device manager and it shows up fine in the IDE.

As is usual with most of the Arduinos I figure to throw the blink example at it.

However it errors out (see attached file as it was too big to post as code).
Did a search for exit code 74 and found nothing arduino related.

Arduino 101 comipler output.txt (22.3 KB)

Hi Bob,
could you please navigate to
D:\Users\Bob.Bob-SSD\AppData\Local\Arduino15\packages\Intel\tools\arduino101load/1.6.9+1.28/x86/bin/ and launch dfu-uilt.exe ?
An error message should appear with the actual error (probably a missing DLL). Post the error here so we can solve it in the next release (and in your actual setup manually)

Good day there facchinm.

Ran the util but nothing happened. (IDE wasn’t running)

Started IDE 1.6.11 and ran it again. There was a box onscreen for a few milliseconds so no chance of reading anything

Ran from administrator command line and the output is below.

d:\Users\Bob.Bob-SSD\AppData\Local\Arduino15\packages\Intel\tools\arduino101load
\1.6.9+1.28\x86\bin>dfu-util
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/

You need to specify one of -D or -U
Usage: dfu-util [options] ...
  -h --help                     Print this help message
  -V --version                  Print the version number
  -v --verbose                  Print verbose debug statements
  -l --list                     List currently attached DFU capable devices
  -e --detach                   Detach currently attached DFU capable devices
  -E --detach-delay seconds     Time to wait before reopening a device after det
ach
  -d --device <vendor>:<product>[,<vendor_dfu>:<product_dfu>]
                                Specify Vendor/Product ID(s) of DFU device
  -p --path <bus-port. ... .port>       Specify path to DFU device
  -c --cfg <config_nr>          Specify the Configuration of DFU device
  -i --intf <intf_nr>           Specify the DFU Interface number
  -S --serial <serial_string>[,<serial_string_dfu>]
                                Specify Serial String of DFU device
  -a --alt <alt>                Specify the Altsetting of the DFU Interface
                                by name or by number
  -t --transfer-size <size>     Specify the number of bytes per USB Transfer
  -U --upload <file>            Read firmware from device into <file>
  -Z --upload-size <bytes>      Specify the expected upload size in bytes
  -D --download <file>          Write firmware from <file> into device
  -R --reset                    Issue USB Reset signalling once we're finished
  -s --dfuse-address <address>  ST DfuSe mode, specify target address for
                                raw file download or upload. Not applicable for
                                DfuSe file (.dfu) downloads

d:\Users\Bob.Bob-SSD\AppData\Local\Arduino15\packages\Intel\tools\arduino101load
\1.6.9+1.28\x86\bin>

Left command prompt open.

Ran dfu-util with -U option.

Started IDE 1.6.11
Selected the 101 LED example
Did a compile
Tried an upload but the util just ended

Think its fixed.

Downloaded the ZIP version of IDE 1.6.12
Ran it and double checked everything was up to date etc.
Closed the IDE

Did two steps.
First was from post 32

Second was a great clue from post 24

It took quite a bit of reading in here but I would strongly suggest somebody talk to AVAST antivirus first off and then look at the driver install sections just to check if everything is in order.

Tried a couple of sketches and seems good so far and VERY fast under 1.6.12

Does he mean dfu-util.exe ? I typed dfu-util and hit enter on a command line but all it says is

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/

You need to specify one of -D or -U
Usage: dfu-util [options] …
-h --help Print this help message
-V --version Print the version number
-v --verbose Print verbose debug statements
-l --list List currently attached DFU capable devices
-e --detach Detach currently attached DFU capable devices
-E --detach-delay seconds Time to wait before reopening a device after detach
-d --device :[,<vendor_dfu>:<product_dfu>]
Specify Vendor/Product ID(s) of DFU device
-p --path <bus-port. … .port> Specify path to DFU device
-c --cfg <config_nr> Specify the Configuration of DFU device
-i --intf <intf_nr> Specify the DFU Interface number
-S --serial <serial_string>[,<serial_string_dfu>]
Specify Serial String of DFU device
-a --alt Specify the Altsetting of the DFU Interface
by name or by number
-t --transfer-size Specify the number of bytes per USB Transfer
-U --upload Read firmware from device into
-Z --upload-size Specify the expected upload size in bytes
-D --download Write firmware from into device
-R --reset Issue USB Reset signalling once we’re finished
-s --dfuse-address ST DfuSe mode, specify target address for
raw file download or upload. Not applicable for
DfuSe file (.dfu) downloads

C:\Users\MGB\AppData\Local\Arduino15\packages\Intel\tools\arduino101load\1.6.9+1
.28\x86\bin>

Which option do you use to show errors ?

Take a peek at my last #4 post as that's what nailed it for me.

Otherwise I was in the same boat as you with the DFU thing.

I did look at your post but I'm not getting a 74 error. Did you have to give a filename for -U ?

Error 74 doesn't mean much to me either.

There are references on the web for the DFU util but most of the options I tried did nothing (or it appeared that way)

I just figured that as the problems were similar in so many aspects it was worth you actually trying the steps I took in post #4 despite the error code.

Otherwise you are going to have to do what I did and that was take in and digest almost every post in this section even if its not actually related to a specific issue you have trying each method until you hit on a winning combination.

Trust me... that takes a lot longer than my suggestion.

I managed to figure out the syntax ...

dfu-util -l yielded this ...

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 dfu-util / Tickets

Found DFU: [8087:0aba] ver=8087, devnum=2, cfg=1, intf=0, path="6-2", alt=8, nam
e="ble_core", serial="AE6774SQ6040069"
Found DFU: [8087:0aba] ver=8087, devnum=2, cfg=1, intf=0, path="6-2", alt=7, nam
e="sensor_core", serial="AE6774SQ6040069"
Found DFU: [8087:0aba] ver=8087, devnum=2, cfg=1, intf=0, path="6-2", alt=6, nam
e="logs", serial="AE6774SQ6040069"
Found DFU: [8087:0aba] ver=8087, devnum=2, cfg=1, intf=0, path="6-2", alt=5, nam
e="events", serial="AE6774SQ6040069"
Found DFU: [8087:0aba] ver=8087, devnum=2, cfg=1, intf=0, path="6-2", alt=4, nam
e="panic", serial="AE6774SQ6040069"
Found DFU: [8087:0aba] ver=8087, devnum=2, cfg=1, intf=0, path="6-2", alt=3, nam
e="config", serial="AE6774SQ6040069"
Found DFU: [8087:0aba] ver=8087, devnum=2, cfg=1, intf=0, path="6-2", alt=2, nam
e="x86_app", serial="AE6774SQ6040069"
Found DFU: [8087:0aba] ver=8087, devnum=2, cfg=1, intf=0, path="6-2", alt=1, nam
e="x86_boot", serial="AE6774SQ6040069"
Found DFU: [8087:0aba] ver=8087, devnum=2, cfg=1, intf=0, path="6-2", alt=0, nam
e="x86_rom", serial="AE6774SQ6040069"

dfu-util -v -d 8087:0aba -a 0 -U zero through dfu-util -v -d 8087:0aba -a 8 -U eight uploaded 9 files that I am unable to view as they are not text format. Have no idea what program to use to read the data.

Awesome Mustang.

Have you tried the board since in case it uploaded or anything ?
The answer from facchinm was a bit lacking in detail as to how to use the util and what he wanted me to get from it ?

Being slightly analytical got me as far as the command prompt.

You took it a step further.

I would try your moves but mine is playing really nice so "If it aint broke I aint fixing it"

There are a couple more posts about the DFU util in here somewhere

After two hours of trying everything I could think of and searching these forums, this is the post that fixed my issue. Once I manually installed the driver for the A101 for Win10, I was finally able to upload sketches to the board.

Ballscrewbob:
Think its fixed.

Downloaded the ZIP version of IDE 1.6.12
Ran it and double checked everything was up to date etc.
Closed the IDE

Did two steps.
First was from post 32

Second was a great clue from post 24

I'm brand new to this Arduino thing. I bought an 101 board. I'm running Windows 10, Arduino 1.6.12. From board manager I have AVR 1.6.14, SAMD 1.6.7, Curie 1.0.7 and Windows 10 IoT Core 1.1.0 installed. Should I uninstall any of them? I have McAfee anti-virus. I can see the board on Device Manager (COM6), but not the WinUSB. When I press master reset, I don't see anything change within Device Manager. I've downloaded and installed Curie 101. I'm able to read the device info just fine. I've run the dfu-util, but I don't get any errors back. When I try running Blink, it times out.

Help!

Error msg below:

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

Sketch uses 17,628 bytes (11%) of program storage space. Maximum is 155,648 bytes.
Forcing reset using 1200bps open/close on port COM6
C:\Users\Beto\AppData\Local\Arduino15\packages\Intel\tools\arduino101load\1.6.9+1.28/arduino101load/arduino101load C:\Users\Beto\AppData\Local\Arduino15\packages\Intel\tools\arduino101load\1.6.9+1.28/x86/bin C:\Users\Beto\AppData\Local\Temp\arduino_build_218519/Blink.ino.bin COM6 verbose ATP1BLE000-1541C5635 141312
Starting download script...
Args to shell: [C:\Users\Beto\AppData\Local\Arduino15\packages\Intel\tools\arduino101load\1.6.9+1.28/x86/bin C:\Users\Beto\AppData\Local\Temp\arduino_build_218519/Blink.ino.bin COM6 verbose ATP1BLE000-1541C5635 141312]
Serial Port: COM6
BIN FILE C:\Users\Beto\AppData\Local\Temp\arduino_build_218519/Blink.ino.bin
Waiting for device...
Waiting for device...
Flashing is taking longer than expected
Try pressing MASTER_RESET button
Waiting for device...
Waiting for device...
ERROR: Timed out waiting for Arduino 101 on COM6
ERROR: Timed out waiting for Arduino 101 on COM6

@ rcrescencio

Did you try the steps in the post right above yours ?

Yes. I tried the amd64.exe file. I've turned off my Anti-virus (I can't find where to add an exception program). No luck.