How To Upload Using AVR Dude
How To Upload Using AVR Dude
If you have not done so already, download and install AVR Studio, WinAVR, and Arduino IDE
from http://www.atmel.com/dyn/products/tools_card.asp?tool_id=2725,
http://sourceforge.net/projects/winavr/, and http://arduino.cc/en/Main/Software
At this time you should have verified that your Arduino 3DoT works by uploading and running
3DoT blink from the Arduino IDE (Integrated Development Environment). Instructions are
provided in "3DoT Training Document" found on the class website.
From the Lab01 folder, open the batch file name upload.bat in notepad (right-click upload.bat
and select Edit). Here you will see the following two commands (REM statements deleted for
clarity).
3DoT
avrdude -v -p atmega32u4 -c avr109 -P \\.\COM14 -b 57600 -D -U
flash:w:Lab1.hex
pause
avrdude -v -p atmega32u4 -c avr109 -P \\.\COM14 -b 57600 -D -U
flash:w:Lab1.hex
exit
Arduino UNO
avrdude -p m328p -c arduino -P \\.\COM4 -b 115200 -U flash:w:Lab1.hex
pause
Here is a short description the options and how you will need to modify them. For a complete list
of avrdude command line options go to http://www.nongnu.org/avrdude/user-
manual/avrdude_4.html#SEC4 her
In the future if you need to create a new batch file or if you modified this one; be sure to save
the file with a .bat extension (not .txt) in the folder containing your hex file (look in the folder
named 'default').
In order to create the hex file, click on Sketch ► Export Compiled Binary..
This will generate the hex file inside the sketch folder. You can then paste the upload.bat file
into this folder and execute it to upload the code