(!) Please ask about problems and questions regarding this tutorial on answers.ros.org. Don't forget to include in your question the link to this page, the versions of your OS & ROS, and also add appropriate tags.

Setting Up Eclipse for avr_bridge

Description: How To set up Eclipse IDE for compiling and programming the avr_bridge avr code

Tutorial Level:

This tutorial is based off of the Arduino Eclipse guide : http://www.arduino.cc/playground/Code/Eclipse

Install Dependencies

These are the tools necessary to compile and program your avr.

    sudo apt-get install avrdude binutils-avr gcc-avr avr-libc gdb-avr

Install Eclipse

Next, go to http://www.eclipse.org/downloads and download Eclipse IDE for C/C++ Developers.

Install the AVR plugin for Eclipse

Inside Eclipse, Go to the Software update dialog (Help > Software Updates...)

Then select the Available Software tab. Click on the 'Add Site... button to the right hand side and enter the URL of the update site: http://avr-eclipse.sourceforge.net/updatesite/

Then click on OK. The AVR Eclipse update site is now shown in the list of update sites. Select the "AVR Eclipse Plugin" and press the Install... button in the top right corner.

Generate Eclipse Project

After your avr_bridge CMakeList.txt is correctly set up, you can use

make eclipse-project

To generate the eclipse project files. These files can be imported into Eclipse.

Compiling and Programming

Once you make your own main.cpp and load your own avrRos directory, you should be able to compile your program using eclipse's build system. You can then download the program using avrdude through eclipse by hitting the AVR-> button in the eclipse tool bar.

Wiki: avr_bridge/Tutorials/Setting Up Eclipse for avr_bridge (last edited 2011-05-20 13:54:18 by AdamStambler)