Homebrew AVR ProgrammerSat, Dec 1, 2012
I finally got around to building a little Atmel AVR chip programmer using some perfboard and a ZIF socket. Using CrossPack’s gcc cross-compiler, I can now compile for the AVR chips on my Mac and burn them directly to the chip without using a Linux or Windows VM.
I designed the programmer so that it can handle ATtiny25/45/85/2313 and ATmega48/88/168/328 chips, all in the same ZIF socket. Spiffy.
My programmer connects to the Mac via a Pocket AVR Programmer from Sparkfun.
For what it’s worth, here is how I burn a compiled .hex image to an ATtiny2313 chip:
avrdude -p attiny2313 -c usbtiny -U flash:w:FILENAME_TO_BURN
Here’s an example how how I set the fuses on the chip:
avrdude -p attiny2313 -c usbtiny -U lfuse:w:0xe4:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m