Thanks for the fast reply!!
First i forgot to say i'm using Ubuntu 10.04 and Eclipse IDE for C/C++ Developers, Version: Indigo Service Release 2
And your plugin worked perfectly at first try, just tested a blinkled.
I am using boards.txt as an input and I apply the parameters where I think they should be. Maybe I missed some place?
Maybe im not using the pluging correctly, let me explain what i'm doing:
There is the folder: arduino-1.0/hardware/arduino/cores/ where we can add other cores than original arduino, for example i'm using arduino-lite and have some other custom modifications in other cores, so i have these folders:
arduino-1.0/hardware/arduino/cores/arduino
arduino-1.0/hardware/arduino/cores/lite
arduino-1.0/hardware/arduino/cores/fast
...
I added new boards for this cores, for example for using "lite" core with mega1280:
##############################################################
megalite.name=Arduino Mega (ATmega1280) LITE
megalite.upload.protocol=arduino
megalite.upload.maximum_size=126976
megalite.upload.speed=57600
megalite.bootloader.low_fuses=0xFF
megalite.bootloader.high_fuses=0xDA
megalite.bootloader.extended_fuses=0xF5
megalite.bootloader.path=atmega
megalite.bootloader.file=ATmegaBOOT_168_atmega1280.hex
megalite.bootloader.unlock_bits=0x3F
megalite.bootloader.lock_bits=0x0F
megalite.build.mcu=atmega1280
megalite.build.f_cpu=16000000L
megalite.build.core=litemegalite.build.variant=lite
##############################################################
So selecting this board should compile the core library from the sources located at:
arduino-1.0/hardware/arduino/cores/lite
As said in boards.txt:
megalite.build.core=lite
In the Arduino IDE this works ok, but this plugin looks to always build the lib from: arduino-1.0/hardware/arduino/cores/arduino.
I just created a new arduino-1.0 folder and replaced the original arduino core files by the "lite" ones and works properly, so this is not a big problem, but i think the correct behavior is build the proper core lib marked in "board.build.core" field.
The indexer is a ....(sensored)..
You can read more about how to get it to work on my faq page http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.htm. However I found out lately that also adding "cstdio.h" to the "files to index upfront'" -as described in the faq -fixes the Serial problem.
Please let me know if this one works for you.
I will have a look and tell you...
Highlighting arduino functions wil probably not work. I don't see any reason to do so as arduino functions are functions like any other function. There is probably a plugin that will help you to do so.
Well.. it (sometimes) worked for me (i mean highligting function calls).
Did you know that you can always use autocomplete (CTRL + space) on all words (that is C C++ Arduino, libraries and your code to name some).
You can a CTRL click and go to the implementation (also of the arduino code)
And hovering over a function shows you the code as well.
Yes!! this (an others) is the reason i like eclipse.
I also added a few autocompletion for digitalWrite, pinMode an others, for example:
"dwh + ctrl-space" expans to:
digitalWrite( |, HIGH );
"dwl + ctrl-space" expans to:
digitalWrite( |, LOW );