Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches

turdusmerula
txs for the update.
I'll add your comment on cancel to the FAQ.
As to your request. Have you tried it. I mean the latest version "Should" support this (the 1.0 compatible one). I haven't tried though. To make it work just change the project preferences->arduino->arduino for the 2 projects (not the libraries) to point to the correct com port.
I have read numerous posts on debugging. as far as I understand it states: pay money or expect very low level support.
Let me know if it works.
Best regards
Jantje

I've updated to your latest 1.1 and tested it again. I got the same behavior than previously, when I select a serial port it is set for all projects not just for one.
I also tried to use a specific programmer configuration (preferences->arduino->AVRDude) for each project with an overrided serial port but the serial port used at the end is the one in preferences->arduino->arduino.
This parameter seems to be at the workspace level even if we can set it at the project level isn't it?

turdusmerula
I checked this in the code and indeed I use the last used upload port and not the upload port set in the project.
I'll fix this.
Best regards
Jantje

All
The comport issue is fixed in 1.1.3
In newly created project there will be a define ARDUINO that is equal to 0023 for version 23 and 100 for version 1.0 the version info is based on the content of the versions.txt file in the lib folder of arduino.
This allows to do things like
#if (ARDUINO >= 100)
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
Best regards
Jantje

Hi, and thanks for the guide..

