This tutorial provides step-by-step instructions on how to integrate an external programmer into Atmel Studio 7.0. By setting up the external programmer, you will be able to flash the AVR board directly from Atmel Studio without the need to switch to the âUniversal_GUI.exeâ application. This streamlined workflow enhances the debugging and troubleshooting process, resulting in increased efficiency.
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â
To configure an external programmer, you must ensure that Atmel Studio is in the âAdvancedâ profile mode. You can access this option by navigating to the Tools menu and selecting the âSelect Profileâ option.
1. Enable âAdvanced Modeâ
To configure an external programmer in Atmel Studio, you need to switch the software to the âAdvancedâ profile. This can be done by accessing the Tools menu and selecting the âSelect Profileâ option. Once you click on it, a menu will appear where you can choose the âAdvancedâ profile.
Select âAdvancedâ and click âApplyâ.
2. Add âExternal Toolsâ
Go to > Tools > External Tools.
Add new external tool
Title:
USBASP (or the name of your choice)
Commands:
C:\Program Files (x86)\avrdude\avrdude.exe (or the path of avrdude.exe)
Arguments:
-c usbasp -p atmega128 -B12 -U flash:w:$(BinDir)\$(TargetName).hex:i
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
Here are the paraphrased instructions:
1. Choose âKeyboardâ and input âExternalCommand1â. Then choose âTools.ExternalCommand1â.
2. Specify your desired shortcut keys and select âAssignâ.
3. To save the configuration, click âOkâ.
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
Hereâs a paraphrased version:
To begin, ensure that your project is built. In the Solution Explorer, the specific folder or file that is highlighted is irrelevant as long as you are in the correct project.
Go to > Tool > USBASP, or use the shortcut of your choice.
5. DONE!
Hereâs a paraphrased version:
If the message below is displayed, it indicates that the hex file has been successfully flashed onto the AVR board. Any warning messages appearing in the output window can be disregarded.