This is an old revision of the document!
Table of Contents
Setup avrdude under Windows
After installing avrdude, create a file avrdude.rc in the same directory as your avrdude.exe with the following content:
default_serial = "com10"; default_programmer = "stk500v2";
(change your settings as needed).
Setup avrdude under Linux
After installing avrdude, create a file .avrduderc in your home directory with the following content:
default_serial = "/dev/ttyUSB0"; default_programmer = "stk500v2";
(change your settings as needed).
Check the programmer connection
After the config file is created as shown above, you can use avrdude without entering the settings each time. This also makes it possible to leave this parameters out of the makefiles.
Now connect the ATMega to power and the ISP connector.
Try to read out the fuses:
avrdude -p ATMEGA328P -U lfuse:r:-:h
(use ATMEGA328P or ATMEGA168 for the microcontroller model and use the appropriate ISP com port).
You should get something like:
0x62 avrdude: safemode: Fuses OK
If not, check all connections or if you have a shortcut.
You can use “lfuse” for low fuses, “hfuse” for high fuses and “efuse” for extended fuses.