I am using Ubuntu and I am trying to upload a hex file (called
src.hex) to my ATtiny85 with my AVRISP MKII programmer with avrdude. But I get a strange error. I run this command:
sudo avrdude -p t85 -c avrispmkII -P usb_device -U flash:w:src.hex
I get this error:
avrdude: stk500v2_command(): command failed avrdude: stk500v2_program_enable(): bad AVRISPmkII connection status: Target not detected avrdude: initialization failed, rc=-1 Double check connections and try again, or use -F to override this check.
I have all pins connected correctly, I have my programmer plugged in my computer, I have the
cdc-acm module running, and I have a
.rules files places in the director
/etc/udev/ (from this question).
How can I resolve this error?