I have followed the installations steps, and that works fine.
When I try to make a new project with my hardware >> Arduino Mage (AT mega1280) << I get an error messages : Failed to create project xxxxx , Path variable name cannot contain character: (.

After that it is not possibly to compile correct or uploade.
If I try to make a another project with a >> Arduino Uni << Hardware (I don’t have that board) , the project are created without any problems, and I can compile correct ?

What can I do ?

Happy new year.

Per

Hi per
This is indeed an issue.
I'll fix it in the next release but this may take a while.
You can work around the problem by modifying the string "Arduino Mage (AT mega1280)" in the board.txt to "Arduino Mage AT mega1280".
Best regards
Jantje

Super, that works , but only for hit the next wall :cold_sweat:
When I try to download, I get this error: >> avrdude: ser_open(): can't open device "COM17": The system cannot find the file specified. <<
I know that my COM port are COM17, and I am able to download via the “original” IDE
Any ideas ?
/Per

avrdude: ser_open(): can't open device "COM17"

Have you tried using the verbose output from the IDE to see how it formats the name of the com port? There are issues with com port names when the numeric portion is greater than 9. Some sill combination of dots and slashes are needed to make windoze recognize com port names with 2 digit numbers. Bunch of morons in Redmond haven't bother fixing the problem they have caused.

Hi,

On Mac OS X 10.7.2, with Eclipse Indigo Service Release 1 (Build id: 20110916-0149) and Arduino Eclipse plug-in 1.1.3, the following error message pops up every time:

What's wrong?

All
Sorry for the long delay. I have been on a holiday and there was no network access.

Scarlsen
Paul is right. I thought this was an AVRdude issue and as 1.0 contained a new avrdude; I assumed the prefix was no longer needed. Therefore the prefix was removed in 1.1.3. I reintroduced the prefix in 1.1.4. However this is not yet released. You have 2 options

  1. You can create a link to my prerelease update site "http://www.baeyens.it/eclipse/prerelease" and get version 1.1.5 there. I'll release 1.1.6 somewhere next week. (undo this link in eclipse if you do not want to get my test versions :wink: )
  2. Add the prefix to your com port name. Change COM17 to \\.\COM17. You will have to undo this when you get a new version of the plugin.

avenue33
MAC OS is officially not supported in 1.1.3. See the end of the discussion at http://arduino.cc/forum/index.php/topic,70547.45.html.
In short fixed in 1.1.5 prerelease.

Best regards
Jantje

Hi;
Every time i get this error.
Description Resource Path Location Type
Arduino.h: No such file or directory lcdTest.h /lcdTest line 9 C/C++ Problem

What can i do for fix it?

krsnsk
Can you be a bit more precise?
Which os are you using
Which Arduino version are you using
What have you been doing?
Is this project including a library?
Have you already been able to compile and upload?
Have you gone through the faq?

Jantje

Sorry :slight_smile:

Windows 7 x64
Eclipse IDE for C/C++ Developers
Version: Indigo Service Release 1
Build id: 20110916-0149
Arduino 1.0 ide
plugin v1.1.7

when i try to compile i get this error.
i get same error at library and main program.
no this is my first try.

And errors;

krsnsk
First of all: You do not have to compile the arduino library. Eclipse takes care of that. It doesn't matter if you do ant it should compile.
However:
Secondly: You claim that the arduino library doesn't compile and you give me an image that shows a file "liquidcrystal.cpp" which is not part of your project nor part of the arduino library. Where does this file come from?

Are you trying to waist my time?

LiquidCrystal is one of the standard libraries supplied with Arduino v1.0 (and earlier I believe).

Iain

Ian

LiquidCrystal is one of the standard libraries supplied with Arduino v1.0 (and earlier I believe).

You are probably very right, I didn't check as that is not my point.

Let me explain my point in more detail.
As to the first supplied image there are 2 projects. First the standard Arduino library "arduino_duemilnova_w_atme.." project (which as to the icons didn't compile at all). And then the lcdtest project that contains no subfolders (which indicates there are no library in use) and 1 ino file and 1 header.
The arduino library contains a subfolder called "standard" which indicated that this is Arduino 1.0 (This in the pin layout file)
This is how you would expect it after the creation of your first project using arduino 1.0 and without having added a library which is as to "acronym" the case.
On the second image however you see he did import the LiquidCrystal library (you can only see it under path /lcdTest/LiquidCrystal because the project explorer has been cut of )

So I can not explain:
Why I get 2 images one with a library and 1 without the library as if they are the same project without any information.
Why is the project explorer cut off in the second image
Why is the Arduino library not build (It is not that obvious to remove the build link)
Why is arduino.h not found where all other items of arduino are found. (it is common with the indexer but not with the build)

So nothing adds up and I get very little and inconsistent information. That makes me think that the poster who posted only 2 posts may not be somebody in need but someone with a second agenda. That is why I asked "Are you trying to waist my time?"

Best regards
Jantje

PS as to how I know the Arduino Library is not build
The first image clearly shows a build has run (make***). The build "out of the box" starts with building the arduino library.
The arduino library is not build because the arduino library version 1.0 contains 1 warning and there is no warning icon on the image.

sorry but i dont want to waste your time. i try it step by step. Now every thing is okay but only wire library gives error.

slideshow: http://img339.imageshack.us/slideshow/webplayer.php?id=64902364.png

krsnsk
This is much better for a problem analysis. Some description of what you are doing would make it a great input. :slight_smile:

On your wire library. Read the FAQ. It is in general smart to do this before posting.

However from the images you provide I conclude that your Arduino install is corrupted.
The image below shows warnings in print.h. Arduino 1.0 does not generate warnings in print.h. If you look closely you see an error on line 80.
There are only 79 lines in print.h in Arduino 1.0

Best regards
Jantje

Very good job, thanks Jantje!!!

Just a point that could be better:
Each boards.txt entry has an "build.core" field, for example for uno:

uno.build.core=arduino

This allows to add alernative cores (as i do), then it could be great that this plugin takes this in account instead of always use the "arduino" core.

A cuestion:
Do you have highlighting for arduino functions ( for example delay() )??
In other projects sometimes i have it and sometimes i haven't... the indexer looks to work ramdomly well/bad.

Best regards.

arcachofo
Thanks for the nice words.
However I do not understand what you mean with

arcachofo:
Just a point that could be better:
Each boards.txt entry has an "build.core" field, for example for uno:

uno.build.core=arduino

This allows to add alernative cores (as i do), then it could be great that this plugin takes this in account instead of always use the "arduino" core.

I am using boards.txt as an input and I apply the parameters where I think they should be. Maybe I missed some place?

arcachofo:
A cuestion:
Do you have highlighting for arduino functions ( for example delay() )??
In other projects sometimes i have it and sometimes i haven't... the indexer looks to work ramdomly well/bad.

The indexer is a ....(sensored)..
You can read more about how to get it to work on my faq page This page has been moved. 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.
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.
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.

Please let me know about cstdio.h
Best regards
Jantje

PS I'm currently working on a new version with of improved functionality.