Using AVRdude with the Arduino Duemilanove
The following is the command that should be used for uploading a program to an Arduino Duemilanove (with an ATmega168 chip).
avrdude -c arduino -p m168 -P usb -U flash:w:FILENAME
replace FILENAME with the hex file you wish to upload to the board. This assumes that you want to write a file to the flash memory. You can of course verify or read from different portions of memory depending on your chip but I’ll leave you to figure that out from the AVRdude manual.
I needed this information badly tonight and google brought me here. It appears this was posted just a few hours before my need arose. Thanks a million.
Chuck
Las Cruces, NM
If you are using the ATMega328 you must set the baud rate to 57600 with -b57600 on the command line.
avrdude -b 57600 -c arduino -p m168 -P usb -U flash:w:
type defaults to Intel Hex, otherwise you should say what type o file you are using with an extra
at the end of teh command.
Hi i wanted to know how is the hardware configuration to do this.
I understand that you are using some kind of serial programmer to do this (i.e. avrisp), then why do you use the argument : “-carduino” when you should be using ( for example) -cavrisp ???
Are you using another arduino to program the second arduino??
thanks