2. Installing Prerequisites

To program AVRs from Windows using AVR Studio 4, several pieces of software are needed:

  1. WinAVR: WinAVR is a free, open-source suite of development tools for the AVR family of microcontrollers, including the GNU C/C++ compiler for AVRs (avr-gcc).
  2. AVR Studio 4.18: AVR Studio 4.18 is a free integrated development environment (IDE) for programming AVRs offered by Atmel. AVR Studio 4.18 works with the WinAVR avr-gcc compiler and contains built-in support for AVR ISP programming. We do not recommend the newer version 4.19 because it does not automatically detect and use WinAVR.
  3. Pololu AVR C/C++ Library: This library provides functions for interacting with all of the Orangutan’s integrated hardware, including the auxiliary processor, and many demo programs that show how to use these functions. The library should be installed using the executable installer after installing WinAVR.

You will also need to install the USB drivers for your programmer or board:

AVR Studio 4 only supports connecting to COM1 through COM9, so be sure to look in your Device Manager and change the COM port number of your device if necessary.