Pages: [1]   Go Down
Author Topic: Arduino libraries for Eclipse  (Read 3273 times)
0 Members and 1 Guest are viewing this topic.
Centurion RSA
Offline Offline
Full Member
***
Karma: 0
Posts: 166
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

After a whole lot of hours spent on trying to sort out how Eclipse and AVR fit together, I finally managed to put together some sort of environment that works for me. I compiled the Arduino Core as well as some of the libraries and put them together in the Eclipse workbench.
I attached a zip file with three Eclipse project directories

AdruinoCores - How to compile the core library, ready to be linked in
ArduinoLibraries - How to compile the libraries ready to be linked in
Template - a Typical project with the Core and some libraries linked in

The project files have all the settings that you need to make the lot work together. You will have to fix the actual paths to suit your environment.
I hope that this will help some other newbies to get started with the Eclipse setup.

* ArduinoLibraries.zip (440.96 KB - downloaded 89 times.)
Logged

Rather people think you to be a fool than you open your mouth and confirm it.

Vancouver, Canada
Offline Offline
Newbie
*
Karma: 1
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Looks good, have done the same with Eclipse as well and AVRStudio 4. Have you had any luck in using any sort of debugging tools with the Eclipse.

http://avr-eclipse.sourceforge.net/wiki/index.php/Debugging

Logged

-=Bryan=-

Centurion RSA
Offline Offline
Full Member
***
Karma: 0
Posts: 166
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Bryan,
No I have not looked at that but it will be my next step. I have an AVRICE so I will be attempting that soon.
I am busy with the AS5 setup. I am not having much luck with include paths at the moment but I am sure there is a very good logical explanation for my troubles. Just have to find it.
Logged

Rather people think you to be a fool than you open your mouth and confirm it.

Centurion RSA
Offline Offline
Full Member
***
Karma: 0
Posts: 166
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It seems that the Avarice program does not want to connect to my avricemkii. If you read the avarice docs it would seem that debugging is rather limited for the Atmega devices. I don't know if it is worth all the effort to try and get it going. I hate it when the instruction says something and you do just that and then the program says can't do that. Makes me mad.
Logged

Rather people think you to be a fool than you open your mouth and confirm it.

Vancouver, Canada
Offline Offline
Newbie
*
Karma: 1
Posts: 20
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That's what I was afraid of,even to get it going seems overly complex.

I never had any luck with AS5, seems it's too buggy, if you have any luck let me know.
Logged

-=Bryan=-

MC
Offline Offline
God Member
*****
Karma: 13
Posts: 917
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I hope that this will help some other newbies to get started with the Eclipse setup.

I can't believe that after a lot of time spent to let my eclipse working , in five minutes with your archive i've make it full working!

Thanks a lot.
Logged

Vi è una spiegazione scientifica a tutto.
La fede è solo quell'anello che si porta al dito dopo il matrimonio.

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I may be missing something, can someone give me a general step by step approach to these files.
What avr, what avr-plugin, etc you guys are using. Thanks in advance.
Logged

Centurion RSA
Offline Offline
Full Member
***
Karma: 0
Posts: 166
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


Have a look at the tutorial on Exclipse on the Adruino playground. It will tell you what you need and then use my sample template project.

http://arduino.cc/forum/index.php/topic,62094.0.html
Logged

Rather people think you to be a fool than you open your mouth and confirm it.

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thank you, I will have a look at it smiley
Logged

Centurion RSA
Offline Offline
Full Member
***
Karma: 0
Posts: 166
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I put the whole lot on this link. Please go download when you worked through the tutorial.

https://github.com/mariusl/Eclipse-for-AVR
Logged

Rather people think you to be a fool than you open your mouth and confirm it.

Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

An alternative approach is to leave Arduino as-is and use this Makefile:

  http://code.google.com/p/arducopter/source/browse/trunk/libraries/AP_Common/Arduino.mk

which knows how to build regular sketches and libraries. If you're working on a larger project where some folks want to keep using the Arduino IDE, this will let you integrate with most IDEs without breaking compatibility.

 = Mike
Logged

Centurion RSA
Offline Offline
Full Member
***
Karma: 0
Posts: 166
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks Mike, it looks great.
Where does one place this makefile, in the sketchbook directory or in the sketch directory itself?
Logged

Rather people think you to be a fool than you open your mouth and confirm it.

Pages: [1]   Go Up
Jump to: