â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.