Summary of Setup External programmer in Atmel Studio
This article outlines how to integrate an external programmer (avrdude) into Atmel Studio 7.0 for programming AVR boards directly, bypassing the Universal_GUI.exe tool to streamline debugging.
Parts used in Atmel Studio 7.0 External Programmer Integration:
- Atmel Studio 7.0
- avrdude executable (avrdude.exe)
- AVR board
- Hex file
- External Tools menu
- Output window
- Keyboard shortcut configuration
“This tutorial provides step-by-step instructions on incorporating an external programmer into Atmel Studio 7.0. By configuring the external programmer, you can conveniently program the AVR board without the need to switch to the ‘Universal_GUI.exe’ tool. This integration streamlines the workflow, enhancing the efficiency of debugging and troubleshooting processes.”
0. Download avrdude
On the school computer, avrdude is installed at
V:\avrdude\avrdude.exe
For your personal Windows PC, you can download avrdude here:
http://web.engr.oregonstate.edu/~jinyo/ece375/sw/avrdude.zip
Unzip the file and save to your preferred directory, e.g.
C:\Program Files (x86)\avrdude\avrdude.exe
1. Enable “Advanced Mode”
In order to setup an External programmer, Atmel Studio needs to be in ‘Advanced’ profile. This can be found under the Tools menu.
Go to > Tools > Select Profile.
Select “Advanced” and click “Apply”.
2. Add “External Tools”
Go to > Tools > External Tools.
Add new external tool
Check ???? “Use Output window”, Uncheck ☐ “Treat output as Unicode” and ☐ “Prompt for arguments”. Then, click “Apply” to save the setting.
3. Setup keyboard shortcut (Optional)
This section is optional. You can skip it if you feel more clicky using the mice or touchpad. Go to > Tools > Options
Choose the “Keyboard” option, input “ExternalCommand1,” and opt for “Tools.ExternalCommand1” from the available selections. Specify your desired shortcut keys and click on “Assign” to assign them. Finally, click “Ok” to save the configuration.
You can also assign shortcuts for other y frequent used command like “Set as Entry File” or
“Build Solution”, e.g. my choices of shortcut are:
Set as Entry File: Alt+X (Hint: X as check mark)
Build Solution: Alt+C (Hint: C as compile)
ExternalCommand1: Alt+V (Hint: well, it’s next to X and C…)
4. Flash hex file with external programmer
Before proceeding, ensure that you have successfully built your project. In the Solution Explorer, it is irrelevant which folder or file is currently selected as long as you are working within the correct project.
Go to > Tool > USBASP, or use the shortcut of your choice.
5. DONE!
If you encounter the subsequent message, it indicates that the hex file has been successfully programmed onto the AVR board. Please note that there might be a warning displayed in the output window, but you can disregard it.
-
Why should I use an external programmer in Atmel Studio?
It allows you to program the AVR board without switching to the Universal_GUI.exe tool and streamlines debugging. -
How do I enable Advanced Mode in Atmel Studio?
Go to the Tools menu, select Profile, choose Advanced, and click Apply. -
Which settings must be checked when adding an External Tool?
You must check Use Output window while unchecking Treat output as Unicode and Prompt for arguments. -
Can I create keyboard shortcuts for the external command?
Yes, go to Tools Options Keyboard, input ExternalCommand1, and assign your desired keys. -
What must be done before flashing a hex file?
You must ensure that your project has been successfully built first. -
How do I flash the hex file using the external programmer?
Select Tool USBASP from the menu or use your assigned shortcut key. -
What indicates a successful programming process?
A specific message appears confirming the hex file was programmed onto the AVR board.











