Documents/Linux Eclipse

From Nutwiki
Revision as of 08:38, 13 July 2017 by Harald (Talk | contribs) (Created page with "<div id="content"> = Using Eclipse with Nut/OS on Linux = == Requirements == This is work in progress and for ARM target boards only. It is assumed that you already instal...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Using Eclipse with Nut/OS on Linux

Requirements

This is work in progress and for ARM target boards only.

It is assumed that you already installed the GCC Toolchain and Nut/OS.

To start developement with Eclipse set up Eclipse with Zylin's Embedded CDT plugin and import the projects from your enut30e-app directory.

This is how it's done.

Get Eclipse

At www.eclipse.org click on Download Eclipse then choose Eclipse Classic - Linux.

Just unpack eclipse.

If no Java Runtime Environment since 1.5 is istalled get one or to make Eclipse able to run from USB-Stick unpack Java JRE into '[eclipse_root]/jre'.

Get Zylin's Embedded CDT for Eclipse

At www.zylin.com go to Products and then to Zylin Embedded CDT there click on Latest Snapshot and get zylincdt[version].zip and embeddedcdt[version]-linux-gtk.zip.

After download untar zylincdt and embeddedcdt into [eclipse_root] this adds the zylin plugin and the embeddedcdt plugin to Eclipse.

Open Examples into Eclipse

Click under File on Import there select General followed by Existing Projects into Workspace then click next.

At Select root directory enter the location of enut30e-app under Projects select what project you want to import.

If you want to work with copys select Copy projects into workspace. Click finish to be ready for examine the samples.

Building Examples with Eclipse

Notice: arm-elf-gcc has to be on the PATH to work without the necessity of changes of the project properties.

To build the samples either click under Project on Build all to build them all at once or select your favotite project and click under Project on build project.

You will find the binary either under [workspace]/[project] or under [enut30e-app]/[project] depending on the selection of Copy projects into workspace from the import.