Documentation:AVR Plugin for Eclipse

From AVRFreaks Wiki

Jump to: navigation, search

Contents

[edit] The Eclipse IDE

The Eclipse IDE is a very robust development environment written in Java, so it works on both Windows and Linux.

The AVR Plugin for Eclipse provides some tools and settings for developing C programs for the ATMEL AVR series of embedded processors with the Eclipse IDE. It is open source and freely available under the terms of the GNU General Public Licence (GPL)

[edit] Using Eclipse to Develop for the AVR

You will need:

  • A Java Runtime Environment (JRE). For Windows get this from Sun's webpage. For Linux use your distro's package manager (eg on Ubuntu get the sun-java6-jre package).
  • The Eclipse IDE for C/C++ Development. On Linux you may find this also in your package manager, but this means you will need to run Eclipse as root to install new packages system wide. Instead download Eclipse from the website and run it within your home directory, so you install plugins for your local user installation only.
  • The AVR-GCC Toolchain. For Windows get this from WinAVR. For Linux install with your distro's package manager. For example on Ubuntu you will need the gcc-avr, avr-libc and binutils-avr packages.
  • The AVR Eclipse plugin (install instructions below)

[edit] Plugin Installation

  • Go to the Help menu and select Software Updates -> Find and install.
  • Select search for new features to install
  • Click New Remote Site and enter AVR Plugin for Name and http://avr-eclipse.sourceforge.net/updatesite/ for URL.
  • Follow the rest of the wizard.

[edit] Using the Plugin

Start a new C Project from the File menu and you should now have the option of "AVR Cross Target Application" using the "AVR-GCC Toolchain".

Personal tools