Setting Up Eclipse For Firmware Dev DRAFT

Official FreeEMS vanilla firmware development, the heart and soul of the system!
Locked
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Setting Up Eclipse For Firmware Dev DRAFT

Post by Fred »

Sections:
  • Getting the right eclipse
  • Getting it setup with extras
  • Getting the firmware into it
  • Getting CDT to behave itself
Using eclipse and customising eclipse are left as exercises for the reader.

Fred
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Getting the right eclipse

Post by Fred »

There are many to choose from, get the one "for Java", not classic, not Java EE, not CDT, not PDE, etc.

On linux install it as your user, as crappy a that is, current versions don't work properly installed as root...

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Getting it setup with extras

Post by Fred »

You need the dev tools from http://tools.diyefi.org/ installed and working before this guide will work.

go into software and enable the cdt repo
choose install new software, select CDT

I also add

markdown, ???
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Setting Up Eclipse For Firmware Dev DRAFT

Post by Fred »

Git in eclipse is broken by being oriented heavily toward Java dev. This is a shame as it makes it extra awkward to do the default thing. In future I'll put a guide here. You can do it their way or figure out your own way, whatever you want.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Setting Up Eclipse For Firmware Dev DRAFT

Post by Fred »

CDT will build too much by default with the "all" target, so you need to tweak it.

Right click the project directory and choose "Build Configurations" and then "Manage...":

Image

Then delete the "Debug" build and rename the "Release" build to "Default" and give it a description:

Image

Now right click the project directory and select properties at the bottom:

Image

First un-check "Generate Makefiles automatically", then correct the build directory to "${workspace_loc:/freeems-vanilla/src}":

Image

Then correct the build target by changing it from "all" to "s19":

Image

At this point you should be able to right click the project directory or enter the Project menu and choose "Build Project". In the lower panel is a tab called "Console" which should end in the sequence "**** Build Finished ****", congratulations, you just built the firmware in Eclipse! :-)

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
Locked