I've been having problems with using the AVR Dragon ISP from anything other than the Atmel Studio 7.0, which most likely does not use avrdude. So I'm trying to resolve this problem by running avrdude from the command line using a batch file for convenience. I have the latest Arduino IDE 1.6.8 installed and working using the Arduino (Pro Mini) as ISP.
When I add AVR Dragon to the programmers.conf file, and choose it from the list and try "upload using programmer", I get the following error:
avrdude: usbdev_open(): did not find any USB device "usb"
Searching for this error I found the following:
https://forum.arduino.cc/index.php?topic=316037.0 It suggests that avrdude 6.0 has a bug, and recommends 6.1 from
http://download.savannah.gnu.org/releases/avrdude/avrdude-6.1-mingw32.zip I have that, and I replaced the older version in the 1.6.8 folder with the newer version. I also changed the programmers.txt with the AVR Dragon definition, but the system-wide path seems to be C:\WinAVR-20100110\bin, and I updated it there as well. It also has a libusb0.dll that is older and smaller, but in the IDE it is newer and larger. I don't know which one is actually used, and I left them alone. The various versions are here:
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin
C:\WinAVR-20100110\bin
I have added the following definition to programmers.txt:
#added 4/2/16 PES
avr_dragon.name=AVR Dragon
avr_dragon.communication=usb
avr_dragon.protocol=dragon_isp
avr_dragon.program.protocol=dragon_isp
avr_dragon.program.tool=avrdude
avr_dragon.program.extra_params=-Pusb
When I run the batch file, I get the following results:
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin>pause
Press any key to continue . . .
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin>avrdude
Usage: avrdude [options]
Options:
-p <partno> Required. Specify AVR device.
-b <baudrate> Override RS-232 baud rate.
-B <bitclock> Specify JTAG/STK500v2 bit clock period (us).
-C <config-file> Specify location of configuration file.
-c <programmer> Specify programmer type.
-D Disable auto erase for flash memory
-i <delay> ISP Clock Delay [in microseconds]
-P <port> Specify connection port.
-F Override invalid signature check.
-e Perform a chip erase.
-O Perform RC oscillator calibration (see AVR053).
-U <memtype>:r|w|v:<filename>[:format]
Memory operation specification.
Multiple -U options are allowed, each request
is performed in the order specified.
-n Do not write anything to the device.
-V Do not verify.
-u Disable safemode, default when running from a scrip
t.
-s Silent safemode operation, will not ask you if
fuses should be changed back.
-t Enter terminal mode.
-E <exitspec>[,<exitspec>] List programmer exit specifications.
-x <extended_param> Pass <extended_param> to programmer.
-y Count # erase cycles in EEPROM.
-Y <number> Initialize erase cycle # in EEPROM.
-v Verbose output. -v -v for more.
-q Quell progress output. -q -q for less.
-l logfile Use logfile rather than stderr for diagnostics.
-? Display this usage.
avrdude version 6.1, URL: <http://savannah.nongnu.org/projects/avrdude/>
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin>pause
Press any key to continue . . .
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin>avrdude -v -v -v -v -c dra
gon_isp -p m328 -P usb
avrdude: Version 6.1, compiled on Mar 13 2014 at 00:09:49
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\WinAVR-20100110\bin\avrdude.conf"
Using Port : usb
Using Programmer : dragon_isp
avrdude: stk500v2_dragon_isp_open()
avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2107)
avrdude done. Thank you.
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin>pause
Press any key to continue . . .
Running the IDE again I get a slightly different error message:
avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2107)
That matches the hardware IDs for the Jungo Dragon as seen in Device Manager:
USB\VID_03EB&PID_2107&REV_0100
USB\VID_03EB&PID_2107
That's enough for now. Let me know if there is anything else to try. Thanks!