AVR Toolchain Installer
AVR is a microcontroller family produced by Atmel. GNU GCC supports code generation for them, so it is possible to develop code using C language and free GPL tools. However, before starting, you need the toolchain (gcc compiler, libc, etc...) correctly configured and compiled for AVR target. WinAVR exists on Windows for this reason: a collection of all the tools you need to start developing using GPL tools.
On Linux, some distributions offer the AVR toolchain already integrated, but supplied tools are usually not quite up to date. Installing the AVR toolchain by hand under Linux and others UNIX-like OS could be quite annoying: it requires downloading at least 3 different tools (binutils, gcc, avr-libc) from different sources, patch some of them and compile them using the appropriate configure options. Such tweaks are quite easy to do... once you have spent a lot of time trying to understand what to do.
Each time I have tried to install the AVR toolchain on a new workstation, I have spent most of the time trying to recall what I had to do. Finally, I decided to create this simple script that do all the required job for you. Around the Internet there are a few scripts like this, but none of them is up to date, nor simple to use as this one.
Features:
- Single archive, containing all you need to start developing for AVR. Just download and run.
- Includes the most recent patches, including the ones for new AVR devices (e.g. atmega256)
- Runs perfectly on major Linux distributions and other UNIX-like OS (tested on Fedora, Ubuntu, Mac OS X)
- Includes the same toolchain versions and (almost all) the patches WinAVR has. This is useful if you want to migrate to Linux or collaborate with other people using WinAVR, ensuring consistent code generation.
- The script can be stopped at any time: it will resume from the point it has been stopped.
It's GPL
Download
Version 20080514 contains:
- binutils-2.18 for AVR
- gcc-4.2.2 for AVR
- avr-libc-1.6.1
- avrdude-5.5 (an AVR programmer)
For each release there are 2 packages:
- Full: all you need to start AVR development!
- Light: script and patches only, the toolchain sources will be automatically downloaded from Internet.
Version |
Full version |
Light version |
WinAVR aligment |
Notes |
20080514 |
20071221 |
There's a bug in floating point code generation that cause final executable to use 256 more RAM bytes (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29524) |
||
20070905 |
20070525 |
none |
Installation
Just download the tar archive, untar and run:
./avr-install.sh <build_dir> <install_dir>
The script takes 2 parameters:
<build_dir>: the directory where the toolchain sources will be uncompressed and built. Every source will have its own subdirectory.
<install_dir>: the directory where to install the executables.
Author
Francesco Sacchi <batt-nospam@develer.com>, sponsored by Develer s.r.l.
Please feel free to report script bugs and patches to my email address!
Credits
Daniele Basile <asterix-nospam@develer.com> - Mac OS X tweaks
Stefano Fedrigo <aleph-nospam@develer.com> - Bash scripting tweaks
WinAVR http://sourceforge.net/projects/winavr/
Licenses
This script is distributed under the GNU GPL License.
GNU Binutils is distributed under the GNU GPL License.
GNU Compiler Collection (GCC) is distributed under the GNU GPL License.
avr-libc is distributed under a BSD License.
avrdude is distributed under the GNU GPL License