Burning the Firmware on the USBasp Programmer


With the command line tool AVRdude one can burn the firmware on the Atmega8 chip.
Download the firmware from: http://www.fischl.de/usbasp/. And read the Readme.txt.


Workaround on Linux

1. Erase:

$ sudo avrdude  -p atmega8 -c stk500v2 -P /dev/ttyACM0 -e

2. Set Fusebits

$ sudo avrdude  -p atmega8 -c stk500v2 -P /dev/ttyACM0 -U HFUSE=0xc9
$ sudo avrdude  -p atmega8 -c stk500v2 -P /dev/ttyACM0 -U LFUSE=0xef

3. Burn the Hex File:

$ sudo avrdude  -p atmega8 -c stk500v2 -P /dev/ttyACM0 -b115200 -U flash:w:usbasp.atmega8.2011-05-28.hex:i