Tuesday, March 31, 2009

Bootloading using command line (Windows XP)

This is a documentation on how I uploaded a bootloader for atmega8L...

This command is intended for ATmega8L and so far it's not yet working properly but at least I know that i can access the parallel port.

I'm using Arduino-0012

1. Configure avrdude.conf

avrdude -C "C:\\arduino-0012\hardware/tools/avr/etc/avrdude.conf" -v -v -v -v -pm8 -cdapa -e -Ulock:w:0xFF:m -Uhfuse:w:0xca:m -Ulfuse:w:0xd4:m -F

*just put the address of the .conf file

2. Upload

avrdude -C "C:\\arduino-0012\hardware/tools/avr/etc/avrdude.conf" -v -v -v -v -pm8 -cdapa -e -Uflash:w:"C:\\arduino-0012\hardware\bootloaders\atmega8\ATmegaBOOT.hex":i -Ulock:w:0xCF:m -F

*just put the the address of the .conf file (same as above) and the address of the .hex file

3. Your done.

References
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1200218080;start=all
http://www.uchobby.com/index.php/2007/09/12/how-to-update-the-arduino/

Any much better idea?