0% found this document useful (0 votes)
60 views

Setup External Programmer in Atmel Studio

This document provides instructions for setting up an external programmer in Atmel Studio to flash AVR boards without using the default GUI tool. It involves downloading avrdude, enabling advanced mode in Atmel Studio, adding an external tool configured for the programmer and avrdude executable, and optionally setting keyboard shortcuts. Once configured, the external programmer can be used to flash hex files to the board from within Atmel Studio.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
60 views

Setup External Programmer in Atmel Studio

This document provides instructions for setting up an external programmer in Atmel Studio to flash AVR boards without using the default GUI tool. It involves downloading avrdude, enabling advanced mode in Atmel Studio, adding an external tool configured for the programmer and avrdude executable, and optionally setting keyboard shortcuts. Once configured, the external programmer can be used to flash hex files to the board from within Atmel Studio.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Setup External programmer in Atmel Studio

Last Edited: Guangxin Wang 01/06/2020

This guide shows you how to add an external programmer in Atmel Studio 7.0. Once setup the
external programmer, you can flash the AVR board without switching to “Universal_GUI.exe”,
which provides a seamless workflow that making debug and troubleshooting a bit faster.

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

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

Select “Keyboard”, enter “ExternalCommand1” and select “Tools.ExternalCommand1”.

Enter your preferred shortcut keys and click “Assign”. Click “Ok” to save the setting.

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

First, make sure to build your project. In the Solution Explorer, as long as you are in the
correct project, it does not matter which folder or file is highlighted.

Go to > Tool > USBASP, or use the shortcut of your choice.


5. DONE!

If you see the following message, you have the hex file flashed on the AVR board.

You may see a warning in the output window, but it can be ignored.

Acknowledgment:

This is a revised version of previous guide “Adding an External programmer in Atmel Studio”.

You can watch the YouTube video: https://www.youtube.com/watch?v=5zHI_Gy9ziw

You might also like