Building with Atmel Studio 7

To build with Atmel Studio 7 (AS7), there are 2 steps:

  1. Make an AVRDUDE tool in AS7
  2. Use the tool

AVRDUDE tool

We will make a new External Tool in AS7 for building with avrdude.exe

In AS7 go to the Tools menu and click External Tools as seen below

../../_images/as7_building01.png

A new dialog window should pop up as below.

Fill in the following fields as follows:

  1. Name your new tool Build to DuinoPro (can be anything)
  2. Enter in the path to avrdude.exe. This will be installation dependent, but if you are using Windows and you set everything to default, it should be C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avrdude.exe
  3. Enter in the following line:
-C "C:\Program Files (x86)\Arduino\hardware\tools\avr\etc\avrdude.conf" -p atmega328p -c arduino -P COM4 -b 115200 -U flash:w:"$(ProjectDir)Debug\$(TargetName).hex":i
  1. Check the Use Output Window box
Note:
  • In step 3, the path C:\Program Files (x86)\Arduino\hardware\tools\avr\etc\avrdude.conf is also installation dependent
  • In step 3, The COM4 parameter may change, see below
../../_images/as7_building02.png

Determining your COM Port

For Windows, open Device Manager (Ctrl+x, m).

With the device connected you should see a Ports (COM & LPT) section. Expand that section, and the device listed will be the COM port you use for your build parameter.

../../_images/as7_building03.png

Building with the Tool

Once you have made your AVRDUDE tool, you can use that tool to build with AS7 when your device is connected.

../../_images/as7_building04.png

Note

For administrators only: For setting up Atmel Studio 7 integration please read: