I'm trying to program an ATtiny85, using an AVRISP mkII programmer (this one: https://www.amazon.de/dp/B00IYNAXUC/ref=cm_sw_r_sms_c_api_i_VXOWDb3H3N5ND) with the Arduino IDE (version 1.8.10 on Ubuntu 18.10). For the ATtiny, I've installed https://github.com/damellis/attiny using the board manager, as recommended in countless tutorials.
Now, everything seems to be recognized fine, and I've selected the programmers port in the IDE: /dev/ttyACM0
.
But when I try to upload a sketch, the IDE instead trys to pass usb
as the port to avrdude
. This is only visble when enabling verbose output: (paths abbreviated)
/home/[...]/avrdude -C/home/[...]/avr/etc/avrdude.conf -v -pattiny85 -cstk500v2 -Pusb -Uflash:w:/tmp/arduino_build_728460/sketch.ino.hex:i
avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "/home/[...]/avrdude.conf"
User configuration file is "/home/[...]/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : usb
Using Programmer : stk500v2
avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104)
avrdude done. Thank you.
usb
isn't even a selectable port in the IDE!
Simply pasting the avrdude command (first line in the output above) to a terminal and changing usb
to /dev/ttyACM0
makes it program the IC perfectly (but of course, that's a rather cumbersome workaround).
Also, selecting another programmer in the IDE (like AVR ISP, without the mkII) makes it use the correct port (but of course it won't work, since it's the wrong programmer).
Am I doing something wrong, or is this an actual bug in the Arduino IDE?