I'd like to program an attiny85, but I've had a large number of problems making it happen so far
I recently bought one of Sparkfun's USB tiny programmers, but have found that it doesn't work on my newish macbook because it's incompatible with USB3.0 ports. So, that was attempt #1.
I've borrowed an AVRISP mkII and I'm trying to use that to program the attiny directly. I've breadboarded the attiny85, and used jumper cables to connect pins on the ISP Header to the Attiny using these images as a guide:
I selected "AVRISP mkII" as the programmer in the Arduino IDE, and tried to load the Blink Example sketch. I received the error:
avrdude: stk500v2_command(): command failed
avrdude: stk500v2_program_enable(): bad AVRISPmkII connection status: MOSI fail, RST fail, SCK fail, Target not detected
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
I'm not really sure what this means, and I can't find any obvious resources online that are using both the Arduino IDE and the AVRISP mkII. Does anyone have advice for how to get these two things working?
What do you use a MKII for if you have lots of arduinos of different types ?
Is that something I might need ? (if so , for what ?)
CrossRoads was suggesting the MKii as I do not use one but he will probably chime in; however, a short answer:
If you are using Atmel Studio to program your Arduinos (typically with one of the "free" plugins that support Arduino), then the MKii is simply a perfect match for that environment... Atmel Studio and Atmel designed programmer... it will simply work on every chip that it supports.
So, your money for the MKii is kind of an insurance policy to avoid having to deal with the daily issues others have with the flood of other devices that call themselves programmers.
I got it working, but I'm not entirely sure what the issue was. I tried burning the bootloader and everything started working, but I think that I should've been able to use the AVRISP without the bootloader...
'Burn bootloader' is not actually burning a bootloader. As far as I know, there is no bottloader for Attiny, it just erases the chip and sets the fuses to the selected speed.