I've been fighting all day with this crap because it kept giving me a dreaded "stk500_getsync() not in sync resp=0x00" error with avrdude.
However, I dig around more online, and found a post regarding the baud rate, so I changed this:
avrdude -p attiny2313 -c avrisp -P COM7 -U flash:w:main.hex -vvvv
to simply this:
avrdude -p attiny2313 -c avrisp -P COM7 -U flash:w:main.hex -b 19200 -vvvv
and amazingly, a whole bunch of stuff started scrolling and apparently it wrote the .hex file and verified it too.
This is the bottom of the command, after it was all scrolled and done.
I didn't get any errors, so I'm assuming I did it right.
Now, the code that I'm going to be using requires that I run the Attiny2313 at 12MHz with an external oscillator (see project here).
Do I need to burn any fuses for this?! It seems as though it's checked for the correct fuses at the end of writing and verifying the .hex file, as seen in the image above.
I've put the whole thing, start to finish, in this pastebin
Thanks for any help guys!