wiki:Developer/Eclipse/Plugin

Version 7 (modified by Sh, on Mar 30, 2009 at 12:33:09 PM) (diff)

RTEMS Eclipse Plug-in

Introduction

This page describes how to setup and use the RTEMS Eclipse Plug-in. This plug-in extends CDT and most features of a full-fledged Eclipse/CDT IDE with an ordinary GNU toolchain are available (debugging is not yet tested). Supported platforms are: Cygwin, MinGW, MacOS X and UNIX. Every RTEMS target architecture and BSP that provides the standard Makefiles is supported. This are at least the ones managed by the RTEMS repository from OAR.

Starting Point

You should be able to build a simple Hello World application for your BSP with the standard Makefiles.

Eclipse Installation

The plug-in has been developed for the Gandymede release of Eclipse and CDT version 5. Other releases may work but are not tested. If you have not yet installed Eclipse simply choose the package Eclipse IDE for C/C++ Developers or what ever you want from the Eclipse download page. An existing Eclipse installation needs a recent CDT plug-in (version 5 is recomended). The Eclipse IDE for C/C++ Developers already contains all required plug-ins.

Plug-In Installation

You can install the plug-in via the standard Eclipse infrastucture. Simply add http://www.rtems.com/ftp/pub/rtems/eclipse/updates to the software update sites (Help > Software Updates...).

<center>No image "repi-install.jpg" attached to Developer/Eclipse/Plugin</center>

Plug-In Setup

After the plug-in installation you should setup the preferences (Window > Preferences).

<center>No image "repi-setup.jpg" attached to Developer/Eclipse/Plugin</center>

Project Creation

Switch to the C/C++ Perpective (Window > Open Perspective > Other...). You can now create a new C Project or C++ Project (File > New > C Project or File > New > C++ Project) and follow the wizard. You can create projects for RTEMS executables and static libraries. A Hello, World'' template is also available.

<center>No image "repi-project.jpg" attached to Developer/Eclipse/Plugin</center>

Project Properties

You can change the RTEMS specific project properties like RTEMS base installation path and board support package path via the standard properties dialog (Project > Properties) and with the project wizard.

<center>No image "org-rtems-cdt-props.jpg" attached to Developer/Eclipse/Plugin</center>

Trouble Shooting

Consult the problems view (Window > Show View > Problems), if something works not like expected. Errors like below indicate that the paths in the RTEMS preferences and properties are not correct.

<center>No image "org-rtems-cdt-problem-0.jpg" attached to Developer/Eclipse/Plugin</center> <center>No image "org-rtems-cdt-problem-1.jpg" attached to Developer/Eclipse/Plugin</center>

Attachments (6)

Download all attachments as: .zip