Introduction

To compiling a avr source on windows, you can make either way:

  • Install Atmel Studio: This way is very simple. Atmel Studio include almost everything: awesome IDE, toolchain for compiling, support debugger, downloader… But Atmel Studio only support for Windows. So, if you have an AVR-open-source written on linux, you will have trouble to compile it.

  • Install AVR Toolchain for Windows

Building AVR Toolchain for Windows

Installation requirements:

  • MinGW: Minimalist GNU for Windows.
    • It is a native Windows port of the GNU Compiler Collection (GCC), a minimalist development environment for native Microsoft Windows applications.
    • Download and Install from Sourceforge
    • Install necessary MSYS packages: msys-base, msys-make, msys-core, msys-bash.
    • Update PATH environment variable to folder:
      • C:\MinGW\msys\1.0\bin
    • For testing, you can type command make --version in a Window Command Prompt.
  • AVR Toolchain for Windows
    • Download
    • Install: extract downloaded packages to you disk, eg.:
      • C:\atmel\avr8-gnu-toolchain
      • C:\atmel\avr32-gnu-toolchain
    • Update PATH environment variable to these folders:
      • C:\atmel\avr8-gnu-toolchain\bin
      • C:\atmel\avr32-gnu-toolchain\bin
    • For testing, you can type command avr-gcc --version or avr32-gcc --version in a Window Command Prompt.

References