adding AVRDragon as isp programmer to the IDE

Hi All,

I've almost managed to incorporate the dragon as a ISP to the ide. files are at

There is one issue that i'm unable to burn a bootloader directly from within the IDE.

/home/simon/aawork/Arduino/arduino-1.6.5-r5/hardware/tools/avr/bin/avrdude -C/home/simon/aawork/Arduino/arduino-1.6.5-r5/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -cdragon_isp -Pusb -Uflash:w:/home/simon/aawork/Arduino/arduino-1.6.5-r5/hardware/arduino/avr/bootloaders/optiboot/optiboot_atmega328.hex:i -Ulock:w:0x0F:m 

avrdude: Version 6.0.1, compiled on Apr 14 2015 at 19:04:16
         Copyright (c) 2000-2005 Brian Dean,
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/home/simon/aawork/Arduino/arduino-1.6.5-r5/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/home/simon/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : usb
         Using Programmer              : dragon_isp
avrdude: usbdev_open(): did not find any USB device "usb"
Error while burning bootloader.

but when i copy the command above and put it in a terminal, it runs fine.

my environment: Ubuntu 14.04 AMD64 running IDE 1.6.5 as normal user.

any thoughts?

This is a known issue with avrdude and the dragon, AVRISP mkII and other programmers caused by the Arduino IDE sending two commands back to back during the burn bootloader process. There is a bunch of discussion here although the OP in that thread appears to have given up on making his dragon work with the Arduino IDE I think with a little effort you could make it work. I don’t have a dragon but I have been able to use my mkII with the Arduino IDE after using two of the workarounds listed on that thread. If you have luck with any of those options let me know, I’d be interested to hear if they work for the dragon as well.