arduino / ArduinoCore-avr

The Official Arduino AVR core
https://www.arduino.cc
1.25k stars 1.06k forks source link

AVRISP mkII should use option avrispmkii.communication=serial #258

Open megari opened 11 years ago

megari commented 11 years ago

In programmers.txt, AVRISP mkII has the option avrispmkii.communication=usb. However, at least on my Linux systems, this does not work as avrdude fails to find any devices, outputting the following error message:

avrdude: usbdev_open(): did not find any USB device "usb"

Apparently, the serial port chosen in Arduino IDE is not used in the avrdude command. Instead, the parameter "-Pusb" is used. When the setting in question is changed to avrispmkii.communication=serial, avrdude is passed the chosen serial port and burning a bootloader works.

jorgie0 commented 11 years ago

I have found a similar problem with Ardunio 1.5.4. I am unable to upload a boot loader using the AVR ISP MkII when using Version 1.5.4, But if I use 1.0.5 all is good.

I've made changes to programmers.txt which "fixed" the "avrdude: usbdev_open(): did not find any USB device "usb"" issue, however, after this has been applied Arduino 1.5.4 appears to hang will attempting to upload the boot loader.

I'm using Windows 8.

As an aside this make it impossible to use the Visual Micro Debugger under Atmel Studio.