Set Up Eclipse For Use WIth The AVR
From WPI Automation and Interventional Medicine (AIM) Robotics Laboratory
All of the lab machines will have this done already, but if you want to set up eclipse on your own machine, this is what you will have to do.
Contents |
NOTE
This will take over an hour to complete, not including download time which can add an additional 30-60 minutes. Make sure you have that much time to dedicate to this before starting.
Getting Eclipse
First you will need the Sun JDK 6 (aka java 1.6)
Next download Eclipse 3.5 Galileo for C and C++ development
Once downloaded, there is no installer. Extract the .zip on to your hard drive (we recomend C:\Program Files\eclipse-for-avr or /usr/bin/eclipse-for-avr) and open the folder containing a stand alone executable called eclipse or eclipse.exe. Double click on it and ensure that eclipse starts. If it is working, create a sym-link to your system path, or your desktop. Mkae sure not to move the directory with eclipse in it after you make the sym-link.
Getting Dependencies
Windows
Your compiler and header files
Subversion
Doxygen
Programmer drivers:
Linux
You will need to run just one line command to get all dependancies on your debian based system.
sudo apt-get install avarice avr-libc avra avrdude avrp avrprog binutils-avr gcc-avr gdb-avr simulavr doxygen subversion
If you do not run a debian based system, these are the packages you to need to find and install
avarice - use GDB with Atmel's JTAG ICE for the AVR avr-libc - Standard C library for Atmel AVR development avra - Assembler for Atmel AVR microcontrollers avrdude - software for programming Atmel AVR microcontrollers avrp - Programmer for Atmel AVR microcontrollers avrprog - Programmer for Atmel AVR microcontrollers binutils-avr - Binary utilities supporting Atmel's AVR targets gcc-avr - The GNU C compiler (cross compiler for avr) gdb-avr - The GNU Debugger for avr simulavr - Atmel AVR simulator doxygen - Documentation system for C, C++, Java, Python and other languages subversion - Advanced version control system
Mac
To get the toolchain working, you will have to follow this tutorial. I do not have a Mac to test it, so functionality is up to you
Likewise with subversion
Doxygen
Getting Plug-ins
Now you need to install the eclipse plug-ins. These are all cross platform. To install plugins go to:
Help>Install New Software select "Add..." then enter the name and URL
Make sure to install one plug-in at a time.
C/C++ plugin
AVR plugin
Subclipse
Eclox- the Doxygen plugin