Arduino Forum

Development => Other Software Development => Topic started by: Jantje on Nov 20, 2011, 01:18 am

Title: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 20, 2011, 01:18 am
EDIT
version 1.0.10 is now tested on openSUSE
Latest version are tested and running on MAC
Added serial monitor
End EDIT

Hi
There is a free eclipse plugin available that makes development of big Arduino projects easier.  As you only need the Arduino IDE, Eclipe and the plugin this Arduino IDE alternative is completely free and open source.
The plugin suppports
1) Creation of an Arduino sketch
2) Import of an Arduino Library
3) Change the Arduino board
4) Change the com port
5) Upload to the board
6) Real time build
7) User selected build.
8 ) Integrated serial monitor
9) plenty of updated documentation is available at www.baeyens.it/eclipse (http://www.baeyens.it/eclipse)

To use it you only need to install the Arduino IDE;install eclipse, install the plugin and configure the plugin. Detailed instructions are below.
The current version works with cpp files only (no pde out of the box). Below are some simple instructions on how to keep your code Arduino IDE compatible. I use those and I can compile the code between the Arduino IDE and eclipse without changes.

Note that the current version (1.0.8 ) works on windows only. I'm working to support Linux as well.

UPDATE: If you have a space in your Arduino Path or project name the plugin will not work. In general try to avoid spaces in names.

1) install the Arduino IDE
2) install eclipse indigo

2.1) download the code from here http://www.eclipse.org/downloads/ (http://www.eclipse.org/downloads/)
2.2) Unzip the file downloaded from eclipse( I assume c:/indigo)
3) Install the Arduino plugin
3.1) Start eclipse
3.2) run the program c:/indigo/eclipse/eclipse.exe
3.3) give a name to the workspace (I assume you use "Arduino")
3.4) Close the welcome screen
3.5) Select help->install new software
3.6) Enter the information as below (select the newest version of the plugin)
Site: http://www.baeyens.it/eclipse/update site
(http://iloapp.baeyens.it/data/_gallery/public/1/1321529171_resized.png?width=640&height=578)
3.7) restart eclipse (as requested by eclipse)
3.8 ) open the workspace Arduino
4) Configure the plugin
4.1) open the preferences (windows -> preferences)
4.2) open the section Arduino->Arduino
Fill it in like below (using your Arduino IDE location)
(http://iloapp.baeyens.it/data/_gallery//public/1/1321528286_resized.png)
4.3)Following setting in general-> work space is not needed but advised:
Set the auto save before build on to avoid different version between uploaded and visible code.
(http://iloapp.baeyens.it/data/_gallery//public/1/1320528726_resized.png)
4.4) select OK to save the preferences

Creation of a Arduino sketch
Now you can create a new Arduino project with the plugin
Do file -> new -> project
Select the Arduino sketch and then next
(http://iloapp.baeyens.it/data/_gallery//public/1/1320529642_resized.png)

Provide a name for the sketch and press next (note that in the image below the finish is enabled because I already created a sketch)
(http://iloapp.baeyens.it/data/_gallery//public/1/1320529645_resized.png)

Provide the Arduino information and select finish (note that all this information will be stored so you will not need to reenter when you create a new sketch)
(http://iloapp.baeyens.it/data/_gallery//public/1/1320529644_resized.png)

Now the plugin will create 2 projects. one for the Arduino library and one for the sketch. The image below holds more projects but the new ones are highlighted.
(http://iloapp.baeyens.it/data/_gallery//public/1/1320529641_resized.png?width=720&height=540)
In the image above I opened the my sketch.cpp file by double clicking on it.
Pressing the hammer (marked in the image above) will compile the project.
Pressing the AVR button (marked above) will upload the project to your Arduino board.

Changing Arduino target board or com port
To change the board or com port right click on the project and select properties
you get the same dialog box where you can change the board and  com port.
(http://iloapp.baeyens.it/data/_gallery//public/1/1320530328_resized.png)
After you pressed finish you get a new Arduino core project for the mcu if needed.
(http://iloapp.baeyens.it/data/_gallery//public/1/1320530326_resized.png?width=720&height=540)

Importing a library
select file->import
Select the Arduino->Import a arduino library in the current project
(http://iloapp.baeyens.it/data/_gallery//public/1/1321748065_resized.png)
Select the folder you want to import and the project you want to import to and select finish
(http://iloapp.baeyens.it/data/_gallery//public/1/1321748068_resized.png)

Keeping the eclipse project compatible with the IDE
To be able to compile your code directly in the Arduino IDE you need to do something extra at three actions
1) After installation tell Eclipse to process pde like C++ file
2) After creation of a new sketch project tell the compiler to treat pde files like C++ files (-x c++ compiler option) and rename cpp file to pde
3) After inclusion of a library add a include of the library to the pde file.

Below are detailed instructions.
1) After installation tell Eclipse to process pde like C++ file
Windows ->preferences
In the section C/C++ -> file types press new
enter *.pde as filename and C++Source file as type.
2) After creation of a new sketch project tell the compiler to treat pde files like C++ files (-x c++ compiler option) and rename cpp file to pde
right click on the project ant select properties
In the section C/C++ -> settings select the tab tool settings (normally already selected)
In the section AVR C++ compiler change the command line pattern by adding -x c++ before {$INPUTS}
select OK to save the settings.
(http://iloapp.baeyens.it/data/_gallery//public/1/1321747504_resized.png?width=1103&height=540)
right click the .cpp file select rename and change the .cpp to .pde
3) After inclusion of a library add an include reference to the library to the pde file.
in the pde file at the top add a line that looks like
#include <[the imported library].h>
Note that if the library contains examples you will have to move them to another location in the current version of the plugin.

Please feel free to download, test and comment.

Best regards
Jantje



PS: Currently it only supports windows
Title: Re: Windows Eclipse plugin to compile and upload arduino sketches
Post by: nuclearpowered on Nov 21, 2011, 05:31 pm
The software package link is down.  I would like to install this, but it cannot connect!
Title: Re: Windows Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 21, 2011, 09:17 pm
nuclearpowered
I'm happy to see you want to try the plugin. I'm sorry you failed to download the plugin.
I just tried to connect to the site and all works fine for me.
Are you sure the link is down?  The site is run by a professional paid service provider so that should be ok (no adds  :) ).
Are you sure you used eclipse->install new software? (the browser will not find the page)
are you sure you used "http://www.baeyens.it/eclipse/update site" including " site"?

Best regards
Jantje

PS I changed the site so it will serve both "update" and "update site" now.
Title: Re: Windows Eclipse plugin to compile and upload arduino sketches
Post by: pito on Nov 21, 2011, 10:54 pm
Jantje, nice job!
Let me aks you following - I cannot pass point 4.2 of your guide. I get  a red cross with "Folder is not correct" up on the screen where to enter path to Arduino Global Settings (OK inactive even I enter path to my arduino), or, "The currently displayed page contains invalid values" when trying open Avrdude or Paths in Preferences->Arduino.
Any hint?
Thanks, P.
Title: Re: Windows Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 21, 2011, 11:43 pm
pito
The folder to enter is the folder that contains the subfolders : drivers, examples, hardware, java, lib, libraries, reference and tools.
The code checks whether the file "[provided folder]/hardware/Arduino/boards.txt" exists. If that file is not found you will get the message you described with the red cross.
Note on non windows systems this will never work (I tested it). On windows (XP and 7) systems it works.
I hope this helps you out.
Best regards
Jantje
Title: Re: Windows Eclipse plugin to compile and upload arduino sketches
Post by: Klaro00 on Nov 22, 2011, 07:50 pm
Hi Jantje,

everything is working fine so far. Thanks for your fast answers.

Another question: How would I add "Serial" support (talking to my board via predefined serial pins, e.g. for debugging)?

Hardware connection could be simple: At some other place I read that I could connect to my board by opening a SSH session to the appropriate COM port - this sounds plausible, didn't try it yet.

But how about writing the software: How could I use the methods coming along with the "Serial" lib? When using the Arduino IDE, I can simply reference "Serial" without #including anything - seems to be built-in into the Arduino IDE. If I add a line like "Serial.begin(9600);" in Eclipse the compiler complains about not knowing "Serial" - pretty correct from the compiler's view. But do you - or someone else - know what to do to get the standard "Serial" functions running? I looked through all the directories of the Arduino IDE, could not find any .h/.cpp file containing the "Serial" library...

// Klaus
Title: Re: Windows Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 22, 2011, 08:42 pm
Klaus
Not sure why you can't use Serial.  All this works fine for me.
I assume you are referring to the console output that tells you that serial doesn't work. I ask because the eclipse indexer sometimes behaves weird and sees errors that are not errors.
As you already had plenty of problems it is -in my experience- best to just start from scratch with a new eclipse installation.
Best regards
Jantje
Title: Re: Windows Eclipse plugin to compile and upload arduino sketches
Post by: pito on Nov 22, 2011, 10:41 pm
Jantje, thanks - I had the name of the folder .. /Arduino-extras/boards.. so this was the issue. Now I can compile, however eclipse shows:
Symbol 'Serial' could not be resolved
Method 'print' could not be resolved
Method 'println' could not be resolved
It compiles without error and I get hex files (hex not shown in Project Explorer).

But there is an issue which would be nice to fix - related to pins_arduino.c.
I am using (and maybe others as well) a special way how "pins_arduino.c" defines a set of various boards. To make the story short:
1. in folder ..hardware\Arduino\cores\arduino there is "pins_arduino.c" which contains ie:
...
#if defined(__AVR_ATmega128__)
   //*   pin defs for SOC-Amber128 web serverboard
   #include   "pins_amber128.cxx"

#elif defined(__AVR_ATtiny45__ )
   //*   pin defs for Avr attin45
   #include   "pins_attiny45.cxx"
...
2. in that folder there is a set of .cxx-es with respective boards pins definitions.
3. your setup attempts to compile everything with .cxx,  .c in that folder which creates errors, of course.
4. so I had to remove all .cxx-es and create a single "pins_arduion.c" for the board of choice in order to compile the stuff properly.
p.
Title: Re: Windows Eclipse plugin to compile and upload arduino sketches
Post by: Klaro00 on Nov 23, 2011, 01:41 pm
Adding the line

    extern HardwareSerial Serial;

to a header file will "fix" the errors shown by eclipse regarding the "Serial" reference.

// Klaus
Title: Re: Windows Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 23, 2011, 08:08 pm
Klaus
extern HardwareSerial Serial; will not fix the issue as the code compiles. (it should be defined as I include WProgram.h. It is an eclipse indexer problem.

Pito
Please see the freshly released web pages with more documentation. on http://www.baeyens.it/eclipse/ (http://www.baeyens.it/eclipse/) There is a faq that should answer your questions.

Best regards
Jantje

Eclipse tells me there are bugs in my code but it compiles ok.
Eclipse compiles you code in 2 ways. Once when you request a build (when you press on the hammer) and ones when you change code (save a file). The compiler is responsible for the build and the indexer is responsible for the continuous build.
The bugs (the red animals in the code) you see in the code can be found by any of the 2. The indexer behaves weird and sometimes doesn't find declarations that it knows. In that case you have the bug without a bug (in other words the code compiles ok).
Setting the option windows->preferences->C/C++->indexer->index unused headers seems to have fixed the issue on my system.
Title: Re: Windows Eclipse plugin to compile and upload arduino sketches
Post by: pito on Nov 23, 2011, 08:26 pm
.. so why you compile *.cxx files?
:)
Title: Re: Windows Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 23, 2011, 10:29 pm
Pito
Yes indeed the *.cxx question is not answered directly in the FAQ. It is indirectly answered in "I have modified my Arduino setup and... "
But to give you some background:
I don't compile *.cxx files  XD
My plugin uses avr eclipse that uses cdt, win avr and GNU compiler. CDT uses eclipse
It is cdt (which is a C/C++ plugin for eclipse) that compiles *.cxx
If you have read the "How to keep the IDE and plugin compatible" you must have seen how to add *.pde file as to be handled by the compiler.
Unfortunately you can not remove *.cxx files as they are supported by default.
In my humble opinion it is better to avoid mixing files of different sources. Having the *.cxx somewhere else may fix your problem.

Best regards
Jantje
Title: Re: Windows Eclipse plugin to compile and upload arduino sketches
Post by: turdusmerula on Nov 28, 2011, 09:54 pm
Seems a really great work !! but update site is broken  :(

Is there a lot of work to do a linux port?
Title: Re: Windows Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 30, 2011, 11:48 pm
All
The plugin (version 1.0.10) -now available on the update site- also works under linux (only tested on openSUSE)
Are there candidates to test on other Linuxes?

I see in my site log that more than 100 downloads have already taken place. To those people: Please give feedback.

I prefer it on the forum but you can also send your input to eclipse@baeyens.it

Version 1.0.10 also


Best regards
Jantje
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: MonkeyKnight on Dec 02, 2011, 04:48 am
First off, I want to say - stellar job man! I am digging this! I have been trying to get Eclipse working for Arduino on and off for a while now.


I am game to be a tester for OS X.

Thus far, all is well. All but:

Code: [Select]


**** Build of configuration Release for project Arduino_test_002 ****

make all
Building file: ../Arduino_test_002.cpp
Invoking: AVR C++ Compiler
avr-g++ -I"/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino" -I"/Users/nick/Documents/Home_Workspace/Arduino_test_002" -D__IN_ECLIPSE__=1 -DARDUINO=22 -Wall -Os -ffunction-sections -fdata-sections -fno-exceptions -g -mmcu=atmega328p -DF_CPU=16000000UL -MMD -MP -MF"Arduino_test_002.d" -MT"Arduino_test_002.d" -c -o "Arduino_test_002.o" "../Arduino_test_002.cpp"
/bin/sh: avr-g++: command not found
make: *** [Arduino_test_002.o] Error 127

**** Build Finished ****


avr-g++ is not being found. I have no idea why though. avr-g++ is readily available on my $PATH.

Even more confusing, is when I have an AVR project, it sees and uses avr-gcc just fine.

Anyone have any clue to this?

Thanks in advance.
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Dec 02, 2011, 11:58 am
Monkeyknight
Thanks for trying this out on OS X. I don't own an OS X operating system so I can only help you with theory and experience from the port to OpenSuse.
The plugin code uses a full path to locate the avr-g++. For windows and Linux this means that adding avr-g++ to the path doesn't help. I guess this will be the same on  OS X. In windows avr-g++ comes packaged with the IDE. In Linux it is not. Is avr-g++ delivered as part of the IDE in OS X?
Because avr-g++ is delivered differently per OS a part of the porting includes having setting different paths.
You can however set the paths yourself. As an experienced eclipse user that should be a piece of cake.

To set the paths yourself, as a work around, you do as follows:
Locate avr-g++, GNU make, the AVR header files and AVR dude on your system. (You don't need atmel part description files)
open eclipse and go to windows->preferences->arduino->paths. You should see something like this:
(http://iloapp.baeyens.it/data/_gallery//public/1/1320528725_resized.png)
In your situation there will be errors. Change the paths.
Try again and hope there are no other incompatibilities.

Important Notes
1) you will have to fix all the errors before you can save the preferences.
2) Do not open any other tabs in the preferences as this may invalidate the changes you do.
3) Best is to do the change, save, reopen the preferences, validate whether the change is done, if ok do cancel else redo.

If it works it would be nice if you told me what you had to change. This way I can modify the plugin to set these values correct.
Even better was if you changed the plugin yourself (with my help off-course).

Lots of good luck
Jantje
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: MonkeyKnight on Dec 02, 2011, 04:15 pm
HA! Sweet!

All is great, except for some includes now!



Code: [Select]

**** Build of configuration Release for project Arduino_test_002 ****

make all
Building file: ../Arduino_test_002.cpp
Invoking: AVR C++ Compiler
avr-g++ -I"/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino" -I"/Users/nick/Documents/Home_Workspace/Arduino_test_002" -D__IN_ECLIPSE__=1 -DARDUINO=22 -Wall -Os -ffunction-sections -fdata-sections -fno-exceptions -g -mmcu=atmega328p -DF_CPU=16000000UL -MMD -MP -MF"Arduino_test_002.d" -MT"Arduino_test_002.d" -c -o "Arduino_test_002.o" "../Arduino_test_002.cpp"
In file included from ../Arduino_test_002.cpp:2:
../Arduino_test_002.h:9:22: error: WProgram.h: No such file or directory
make: *** [Arduino_test_002.o] Error 1

**** Build Finished ****



But this should be pretty simple.


I have some years of Eclipse experience, but to be honest most of the times I have used it I have not had to edit many paths. So this was not quite as obvious of an edit as it would have been to some.
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: MonkeyKnight on Dec 02, 2011, 05:00 pm


The library was not building, because of some undefined refrences.

I had to add "#include <stdint.h>" to Arduino.h. I am not sure why, and in fact I am sure that I should not have to edit any of the Arduino core files.

Also I had to edit

Code: [Select]
#include "pins_arduino.h"

to

Code: [Select]
#include <pins_arduino.h>



Here are a few other edits:
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: MonkeyKnight on Dec 02, 2011, 05:27 pm
I am not sure why, but the plugin will not take my edits for updating the avrdude path.

I edit it to point to:  /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin

But it resets it to:  /Applications/Arduino.app/Contents/Resources/Java/hardware/tools
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Dec 02, 2011, 06:13 pm
Hi Monkeyknight
I see you are using Arduino 1.
The plugin is not compatible with Arduino 1. See my post on this topic in http://arduino.cc/forum/index.php/topic,81082.0.html (http://arduino.cc/forum/index.php/topic,81082.0.html)
You should not have to edit the Arduino files. If the IDE works under OS X with these files there is no reason an eclipse plugin should have to change these files.
The only change you made that I can not explain is "I had to add "#include <stdint.h>" to Arduino.h"

On behalf of "I am not sure why, but the plugin will not take my edits for updating the avrdude path."
Have you followed the "important notes" in my previous post?

I see you are changing things in the project settings. Normally this is not needed. If you want to change it anyway it is better to change them in project properties-> C++- general > paths and symbols. Information is stored at several locations and you may undo your changes without knowing.

I'm wondering what you provided as input to the preference screen below.
(http://iloapp.baeyens.it/data/_gallery//public/1/1321528286_resized.png)
Given your input it should work if you provide "/Application/Arduino.app/Contents/Resources/Java"
Can you try to change to this settings saave the preferences reopen the preferences and take a image from the avr path settings
(http://iloapp.baeyens.it/data/_gallery//public/1/1320528725_resized.png)
Delete all the project (or even the workspace) selecting delete content on disk before you do a new test.
As far as I see it should work.
Best regards
Jantje
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: MonkeyKnight on Dec 03, 2011, 04:45 am
I just did an uninstall of Eclipse and deleted all my workbenches, and reinstalled on my Mac Mini. Life is good! Now I just have to do it to my Mac Book Pro's.

This is just killer! Perfect. After a bit, I think that I am going to look into porting over to the IDE version 1.0 though. It is kind of a downer that I have to use an old version of the Arduino IDE, but I tell ya what - It's still flippin' awesome!

Many thanks to you! May your code always compile the first time.

Thanks,
Nicholas
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: turdusmerula on Dec 03, 2011, 01:29 pm
I'm testing your plugin un my linux (ubuntu 11) with an arduino Nano.
I'm having some linking problems with the arduino_atmega328p autogenerated project:
  'init' was not declared in this scope   main.cxx   /arduino_atmega328p/arduino   line 3   C/C++ Problem
  'loop' was not declared in this scope   main.cxx   /arduino_atmega328p/arduino   line 8   C/C++ Problem
  'setup' was not declared in this scope   main.cxx   /arduino_atmega328p/arduino   line 5   C/C++ Problem
  Symbol 'DDRB' could not be resolved   pins_arduino.c   /arduino_atmega328p/arduino   line 361   Semantic Error
  Symbol 'DDRC' could not be resolved   pins_arduino.c   /arduino_atmega328p/arduino   line 362   Semantic Error
  Symbol 'DDRD' could not be resolved   pins_arduino.c   /arduino_atmega328p/arduino   line 363   Semantic Error
  ...

Am I missing something?
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Dec 03, 2011, 11:07 pm
Nicholas
Are you saying the plugin work fine on OSX with Arduino IDE 0023? That would be great.

turdusmerula
The init, loop and setup sound unknown to me.
Does you code compile? if so please read the section "Eclipse tells me there are bugs in my code but it compiles ok." in the faq at http://www.baeyens.it/eclipse/Arduino%20eclipse%20plugin%20FAQ.htm (http://www.baeyens.it/eclipse/Arduino%20eclipse%20plugin%20FAQ.htm)
How do you get to main.cxx? I have main.cpp?

About the errors in pins_arduino.h see "There are errors and warnings in the Arduino library." in the same FAQ

Note that in 1.0 these errors have been fixed  :D

Keep me posted
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: MonkeyKnight on Dec 04, 2011, 05:45 am
I am not positive which version it is. I didn't take a look. I will next time I boot it up though.

Thanks again!
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: turdusmerula on Dec 04, 2011, 04:37 pm
Okay solved my problems. I just have to tell eclipse to exclude the main.cxx file from build and it works !

On ubuntu we have the 0022 installed and your plugins works, really great job thanks a lot  :)

One remaining question, where can I find on eclipse the output logs emitted by the Serial.print() command? thought I'd find it in the Console window but I failed.
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Dec 05, 2011, 10:50 am
turdusmerula
You need a serial communication program with the eclipse plugin. I use the serial monitor from the arduino IDE.
I'll make a todo to add this to the FAQ.
Best regards
Jantje
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: turdusmerula on Dec 07, 2011, 10:10 pm

You need a serial communication program with the eclipse plugin. I use the serial monitor from the arduino IDE.


Thats what I was doing ;)
I use the cat command, it works far better than the arduino IDE in a good console emulator in Linux
Code: [Select]
cat /dev/ttyUSB0 Just make sure that the bitrate selected in eclipse is the same than the one given in the Serial.begin().
Note that the cat must be killed before trying an new burn of the arduino.
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Dec 08, 2011, 11:03 pm
turdusmerula

Txs for the linux tip on to use cat.
I'm still working on the 1.0 compatibility.
Best regards
Jantje
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Dec 23, 2011, 01:30 pm
All
1.0 compatibility is fixed.
And I wanted this thread back on top  8)
Best regards
Jantje
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: turdusmerula on Dec 23, 2011, 02:00 pm
Hello Jantje. I now only use your plugin as primary tool for my projects, it is pretty stable and very usefull :)

One thing i noticed, do not make a cancel during a burn of the arduino even if the burn is not working because the serial port remains locked (hard disconnect of the arduino seems to be enough to solve this).

And one request: would it be hard to offer the possibility to choose a different serial port for different project? for exemple to have a TX arduino project on serial 1 and RX arduino project on serial 2.

Do you know a plugin or third party tool I could use to remote debug on the arduino and do step by step?
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Dec 23, 2011, 03:18 pm
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
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: turdusmerula on Dec 24, 2011, 01:53 am
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?
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Dec 26, 2011, 04:05 pm
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
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Dec 26, 2011, 06:40 pm
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
Title: Cannot create project to: Arduino Mage (AT mega1280)
Post by: scarlsen on Dec 31, 2011, 04:30 pm
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

Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jan 02, 2012, 11:24 am
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
Title: Cant download
Post by: scarlsen on Jan 03, 2012, 09:41 pm
Super, that works , but only for hit the next wall  :smiley-roll-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
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: PaulS on Jan 04, 2012, 01:20 pm
Quote
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.
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: avenue33 on Jan 07, 2012, 11:59 pm
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:

(https://lh6.googleusercontent.com/-S0yH6J2iUQ0/TwjOCFCxICI/AAAAAAAAI1c/4mUhcWXYLM4/s800/error.png)

What's wrong?

Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jan 08, 2012, 05:13 pm
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 ;-) )
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 (http://arduino.cc/forum/index.php/topic,70547.45.html).
In short fixed in 1.1.5 prerelease.

Best regards
Jantje
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: krsnsk on Jan 20, 2012, 05:27 pm
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?
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jan 20, 2012, 07:15 pm
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
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: krsnsk on Jan 20, 2012, 08:00 pm
Sorry :)

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;
(http://img39.imageshack.us/img39/452/123ho.th.png) (http://img39.imageshack.us/i/123ho.png/)
(http://img845.imageshack.us/img845/3487/lcderror.th.png) (http://img845.imageshack.us/i/lcderror.png/)
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jan 20, 2012, 09:36 pm
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?
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: sixeyes on Jan 20, 2012, 09:38 pm
LiquidCrystal is one of the standard libraries supplied with Arduino v1.0 (and earlier I believe).

Iain
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jan 20, 2012, 10:23 pm
Ian
Quote
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.

Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: krsnsk on Jan 21, 2012, 11:21 am
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

(http://img339.imageshack.us/img339/8379/64902364.th.png) (http://img339.imageshack.us/i/64902364.png/)(http://img809.imageshack.us/img809/54/97095397.th.png) (http://img809.imageshack.us/i/97095397.png/)(http://img35.imageshack.us/img35/2044/13217347.th.png) (http://img35.imageshack.us/i/13217347.png/)(http://img15.imageshack.us/img15/5302/99217402.th.png) (http://img15.imageshack.us/i/99217402.png/)(http://img84.imageshack.us/img84/9742/55948709.th.png) (http://img84.imageshack.us/i/55948709.png/)(http://img404.imageshack.us/img404/9684/47472958.th.png) (http://img404.imageshack.us/i/47472958.png/)(http://img267.imageshack.us/img267/8196/27376768.th.png) (http://img267.imageshack.us/i/27376768.png/)(http://img195.imageshack.us/img195/4229/88444513.th.png) (http://img195.imageshack.us/i/88444513.png/)(http://img837.imageshack.us/img837/5586/95608160.th.png) (http://img837.imageshack.us/i/95608160.png/)(http://img37.imageshack.us/img37/8174/84289002.th.png) (http://img37.imageshack.us/i/84289002.png/)(http://img837.imageshack.us/img837/4921/15577617.th.png) (http://img837.imageshack.us/i/15577617.png/)(http://img807.imageshack.us/img807/8536/71560049.th.png) (http://img807.imageshack.us/i/71560049.png/)(http://img718.imageshack.us/img718/6630/73719668.th.png) (http://img718.imageshack.us/i/73719668.png/)(http://img18.imageshack.us/img18/7238/36378904.th.png) (http://img18.imageshack.us/i/36378904.png/)(http://img210.imageshack.us/img210/2995/71114031.th.png) (http://img210.imageshack.us/i/71114031.png/)(http://img824.imageshack.us/img824/5919/37070535.th.png) (http://img824.imageshack.us/i/37070535.png/)(http://img265.imageshack.us/img265/8784/69171086.th.png) (http://img265.imageshack.us/i/69171086.png/)(http://img214.imageshack.us/img214/2528/16980009.th.png) (http://img214.imageshack.us/i/16980009.png/)(http://img714.imageshack.us/img714/3315/71650237.th.png) (http://img714.imageshack.us/i/71650237.png/)(http://img535.imageshack.us/img535/6951/40510241.th.png) (http://img535.imageshack.us/i/40510241.png/)(http://img692.imageshack.us/img692/4666/85579666.th.png) (http://img692.imageshack.us/i/85579666.png/)(http://img853.imageshack.us/img853/4953/53585657.th.png) (http://img853.imageshack.us/i/53585657.png/)(http://img687.imageshack.us/img687/5183/82767077.th.png) (http://img687.imageshack.us/i/82767077.png/)(http://img140.imageshack.us/img140/1474/71735506.th.png) (http://img140.imageshack.us/i/71735506.png/)(http://img822.imageshack.us/img822/981/94793894.th.png) (http://img822.imageshack.us/i/94793894.png/)
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jan 21, 2012, 12:43 pm
krsnsk
This is much better for a problem analysis. Some description of what you are doing would make it a great input. :)

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
(http://img339.imageshack.us/slideshow/webplayer.php?id=64902364.png)

Best regards
Jantje
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: arcachofo on May 03, 2012, 10:25 pm
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.
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on May 03, 2012, 10:54 pm
arcachofo
Thanks for the nice words.
However I do not understand what you mean with


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?


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 http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.htm (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.
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.
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: arcachofo on May 04, 2012, 12:55 am
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.

Quote

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=lite
megalite.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.


Quote
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...

Quote
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).


Quote
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 );
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on May 04, 2012, 10:40 pm

arduino-1.0/hardware/arduino/cores/arduino
arduino-1.0/hardware/arduino/cores/lite
arduino-1.0/hardware/arduino/cores/fast
...


I only have "arduino-1.0/hardware/arduino/cores/arduino" how do you get these other folders? What is the use of those?

If I understand it correctly you want me to use the value defined in the board.txt for var megalite.build.core as the subfolder in /hardware/arduino/cores/.
This should not be a real problem but it is currently "hardcoded" as arduino.
I need a setup however to test this and therefore I would like some more info about this as I like knowing what I do.
Best regards
Jantje
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: arcachofo on May 05, 2012, 01:20 am
Quote
I only have "arduino-1.0/hardware/arduino/cores/arduino" how do you get these other folders? What is the use of those?


Yes, arduino comes just with one "core", but is possible to add other cores, i'm using arduino-lite, that is an alternative to original arduino ( more info: http://www.robopeak.net/blog/?p=131). Then i added arduino-1.0/hardware/arduino/cores/lite folder that contains arduino-lite.

arduino-1.0/hardware/arduino/cores/fast  contains  a custom core based on arduino and lite, that is: my own variant.

So is possible add new cores and use it, that's the reason to the "board.build.core" entry in boards.txt : the user can choose wich core should be build for that board. And that is the reason to the folder "cores".

That is the way that arduino IDE works, and is a very useful feature, so you can use existing alternatives or create/customize your own variants.

Quote
If I understand it correctly you want me to use the value defined in the board.txt for var megalite.build.core as the subfolder in /hardware/arduino/cores/.

Yes, that is the original use of that entry, if you want your plugin to work like Arduino IDE, this is the way.


Quote
I need a setup however to test this and therefore I would like some more info about this as I like knowing what I do.

Of course, to do a fast test you can copy arduino-1.0/hardware/arduino/cores/arduino to (for example) arduino-1.0/hardware/arduino/cores/test, then insert some sintax error for example in: arduino-1.0/hardware/arduino/cores/test/Arduino.h, then create a new board in boards.txt that uses "test" core, for example (based on mega1280):

##############################################################

testboard.name=TEST BOARD

testboard.upload.protocol=arduino
testboard.upload.maximum_size=126976
testboard.upload.speed=57600

testboard.bootloader.low_fuses=0xFF
testboard.bootloader.high_fuses=0xDA
testboard.bootloader.extended_fuses=0xF5
testboard.bootloader.path=atmega
testboard.bootloader.file=ATmegaBOOT_168_atmega1280.hex
testboard.bootloader.unlock_bits=0x3F
testboard.bootloader.lock_bits=0x0F

testboard.build.mcu=atmega1280
testboard.build.f_cpu=16000000L
testboard.build.core=test
testboard.build.variant=mega

##############################################################

Compiling some sketch for board "Arduino Mega (ATmega1280)"   (in Arduino IDE)  should compile ok (if no errors in sketch).
Compiling same sketch for the board "TEST BOARD"  (in Arduino IDE) should get the error you introduced in cores/test/Arduino.h .

Anyway is your choice evaluate if this will be useful for someone else than me, even when the original arduino IDE works this way.
I could also do the necessary changes to the plugin if you give me a hand.

Thanks for your atention and have good day.
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: arcachofo on May 05, 2012, 05:45 am
About indexer... still messed up with this issue, adding Arduino.h to "files to index up-front" solved some false bug icons, but Arduino.h include didn't show any error...  ??
Also added cstdio.h, but not sure if this is doing something, i can't reproduce errors, looks just random.
Sometimes right-click project and index-Update_with_modified_files solve errors.

About the ghost highlighting, an example:
Here the delay() is not highlighted, but the glcd functions are:

(http://sites.google.com/site/variabledefinitions/allfiles/fallo_board0.png)
I did this screenshot bcos i had the n_5110_lit project configured for "Metaboard LITE" board, but in the includes i had the atmega include from previous project, not sure if a plugin error or what, when i double-check this i'll tell you.


Here, i deleted the core lib project (testing about weird includes) and sudenly had delay() highlighted.. ??
(http://sites.google.com/site/variabledefinitions/allfiles/highlighting0.png)
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: arcachofo on May 06, 2012, 03:09 am
For serial terminal in eclipse i'm using this plugin:

http://download.eclipse.org/releases/indigo/
    Mobile and Device Developement
        Target management terminal

Adding view at botom panel: Window-show_view-Other-terminal

It can send(single typing or lines) /receive text , configure port/baud, open several connections...

Perhaps it can be useful for somebody.

Regards.
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on May 07, 2012, 08:03 pm
I'm currently beta testing my own Serial monitor.
I'll look into using the value defined in the board.txt for var megalite.build.core as the subfolder in /hardware/arduino/cores/.
But don't expect it soon as my robot needs so much time.
Best regards
Jantje
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: arcachofo on May 07, 2012, 10:20 pm
Quote
I'll look into using the value defined in the board.txt for var megalite.build.core as the subfolder in /hardware/arduino/cores/.
But don't expect it soon as my robot needs so much time.

Don't worry too much about it, now i have a complete arduino instalation for each core and just change path in preferences-Arduino, so i have it working and looks that this is not very useful for most users.

Have tested the plugin with several small projects and it works very well.


Best regards.
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on May 07, 2012, 10:39 pm

[Don't worry too much about it, now i have a complete arduino instalation for each core and just change path in preferences-Arduino, so i have it working and looks that this is not very useful for most users.

Given CDT's behavior with changing this stuff I get even more nervous.
A better solution is as follows:
Modify the board file (as you probably did)
Create a project with your "TEST BOARD".
Go into the "TEST BOARD" project delete the core folder (you first have to right click the arduino folder -> resource configurations->exclude form build because CDT .... -see my fact for more details-)
and then use the import wizard to import the "test" folder under /hardware/arduino/cores/ in your "TEST BOARD" project.
This is exactly the same as the fix will do in the future.
Best regards
Jantje
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: arcachofo on May 09, 2012, 12:02 am
Quote
A better solution is as follows:
Modify the board file (as you probably did)
Create a project with your "TEST BOARD".
Go into the "TEST BOARD" project delete the core folder (you first have to right click the arduino folder -> resource configurations->exclude form build because CDT .... -see my fact for more details-)
and then use the import wizard to import the "test" folder under /hardware/arduino/cores/ in your "TEST BOARD" project.
This is exactly the same as the fix will do in the future.


Yes.. good solution. Thanks.
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: And1G on May 09, 2012, 11:01 pm
Hello,

I'm just wondering if it's possible to use the AVR Dragon with you plugin. I have not found an option but is it somehow possible to use the Dragon as an ISP?
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on May 10, 2012, 12:11 pm
And1G
My plugin is based on the AVR plugin.
It basically puts a layer on top of the AVR plugin to make life easy for arduino people (preconfigure the whole setup, deliver a empty sketch, add import a library, reset the device before upload, in the new to come version a serial monitor).
If you use the AVR plugin directly (via my plugin or by instaling the native product) you can program the dragon.
See AVR plugin for more info http://avr-eclipse.sourceforge.net/wiki/index.php/The_AVR_Eclipse_Plugin (http://avr-eclipse.sourceforge.net/wiki/index.php/The_AVR_Eclipse_Plugin)

Note that I forked the code so there are differences between my delivered AVR plugin and the original version.

Best regards
Jantje
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: And1G on May 15, 2012, 09:07 am
Thanks, I have now managed to use the Dragon and it is working.
But is it possible to create a standard AVR proje t with your plugin like in the normal AVR Eclipse? For some small Projects, Arduino is just bloat but I'd really like to stick with your plugin as the Arduino integration is a really nice feature...
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on May 15, 2012, 10:57 pm
And1G

Thanks, I have now managed to use the Dragon and it is working.

Nice to hear it.


But is it possible to create a standard AVR proje t with your plugin like in the normal AVR Eclipse? For some small Projects, Arduino is just bloat but I'd really like to stick with your plugin as the Arduino integration is a really nice feature...

It probably is but it is not supported functionality

Best regards
Jantje
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 11, 2012, 01:44 am
Hi
I released now Version 1.2.2 of the Arduino eclipse plugin
It has 3 new features.
1) The plugin contains a serial monitor. Currently the only documentation I made on the serial monitor is this video http://eclipse.baeyens.it/serial_demo.wmv (http://eclipse.baeyens.it/serial_demo.wmv)
2) You can specify a location for your "personal libraries"
3) The plugin now allows for multiple libraries to be added at once. It lists the personal and the Arduino Libraries in a multiple select list.
The old import still exists but it is better to use the new import.

Please tell me what you think of the new features.
If you are not running on windows 7 tell me whether it works or not.

Best regards
Janje

PS All code has been released to github and is fully open.
PPS The video didn't quite work all the time as planned. I kept it this way not because I'm lazy but because this way you can learn from my mistakes  8)
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: PeterO on Jun 11, 2012, 02:41 pm
I look forward to trying this out at home tonight.  I watched the video, and it looks very useful :-)
PeterO
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: ghps on Jun 12, 2012, 05:53 pm

Hi
I released now Version 1.2.2 of the Arduino eclipse plugin


Anyone who ever tried to setup Eclipse on his own (or with the help of various online descriptions) will see how great this plugin is. It reduces the (in most cases fruitless) work of hours to a 5-minute-task with a few clicks. After using it for a few weeks now the plugin has become indispensable for me and I can say that it does the job without any flaws. Libs, different boards, git? No problem! And even serial monitor now...

Two aspects, however, are missing on the projects main page:
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 12, 2012, 10:05 pm

Anyone who ever tried to setup Eclipse on his own (or with the help of various online descriptions) will see how great this plugin is. It reduces the (in most cases fruitless) work of hours to a 5-minute-task with a few clicks. After using it for a few weeks now the plugin has become indispensable for me and I can say that it does the job without any flaws. Libs, different boards, git? No problem! And even serial monitor now...

Thanks for the appreciation


Two aspects, however, are missing on the projects main page:


  • Your paypal account.


  • A hint how to easily update from previous versions.



ROFL
I've been considering adding a "buy me a beer button" which would mean a paypal donation. I've been reading about it and spent to much time on it. So I didn't do it. Maybe one day. Thanks for bringing this up  :D
Upgrading from a previous version should be easy. Use the help->check for updates.
After the update has run check the preferences and change them if needed.
Greetings from Belgium
Jantje
Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: mrburns42 on Jun 19, 2012, 08:32 pm
OK,  I am a confused noobie.   I downloaded Eclipse Indigo and installed the plug-in.   I am using Arduino 022.  I created a little test project just like the web pages recommend.   When I try to compile, I get the "method begin could not be resolved"   Some folks have recommended that "extern HardwareSerial Serial;"  must be added to the project's header file.   Other people said the root cause is the plugin or software is not installed correctly.   I rechecked the setup steps and found nothing wrong with my install or configuration.  I tried adding the above extern and it does remove the errors.  A couple of quirks about my system is that I installed everything on an external USB HD.  The system also has other versions of WINAVR installed in the C drive.  The Arduino IDE does run fine though in this setup.

Question:   Should I just include the extern?  Or am I just putting a bandage on a festering wound? 

Thanks.

Title: Re: Windows/Linux Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 19, 2012, 08:40 pm
You probably do something wrong.
Look at this movie http://eclipse.baeyens.it/serial_demo.wmv (http://eclipse.baeyens.it/serial_demo.wmv)
In this movie I create a project and compile it.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: mrburns42 on Jun 21, 2012, 05:13 am
Thank you very much, Jantje.   I followed the steps in the movie and it compiles without "bugs"  now.  I was missing the part about adding the headers to the Indexer list. 

For all other noobies, I highly recommend watching the movie.  It will quickly give you a good tour of working with the Arduino in Eclipse. 

Thanks again.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: mrburns42 on Jun 21, 2012, 08:20 pm
FYI,  I seem to be having a problem with the version 1.2.2 of the Plug-In.    That version seems to work for me on Arduino 1.0.  However, I have some stuff on Arduino 022 that I want to use.   When I have 1.2.2 loaded and I try to create a new Project under Arduino 022, I get the following error message. 

"Failed to create arduino core project Arduino_Uno
'CoreArduinoPath/arduino' is not a valid location. The location is relative to undefined workspace path variable 'CoreArduinoPath'. "

If I revert to 1.2.0 of the Plugin, the I can create a new Project in Arduino 022 without an error.   If I upgrade to 1.2.2 Plugin, this project still runs fine.   In 1.2.2,  I can create new Projects without errors as long as I target a device that the Core project already exists on.  That is version 1.2.0 Plugin already created the core files directory in the WorkSpace.   The 1.2.2 problem only occurs for me when I either start a new WorkSpace, or I target a different device that I had not previously used. 
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 21, 2012, 09:06 pm
I'll run some tests
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 21, 2012, 09:38 pm
Hi
I cant reproduce the problem, but I think I know what is going on.
I assume you have a workspace and you change the Arduino location in the preferences between Arduino 1.0.1 and Arduino 22.
If so: This is not at all supported!! The more I think about it the more I feel it cannot be supported at all.
If you want to have Arduino 022 and Arduino 1.0.1 (or any other Arduino IDE version) projects at the same time you need to create multiple workspaces.
In other words. Once you have filled in the Arduino version in the preferences you should not change it anymore.
If this is not your problem please describe what you do to reproduce the problem.
best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: brownerthanu on Jun 21, 2012, 11:34 pm
I had that same error and for me it occurred because I didn't specify the Private Library Path. After I set the path to any old folder and deleted the auto-created Arduino_Uno project (I guess it's called the core project?) it worked for me.

I have a different problem that relates the serial monitor. I'm working with the current version of Eclipse CDT and 1.2.2 Arduino plugin on OS X Lion. For me there is no Arduino Folder under Window > Show View > Other.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 22, 2012, 12:36 am
brownerthanu
Not having a Arduino folder in the dialog box that pops up after you select windows->Show View-> other  when you have eclipse plugin 1.2.2 is at least weird.
Have you watched the movie? http://eclipse.baeyens.it/serial_demo.wmv (http://eclipse.baeyens.it/serial_demo.wmv)
Can you make an image of what you do see?
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: mrburns42 on Jun 22, 2012, 04:45 am
Hi Jantje,

I am using separate WorkSpaces for Arduino 1.0 and Arduino 022.   After setting up the two WorkSpaces, I do not change the Preferences of where the Arduino software is located. 

brownerthanu is correct in that setting the Personal Library seems to resolve the issue.  In your video, you are setting the Personal Library setting as a demonstration.  Since I do not have a Personal Library, I left that box blank.   If I point it to any valid folder, as brownerthanu did, then it works fine. 

Here are the steps to reproduce.

1.  Create a new workspace and set the preference to any version of Arduino.  However, do not touch the box for the Personal Library. 
2.  Create a new Arduino Project in this workspace, select your favorite board and click finish.  It will throw the error I posted previously.
3.  Delete the failed Core Project and the failed user project.
4.  Return to the Preferences and set the Personal Library parameter to any valid folder on the computer.
5.  Repeat step 2 and it will work fine.

I will attach the Eclipse error log from one of the failures.  Perhaps that will give some additional clues. 
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 22, 2012, 07:58 pm
Great that you found the issue.
This defect exists since 1.2. I fixed it and it will be part of the next release. As there is a workaround which I would describe as "do as you should do" 8) there is no hurry.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: brownerthanu on Jun 22, 2012, 10:47 pm
Hi Jantje,

Thanks so much for your help. Here's what I see:

(http://www.cs.princeton.edu/~roda/img/show_view.png)

As you can see, there is no Arduino subfolder. However, all other aspects of 1.2.2 seem to be working.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 22, 2012, 11:50 pm
brownerthanu
Can you send me the content of the error log view (same window as you posted->general->error log)
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: brownerthanu on Jun 23, 2012, 12:12 am
Hi Jantje,

Here is the error message:

Code: [Select]

eclipse.buildId=M20120208-0800
java.version=1.6.0_31
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.cpp.product -product org.eclipse.epp.package.cpp.product -keyring /Users/roda/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.cpp.product -data /Users/roda/Documents/ACTIVE/Arduino/Eclipse -product org.eclipse.epp.package.cpp.product -keyring /Users/roda/.eclipse_keyring -showlocation

Warning
Thu Jun 21 18:00:32 EDT 2012
While loading class "it.baeyens.avreclipse.core.paths.AVRPath", thread "Thread[Worker-1,5,main]" timed out waiting (5007ms) for thread "Thread[main,6,main]" to finish starting bundle "it.baeyens.avreclipse.core_1.0.6 [312]". To avoid deadlock, thread "Thread[Worker-1,5,main]" is proceeding but "it.baeyens.avreclipse.core.paths.AVRPath" may not be fully initialized.

org.osgi.framework.BundleException: State change in progress for bundle "reference:file:plugins/it.baeyens.avreclipse.core_1.0.6.jar" by thread "main".
at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1087)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:297)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:268)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:463)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:476)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at it.baeyens.avreclipse.core.preferences.AVRPathsPreferences$1.run(AVRPathsPreferences.java:166)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException
... 15 more
Root exception:
org.eclipse.osgi.framework.internal.core.AbstractBundle$BundleStatusException
at org.eclipse.osgi.framework.internal.core.AbstractBundle.beginStateChange(AbstractBundle.java:1087)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:297)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:268)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:463)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:476)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at it.baeyens.avreclipse.core.preferences.AVRPathsPreferences$1.run(AVRPathsPreferences.java:166)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 24, 2012, 11:21 pm
brownerthanu
Can you check whether "Disable search for system paths at startup" is set or not? This option is available at window->preferences->Arduino->paths.
Please include a print of this preference page.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: holstine on Jun 25, 2012, 05:39 am
Jantje,

Great Plug in!  I am really enjoying it. I am using Eclipse Juno (final release candidate) with arduino plugin 1.2.2
However, it looks like there is a problem when I Delete a library I have added. Looking at project properties just before delete and after delete of a library (not even a compile in between) it is easy to see the include directories are really messed up after the delete but not before.
So my question is this:
Is there anything I can do to fix this (settings, clean something, redo indexes) or am I just forbidden from deleting libraries? 

before and after screen shots of my test project are attached.  The project in question is a completely new project (no new code) but with the wire library included before and deleted in the after picture.

(http://before.png) (http://after.png)

Thanks
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: brownerthanu on Jun 25, 2012, 05:29 pm
Hi Jantje,

I did not have that checked. I've now checked it, and I'm no longer getting that error. However, I still do not see the Arduino folder in Window > Show View > Other. Do I need to do a manual rescan? If so how is this done? Thanks so much for your help!
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 25, 2012, 09:39 pm
@holstine
please see http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.htm#LibraryDelete (http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.htm#LibraryDelete) for more info.

@brownerthanu
If there is no error I really don't know what could be wrong. Maybe reinstalling will fix the issue?

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: holstine on Jun 26, 2012, 02:54 am
Jantje,

Thanks for the quick reply.  It was very helpful.

I am still a bit lost, however, on trying to use your tool for some of the more complex projects I have built using the old Arduino IDE.
I have an arduino project that has multiple .ino files as well as a few libraries.
I have seen the video you made and read your compatability page. It was very helpful, but I still am getting confused, especially around the c #includes and what things I have to do to make it all work together (I must admit my C is a bit rusty).

So, I guess what I am asking is:

A: Can I have a multiple .ino project in the eclipse/arduino project?
B: Can it be made to be easy to go between the Arduino IDE and the Eclipse/Arduino IDE?
C: What do I need to do (#includes, function prototypes, etc) to make it compatible?
D: Could you maybe make a video or detailed instructions on how to import a complex (multi .ino and librarys) arduino project?

Any help you give would be much appreciated.  I am absolutely Itching to get my CNC controller project into your plug in.

Thanks.

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 26, 2012, 05:20 pm
Holstine

A: Can I have a multiple .ino project in the eclipse/arduino project?

You can. You can configure eclipse to handle .ino files as C++ files as described in the compatibility page.

B: Can it be made to be easy to go between the Arduino IDE and the Eclipse/Arduino IDE?

Depends on what you call easy. There are constrains on the Arduino IDE and there are constraints on the eclipse environment. To fully understand all issues a deep knowledge of both tools is needed. However full knowledge is mostly not needed.


C: What do I need to do (#includes, function prototypes, etc) to make it compatible?

This is described in the compatibility page. I'm not sure what I can add.


D: Could you maybe make a video or detailed instructions on how to import a complex (multi .ino and librarys) arduino project?

There are many use cases, I will and can not make a video for all cases.
Note the faq question on why you would want to use the plugin http://www.baeyens.it/eclipse/Arduino%20eclipse%20plugin%20FAQ.htm#why (http://www.baeyens.it/eclipse/Arduino%20eclipse%20plugin%20FAQ.htm#why)
Quote
This plugin is not meant to replace the Arduino IDE. I think the Arduino IDE is the place to get started with Arduino, no matter what is your background. However when you are growing in writing code, or when you come from a software development background you will feel restrained by the Arduino IDE. In that case the eclipse plugin may be an alternative.

From your questions I feel you need to brush up your C++ coding capabilities and eclipse knowledge. Then all will become clear. Note that the Arduino eclipse plugin runs on WINAVR, CDT and eclipse. Documentation is spread over these tools.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: holstine on Jun 26, 2012, 06:45 pm
Jantje,

Thanks again for your quick response. 
I think misunderstood some of the point of the plug in.
I thought it would be a nice eclipse environment for working with pde/ino files.  That would be great since I have been a java programmer in eclipse for most of the past 8 years.
With java and arduino I love the fact that .h files are not necessary.  The arduino make process removes that need very successfully.  By processing .ino files just by changing from .cpp to .ino I thought you had incorporated some of that ability, and that the resulting .ino file would be able to be read and processed by the ADE and conversely the .ino files could be used in your plugin with little modification. This would be very nice to keep ADE and eclipse projects from diverging. In fact, it is the only reason I can think of to change the .cpp suffix to .ino.
Don't get me wrong. This a very nice addition to the AVR programming environment plugin. I spent most of a weekend futzing around with that darn plug in before I got everything working right.  This is 20 times better (by the metric: time spent to "hello world") and I absolutely adore the serial view. 
I am sorry you thought I was a "noob" at programming or the arduino.  I was merely trying to get clear answers that would not only benefit me, but also the community at large.

   Cheers
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 26, 2012, 07:55 pm

I thought it would be a nice eclipse environment for working with pde/ino files.

If you think of pde/ino files as input files to generate C++ files taking away the need for predeclaration; indeed the plugin is not.
Thrump had something like this working. We planned to do this plugin together but it turned out differently.
As it is all open source and you have 8 years of java programming in eclipse you are in a far better position than me to port the Arduino code doing this to eclipse   8)


With java and arduino I love the fact that .h files are not necessary.  The arduino make process removes that need very successfully. 

I like this description. I think I'll add this to my web pages.
Note that you still need to include the headers to the pde/ino files. Not so much for the include but for a way for the Arduino IDE to know the libraries to link in. This because there is no manifest or makefile in the Arduino IDE.


I am sorry you thought I was a "noob" at programming or the arduino.  I was merely trying to get clear answers that would not only benefit me, but also the community at large.

There is nothing wrong with being a "noob". I keep on going to new challenges which makes me a "noob" all the time. Even at domains I see myself as experienced there is still plenty of documentation around from which I can learn plenty.
Learning is the reason why I do this. There is still plenty to learn.
So I'm sorry if you feel insulted by my remarks. It was not my intention to insult you. My intention was to pinpoint you to a problem domain where -based on your questions- I thought there was a gap. 

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: motote on Jul 08, 2012, 07:42 pm
Hello, I'm trying 1.2.3 plugin version on eclipse Juno under OSX
My problem is that I can't edit the paths under Prefs->Arduino->Paths, when I click on the edit button noting happens.
Any idea?

Thanks!
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 08, 2012, 07:55 pm
motote
I have installed this in juno on a mac on Friday. My first install myself on a mac  :)
What I noticed with juno is that the preferences are no longer under windows-> preferences but under file->preferences.
if you go to Prefs->Arduino->Paths you are probably in the project preferences and not in the workspace preferences. try file->preferences.
there you should be able to edit the settings.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: THX_RoG on Jul 08, 2012, 08:52 pm
hey guys today i have update  eclipse and your plug in and getting this annoying  ERROR message (http://img31.imageshack.us/img31/8028/przechwytywaniecc.jpg)

Any ideas how to KILL it?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: motote on Jul 08, 2012, 09:53 pm
thanks for the hint, but it doesn't work.
I'll keep looking.....
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 08, 2012, 11:56 pm
THX_RoG
It seems the plugin is not compatible with eclipse Juno.
I'll need some time to debug this so please do not use the eclipse version Juno but use indigo.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: THX_RoG on Jul 09, 2012, 05:57 pm
THX for quick replay
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: holstine on Jul 10, 2012, 02:53 pm
I am using Juno with arduino plugin 1.2.2 (and now 1.2.3) on windows and all is working well.
What is new in 1.2.3 ?

M
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: THX_RoG on Jul 10, 2012, 06:22 pm
this is fk annoying
(http://img23.imageshack.us/img23/9800/przechwytywaniepm.jpg)
maintenance or what?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: motote on Jul 11, 2012, 08:07 am
Jantje, on OSX it even doen't work for me with eclipse indigo.
I was looking on config file for AVR-GCC/GNU Make/AVR header but couldn't find anything.
Does anyone knows where are they for manual editing?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 11, 2012, 09:49 am
THX_RoG
I understand your frustration but please don't let it out on a forum. This is a 100% free and opensource tool. I do not earn money on hardware, software and you are not paying anything. I'm spending plenty of my free time to try to help people who seem to be unable to use google  www.google.com (http://www.google.com)read a faq http://www.baeyens.it/eclipse/Arduino%20eclipse%20plugin%20FAQ.htm (http://www.baeyens.it/eclipse/Arduino%20eclipse%20plugin%20FAQ.htm) or trying with the newest version and then complain it doesn't work  8) and believe me that can be pretty frustrating. I'm thinking RTFM far more than I write it.
As to the link problem. Some other people reported not being able to connect to the plugin site. There is the space problem it is "update site" but I created a link from "update" to "update site" so that should not be the problem.
All of following links should work
http://www.baeyens.it/eclipse/update
http://www.baeyens.it/eclipse/update site
http://eclipse.baeyens.it/update (does not seem to work)
http://eclipse.baeyens.it/update site

Frankly most people who had this issue found a local problem and workaround. So I'm pretty sure it is a problem at you site (I should make a faq on this one)

motote
Mac is a special case. If you read the installation instructions you'l find a link to a document from someone who got it to work on MAC. Last week I tried to install it on a mac to see how it works. Basically the "automatic configuration" does not work on mac. Please see the document on how to set it up on mac.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: duxiaoshi on Jul 12, 2012, 08:14 am
really good plugin. And I have used it in my project.

My problem is when i new a file like Uart.cpp and use the Serial function.

There is an error:

../Uart.cpp: In function 'void serialEvent()':
../Uart.cpp:31: error: 'Serial' was not declared in this scope
make: *** [Uart.o] Error 1
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 12, 2012, 02:39 pm
duxiaoshi
have you tried including arduino.h ?

holstine
Which version of windows and which hierarchy for Eclipse do you use? I have the problem in windows 7 and 64 bit eclipse.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: holstine on Jul 13, 2012, 02:37 pm
Quote

holstine
Which version of windows and which hierarchy for Eclipse do you use? I have the problem in windows 7 and 64 bit eclipse.

Windows 7 64 bit eclipse, 64 bit java7. I installed Arduino plugin 1.2.2 and updated to 1.2.3,  I use IDE for java developers and added CDT as a plugin (the android developers toolbox is the only other plugin I have on this version)

Hope that helps.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 14, 2012, 01:15 am
Holstine
I didn't have time jet to look into this. It is strange it works for you and not for me.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: slobrewer on Jul 18, 2012, 07:45 am
I'm getting the same error as motote.  I can't set any of the paths from the preference page with an install of 1.2.3 on Mac OS X Lion.  I've tried both Indigo and Juno but there was no difference.  I also followed the link mentioned in the install instructions to the Mac install but that didn't address the problem.  It looks like some problem with the latest release being unable to actually edit the paths.

Is there any workaround to set the paths directly without using the preference page?  Is it possible to import the preferences somehow?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 18, 2012, 10:26 am
slo brewer
As you can see in eclipse following are the changes done in the plugin version 1.2.3
(to find this info use Help->about eclipse->installation details->tab installed software->arduino eclipse extensions in the bottom you find detailed info)
Quote
Added a serial test button to test the serial library in the preference page
Fixed a bug to support non arduino cores (the correct include folder is now set)
Fixed a bug on MAC when AVRPaths searches for the location of G++ AvrDude and others. (no MAC search as been added but the POSIX is no longer used in case of mac)
Added suport for specific c compile, c++ compile and link instructions
the keys to be added to the boards.txt are
[board id].build.cpp.options
[board id].build.c.options
[board id].build.link.options
fixed the bug that when the "private library" is not selected
the eclipse environment is not setup properly. If not set a error
will pop up. it should not be possible to exit the preferences
without setting it.

As you can see there have been changes in this area. I would not expect it to have the behavior as you experience. Have you ever used 1.2.2 on this system?

I can't set any of the paths from the preference page with an install of 1.2.3 on Mac OS X Lion.

How exactly can't you set the paths? Are the edit buttons disabled? Do you get an error? Can you provide a screenshot?

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: slobrewer on Jul 18, 2012, 06:35 pm
Thanks for the quick response Jante.  I had been looking for release notes on the website but didn't see them.  It's good to know where I can find them now.

This is the first time I have installed Eclipse and your Arduino Eclipse Extensions on this machine.  I tried installing 1.2.0 (the latest version under the "Arduino" category when following the instructions to install the plug-in) but I got an error that some of the required java libraries couldn't be downloaded from your site.  I found 1.2.3 under the "uncategorized" category and that's what appears to install correctly.  When I ran into these problems I tried to uninstall and then install 1.2.2 but got a similar error to the 1.2.0 install that Eclipse couldn't download all the libraries from your site.  Let me know if you want more details, but suffice to say it appears my only option is to install 1.2.3.

To reproduce the bug I'm seeing I do the following (on OS X Lion):
1. Install fresh Eclipse C++ Juno or Indigo package and the latest Arduino IDE (1.0.1)
2. Use Help->"Install New Software" to install Arduino Eclipse Extensions 1.2.3 from http://www.baeyens.it/eclipse/update.
3. Restart Eclipse, as required.
4. Go to Eclipse->Preferences
5. Go to the Arduino->Arduino tab
6. Set the Arduino IDE path to /Applications/Arduino.app/Contents/Resources/Java
7. Set the Private Library Path to /Users/dlouw/Documents/Arduino/Libraries
8. Click "Use Arduino IDE tools in eclipse"
9. Go to the Arduino->AVRDude tab
10. Click "Use custom configuration file for AVRDude"
11. Set the AVRDude config file path to "/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf"
12. Go to Arduino->Paths tab
13. Click "Disable search for system paths at startup" (though the problem remains if this is unclicked)
14. Click the "AVR-GCC" line in the table and click the "Edit..." button (same problem if I double click the row in the table)

Expected results:
Some form of dialog box pops up to let me set the value.

Actual results:
The button appears to click but then nothing happens.  I get the same experience with all 5 of the settings in the table.  If I try to cancel or navigate away from the page I get an error message that says "The currently displayed page contains invalid values".

Screenshot:
(Not terribly interesting because nothing pops up)

(http://i.imgur.com/lZFix.png) (http://imgur.com/lZFix)

Is there any logging I can enable to help?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 18, 2012, 10:21 pm
slobrewer
Thanks for the extensive explanation. It makes more sense now to me.
I don't understand why the old versions don't want to download. I'll take a look into that but that is very low priority.
Probably not related but you should not do step 8. Basically setting this option should set the paths to the default options which doesn't seem to work on mac.
As to debugging: Can you provide me the info in the "error log" in eclipse (window->show view->other->general->error log) there should be some info popping up there each time you click the edit button.

If someone knows a good legal vmware image I could download which has a mac preinstalled; let me know. This way I can test it myself and get rid of the malfunctions on mac. It has to be compatible with vmware version 7 as I do not own a license for 8.

Best regards
Janje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: slobrewer on Jul 19, 2012, 12:47 am
Thanks, that surfaces the error.  Looks like it's an NPE.

Message:
Unhandled event loop exception

Exception Stack Trace:

java.lang.NullPointerException
   at it.baeyens.avreclipse.ui.preferences.PathSettingDialog.addSystemPage(PathSettingDialog.java:177)
   at it.baeyens.avreclipse.ui.preferences.PathSettingDialog.createDialogArea(PathSettingDialog.java:141)
   at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:760)
   at org.eclipse.jface.window.Window.create(Window.java:431)
   at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
   at org.eclipse.jface.dialogs.StatusDialog.create(StatusDialog.java:203)
   at org.eclipse.jface.window.Window.open(Window.java:790)
   at it.baeyens.avreclipse.ui.preferences.AVRPathsFieldEditor$ButtonSelectionListener.widgetSelected(AVRPathsFieldEditor.java:94)
   at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
   at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
   at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4134)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1458)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1481)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466)
   at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1271)
   at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3980)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3619)
   at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
   at org.eclipse.jface.window.Window.open(Window.java:801)
   at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:215)
   at org.eclipse.ui.internal.handlers.ShowPreferencePageHandler.execute(ShowPreferencePageHandler.java:58)
   at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
   at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
   at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:229)
   at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:210)
   at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
   at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
   at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:145)
   at org.eclipse.e4.ui.workbench.renderers.swt.cocoa.CocoaUIHandler.runCommand(CocoaUIHandler.java:799)
   at org.eclipse.e4.ui.workbench.renderers.swt.cocoa.CocoaUIHandler.access$9(CocoaUIHandler.java:787)
   at org.eclipse.e4.ui.workbench.renderers.swt.cocoa.CocoaUIHandler$8.widgetSelected(CocoaUIHandler.java:618)
   at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
   at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
   at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4134)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1458)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1481)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466)
   at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1271)
   at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3980)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3619)
   at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1022)
   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
   at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:916)
   at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
   at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585)
   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540)
   at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
   at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
   at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
   at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
   at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

Session Data:

eclipse.buildId=I20120608-1400
java.version=1.6.0_33
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.cpp.product -keyring /Users/dlouw/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.cpp.product -keyring /Users/dlouw/.eclipse_keyring -showlocation

Let me know if there's anything else I can do to help troubleshoot.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 20, 2012, 01:10 pm
slobrewer
A quick update
The stacktrace you send indicated that the fix :"Fixed a bug on MAC when AVRPaths searches for the location of G++ AvrDude and others. (no MAC search as been added but the POSIX is no longer used in case of mac)"  is the root cause for your problem.
It must be with all macs, as you fail to download the previous version I consider this as an urgent patch.
Unfortunately I have been working to get Leonardo to work with the plugin and those are some serious changes. So I can't just revert and release.
in short I plan to release a version late tonight (CET), failing that somewhere this weekend.
best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: slobrewer on Jul 20, 2012, 06:13 pm
Awesome, thanks for the help.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: EastDallas on Jul 20, 2012, 07:49 pm
Has anyone set this up on Ubuntu successfully?  I'm running 12.04, Eclipse Indigo (from the Eclipse website, not the repos) and did get the plugin installed, but need some help configuring it.  For instance, what is the Private Library Path?

Thanks,
Matt
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 20, 2012, 10:48 pm
Matt
I know people have it installed on Ubuntu.

I updated the installation section and added something on "Private Library Path". It is not yet published so I put it here for you:
Note that the instructions are a bit outdated from 1.2.2 onwards.
   For instance in the settings page a private library folder is requested. This setting should point to a location where you down loaded Arduino libraries.
   If you haven't down loaded Arduino libraries yet do as follows
   1) Consider using the Arduino IDE. (strongly advised)
   2) Point it to a location where you can download Arduino libraries. (Strongly disadviced)
   
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: EastDallas on Jul 21, 2012, 04:15 am
Sorry if I'm being obtuse, but are you advising me to use the Arduino IDE instead of Eclipse, or use the path to the IDE in the "Private Library Path" field?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 22, 2012, 01:09 am
All
I released version 1.2.4.
This version has Leonardo support and should be configurable on Mac again.

Matt
Eclipse is a heavy IDE. Basically if you do not use private libraries I see no reason to go to eclipse. The features will be more a burden than a help.
For small simple programs I still tend to use the Arduino IDE.

Best regards
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: RogerParkinson on Jul 30, 2012, 08:31 am
If anyone else is trying to make all this work with Attiny ICs or Teensy boards I got it working and documented my technique here http://mrkimi01.blogspot.com/2012/07/eclipse-avr-attiny-teensy.html (http://mrkimi01.blogspot.com/2012/07/eclipse-avr-attiny-teensy.html). It wasn't too hard, but it took me a little while to work through.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: hamiljf on Jul 31, 2012, 06:49 pm
Sorry to be the dumbest guy around here, but I can't get going at all, because I can't download the plugin because none of the links seem to work...

from the original post November 20 ...

2.1) download the code from here http://www.eclipse.org/downloads/

gives a short page of plugins for Juno none of which seem to be this one, and
from post on July 11 the following lines all give 404s...

http://www.baeyens.it/eclipse/update
http://www.baeyens.it/eclipse/update site
http://eclipse.baeyens.it/update (does not seem to work)
http://eclipse.baeyens.it/update site

I'm running Firefox in Xubuntu and have installed Eclipse Indigo and Arduino IDE 1.0 and would much appreciate a pointer on what to do next.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: hamiljf on Jul 31, 2012, 06:59 pm
By the way... ref the advice above... the reason I want to use the Eclipse plugin is that Eclipse provides excellent navigation around source files with more than a few classes/methods. I've used Eclipse for Java and Python for ages and found the Arduino IDE a decade or two behind (in terms of user interface: no complaints about support for the products). 
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 31, 2012, 11:28 pm
hamiljf

2.1) download the code from here http://www.eclipse.org/downloads/

the link points to the latest versions to download. The latest version is Juno but Juno does not seem to work on all OSes.
On the page(on the left) there is a section related links that point to older versions. There you'll find a link to "Eclipse Indigo (3.7)" pointing to the indigo page where you can click the download where you can select the C++ version leading you to http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers-includes-incubating-components/indigosr2 (http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers-includes-incubating-components/indigosr2)


from post on July 11 the following lines all give 404s...

http://www.baeyens.it/eclipse/update
http://www.baeyens.it/eclipse/update site
http://eclipse.baeyens.it/update (does not seem to work)
http://eclipse.baeyens.it/update site

Once you have downloaded eclipse go and read the pages at http://eclipse.baeyens.it/ (http://eclipse.baeyens.it/) on how to install the plugin.
Basically you should not point your browser to these locations but the eclipse installer.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 31, 2012, 11:29 pm
Roger
Thanks for the blog post.
I'll look into making it easier with the plugin when I have some free time.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: hamiljf on Jul 31, 2012, 11:54 pm
Jantje

Thanks for the clarification... figured out what you meant and tried it...

the source site was set to
Code: [Select]

http://www.baeyens.it/eclipse/update site/

found 1.2.0 under Arduino

and got the following error messages...

Code: [Select]

An error occurred while collecting items to be installed
session context was:(profile=PlatformProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Artifact not found: osgi.bundle,it.baeyens.arduino.common,1.1.0.5.
http://www.baeyens.it/eclipse/update%20site/plugins/it.baeyens.arduino.common_1.1.0.5.jar
Artifact not found: osgi.bundle,it.baeyens.arduino.core,1.1.1.
http://www.baeyens.it/eclipse/update%20site/plugins/it.baeyens.arduino.core_1.1.1.jar
Artifact not found: org.eclipse.update.feature,it.baeyens.arduino.feature,1.2.0.
http://www.baeyens.it/eclipse/update%20site/features/it.baeyens.arduino.feature_1.2.0.jar
Artifact not found: osgi.bundle,it.baeyens.avreclipse.core,1.0.6.
http://www.baeyens.it/eclipse/update%20site/plugins/it.baeyens.avreclipse.core_1.0.6.jar
Artifact not found: osgi.bundle,it.baeyens.avreclipse.core.managedbuildsystem,1.0.4.
http://www.baeyens.it/eclipse/update%20site/plugins/it.baeyens.avreclipse.core.managedbuildsystem_1.0.4.jar
Artifact not found: osgi.bundle,it.baeyens.avreclipse.ui,4.0.6.
http://www.baeyens.it/eclipse/update%20site/plugins/it.baeyens.avreclipse.ui_4.0.6.jar


So tried the uncategorized node and found version 1.2.4 and that seems to have worked.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: hamiljf on Aug 01, 2012, 12:50 am
Further clarification, using xubuntu
1.  Arduino IDE under linux is /usr/share/arduino
2.  Private library path is /usr/share/arduino/libraries (correct? - see below)
3.  In setting up a new sketch, you have to specify a port eg '/dev/ttyACM1' otherwise it won't finish, even though you don't need a port until later

The private library path is required, even if you don't have one, so now I have two ways to access the Arduino libraries.

So finally got a more or less clean compilation, but found (and this surely is not your problem) that 'Wire.cpp' cannot find 'twi.h' . I think the source should have specified "utility/twi.h" but I'm not sure yet.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: hamiljf on Aug 01, 2012, 01:03 am
After all of that, it really is time to say 'thank you' Jantje ... overall, a brilliant piece of work and I'm really happy to be back using Eclipse.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 01, 2012, 01:29 am
hamiljf
Thanks
I'm doing my best
Best regards from Belgium
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 25, 2012, 03:27 am
I release 1.2.2.5 of my arduino eclipse plugin which works in Juno.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: hamiljf on Aug 25, 2012, 09:46 pm
Please remind us of the url of the update site where this is...
http://www.baeyens.it/eclipse/update
shows versions 1.2.0 and 1.2.4 when I look there.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 25, 2012, 10:30 pm
I must have been tired last night.
The latest version is 1.2.5.5
The safest URL is http://www.baeyens.it/eclipse/update
To see the latest available version uncheck "Group items by category" and check "show only the latest versions of available software"
(http://iloapp.baeyens.it/data/_gallery//public/1/1345926371_resized.png?width=575&height=540)
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: hamiljf on Aug 26, 2012, 02:05 am
Thanks... that seems to have worked fine.  Strange the way that Eclipse only shows that item with those specific settings, but that is the way it is.
By the way... the configuration guidance shows a screen different to the attached (I hope it is attached) ...
what should one put in 'private library path' ?
And... (sorry to be dumb) but where does one get 'Serial' from when running in Eclipse?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 26, 2012, 06:41 pm
hamiljf
Note from  http://eclipse.baeyens.it/Install.html (http://eclipse.baeyens.it/Install.html)
Quote
Note that the instructions are a bit outdated from 1.2.2 onwards.

If you feel the page should be 100% up to date please fork the project on github and update the website. I'll verify and post it when you are ready.

For the private library see the FAQ http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.htm#Private_Library (http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.htm#Private_Library)
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Bryanpl on Sep 02, 2012, 09:02 am
Hello:

Having an issue getting the Arduino wire library  to compile. I have followed the instructions at the recommended thread in the FAQ file to no avail.

http://arduino.cc/forum/index.php/topic,86344.0.html (http://arduino.cc/forum/index.php/topic,86344.0.html)

Win 7 64 bit
Arduino 1.0.1
Eclipse Indigo Release 2
Arduino eclipse plugin 1.2.5.5

Code: [Select]
**** Build of configuration Release for project Blink ****

make all
Building file: C:/Reef_Angel/libraries/Wire/utility/twi.c
Invoking: AVR Compiler
avr-gcc -I"C:\Reef_Angel\hardware\arduino\cores\arduino" -I"C:\Reef_Angel\hardware\arduino\variants\standard" -I"C:\Users\Bryan\workspace\Blink" -I"C:\Reef_Angel\libraries\EEPROM" -I"C:\Reef_Angel\libraries\Ethernet" -I"C:\Reef_Angel\libraries\Firmata" -I"C:\Reef_Angel\libraries\LiquidCrystal" -I"C:\Reef_Angel\libraries\SD" -I"C:\Reef_Angel\libraries\Servo" -I"C:\Reef_Angel\libraries\SoftwareSerial" -I"C:\Reef_Angel\libraries\SPI" -I"C:\Reef_Angel\libraries\Stepper" -I"C:\Reef_Angel\libraries\Wire" -D__IN_ECLIPSE__=1 -DARDUINO=101 -DUSB_PID= -DUSB_VID= -Wall -Os -g -mmcu=atmega328p -DF_CPU=16000000UL -MMD -MP -MF"Wire/utility/twi.d" -MT"Wire/utility/twi.d"  -c -o "Wire/utility/twi.o" "C:/Reef_Angel/libraries/Wire/utility/twi.c"
C:/Reef_Angel/libraries/Wire/utility/twi.c:115: error: conflicting types for 'twi_readFrom'
C:/Reef_Angel/libraries/Wire/utility/twi.h:81: error: previous declaration of 'twi_readFrom' was here
C:/Reef_Angel/libraries/Wire/utility/twi.c:192: error: conflicting types for 'twi_writeTo'
C:/Reef_Angel/libraries/Wire/utility/twi.h:82: error: previous declaration of 'twi_writeTo' was here
make: *** [Wire/utility/twi.o] Error 1


Could anybody assist in what I need to do next?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 02, 2012, 11:57 am
Bryan
I tried to compile an arduino sketch with the wire library using the exact same setup as you do.
There is a regression bug; which is that the utility folder is not added to the include path. (The same problem exists for the ethernet library and SD library). Once this one is fixed it works fine.
The link you referred to is no longer valid. I have worked around that in the eclipse settings.

My guess is that you bumped in the regression bug and tried to fix it and that results in the problem you have.
I propose to change back to the original Arduino code and work around the regression bug as follows:
Select your project->properties->C/C++ general->Paths and symbols select the includes path click add; click workspace; select the utility folder in the ethernet folder. select ok; make sure you have "add to all languages" and "add to all configurations" on. Select OK
Following libraries will need this: Wire;SD and Ethernet

I hope this helps you out.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Bryanpl on Sep 02, 2012, 03:02 pm
Thanks Jantje.

Your help worked. Project compiled fine. Much appreciated.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: tasosstr on Sep 06, 2012, 02:04 am
Hello,

I would like to install this nice plugin in one pc without internet connection, can someone tell me how can i ?

I found this https://github.com/jantje/arduino-eclipse-plugin  link but again i can't install it, what i am doing wrong ?

Thank you in advance.

This plugin it is PERFECT ! ! ! I will suggest to every on Well Done to the creator ! ! ! !
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: LuisSoares on Sep 06, 2012, 12:41 pm
Hi,

I have been trying to put eclipse to work with the pluggin.

I tried a simple SPI example to compile but i´m having some problems with variable scope due to problems in SPI and pins_arduino library.

The Eclipse Build process is giving me the following errors:

Code: [Select]

*** Clean-only build of configuration Release for project MCU3 ****

make clean
rm -rf  ./SPI/SPI.o  ./LiquidCrystal/LiquidCrystal.o  ./Firmata/Firmata.o  ./Ethernet/utility/socket.o ./Ethernet/utility/w5100.o  ./Ethernet/Dhcp.o ./Ethernet/Dns.o ./Ethernet/Ethernet.o ./Ethernet/EthernetClient.o ./Ethernet/EthernetServer.o ./Ethernet/EthernetUdp.o  ./EEPROM/EEPROM.o  ./MCU3.o  MCU3.eep  MCU3.hex  MCU3.lss  ./SPI/SPI.d  ./LiquidCrystal/LiquidCrystal.d  ./Firmata/Firmata.d  ./Ethernet/utility/socket.d ./Ethernet/utility/w5100.d  ./Ethernet/Dhcp.d ./Ethernet/Dns.d ./Ethernet/Ethernet.d ./Ethernet/EthernetClient.d ./Ethernet/EthernetServer.d ./Ethernet/EthernetUdp.d  ./EEPROM/EEPROM.d  ./MCU3.d  sizedummy  MCU3.elf


**** Build Finished ****

**** Build of configuration Release for project MCU3 ****

make all
Building file: C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp
Invoking: AVR C++ Compiler
avr-g++ -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/Ethernet/utility" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/Wire/utility" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/SD/utility" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/SD" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/Arduino_Uno/arduino" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/Arduino_Uno/standard" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/leonardo_test" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/Wire" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/SPI" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/SoftwareSerial" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/SdFat" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/Stepper" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/Servo" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/LiquidCrystal" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/Firmata" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/Ethernet" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/EEPROM" -I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/Wire" -I../MCU3/MCU3/SPI -D__IN_ECLIPSE__=1 -DARDUINO=101 -DUSB_PID= -DUSB_VID= -Wall -Os -ffunction-sections -fdata-sections -fno-exceptions -g -mmcu=atmega328p -DF_CPU=16000000UL -MMD -MP -MF"SPI/SPI.d" -MT"SPI/SPI.d"  -c -o "SPI/SPI.o" -x c++ "C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp"
C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp:11:26: error: pins_arduino.h: No such file or directory
In file included from C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp:12:
C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.h:15:21: warning: Arduino.h: No such file or directory
In file included from C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp:12:
C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.h:38: error: 'byte' does not name a type
C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.h:55: error: 'byte' does not name a type
C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp: In static member function 'static void SPIClass::begin()':
C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp:23: error: 'SCK' was not declared in this scope
C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp:23: error: 'OUTPUT' was not declared in this scope
C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp:23: error: 'pinMode' was not declared in this scope
C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp:24: error: 'MOSI' was not declared in this scope
C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp:25: error: 'SS' was not declared in this scope
C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp:27: error: 'LOW' was not declared in this scope
C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp:27: error: 'digitalWrite' was not declared in this scope
C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp:29: error: 'HIGH' was not declared in this scope
C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp: In static member function 'static void SPIClass::setBitOrder(uint8_t)':
C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp:44: error: 'LSBFIRST' was not declared in this scope
make: *** [SPI/SPI.o] Error 1

**** Build Finished ****


Do you have any idea what i can do to solve this problem?

I leave here the project image, in case it helps...
https://dl.dropbox.com/u/7216207/SPI.JPG (https://dl.dropbox.com/u/7216207/SPI.JPG)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 06, 2012, 01:35 pm

I would like to install this nice plugin in one pc without internet connection, can someone tell me how can i ?

I don't know how to do this.

LuisSoares
Looking at your command line this does not look like the eclipse plugin this thread is about.
Are you sure you installed the plugin as described in http://eclipse.baeyens.it/ (http://eclipse.baeyens.it/)

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: LuisSoares on Sep 06, 2012, 03:06 pm
Hi,

I think so, this is the link for the plugin i dowloaded:


I choose  the uncategorized version 1.2.4
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: tasosstr on Sep 06, 2012, 03:19 pm
Hello jantje, thank you very much for the reply and thank you very much for the NICE - Perfect plugin you create ! ! ! ! I believe you have make a lot of people happy :-) include me ! ! ! :-) Well Done ! ! !

I will try to find and i will update for other people too (looking the same problem like me).

@LuisSoares, it is very simple :-) i meet too this problem with Ethernet library, what i have done so far on all the libraries is:
delete all the *.txt files from the folder on each library and the example folders leave only the *.cpp, *.h and the include files only.

Have fun and good coding :-)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 06, 2012, 03:30 pm
LuiSoares
Your story does not seem consistent to me. From what I see you have not installed the plugin on a regular arduino setup. Look at the include path I added my thoughts

-I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/Ethernet/utility"   -> A simple SPI example using Ethernet?
-I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/Wire/utility"         -> A simple SPI example and wire?
-I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/SD/utility"           -> A simple SPI example and SD?
-I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/SD"
-I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/Arduino_Uno/arduino"    -> this should say hardware\arduino\cores\arduino
-I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/Arduino_Uno/standard"  -> hardware\arduino\variants\standard
-I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/leonardo_test"
-I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3"
-I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/Wire"                  -> Again wire?
-I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/SPI"                    -> Again SPI
-I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/SoftwareSerial"     -> I guess you get the point
-I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/SdFat"                          -> I guess you get the point
-I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/Stepper"               -> I guess you get the point
-I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/Servo"                  -> I guess you get the point
-I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/LiquidCrystal"        -> I guess you get the point
-I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/Firmata"               -> I guess you get the point
-I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/Ethernet"               -> I guess you get the point
-I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/MCU3/EEPROM"               -> I guess you get the point
-I"E:/LMIT HW  Energia/Wisebox/ECLIPSE_WSP/MCU3/MCU3/Wire"                             -> I guess you get the point
-DARDUINO=101                                                                                                   -> you are running Arduino 1.0.1
-mmcu=atmega328p                                                                                             -> you are running atmega328
"C:/Program Files/arduino-1.0.1/libraries/SPI/SPI.cpp                                                 ->trying to compile SPI.CPP

Please look at this demo to understand how to use the plugin.
http://eclipse.baeyens.it/serial_demo.wmv
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 06, 2012, 03:32 pm
tasosstr
The actions you propose should not be necessary
Please look at this demo to understand how to use the plugin.
http://eclipse.baeyens.it/serial_demo.wmv

the only thing that may be needed is
There is a regression bug; which is that the utility folder is not added to the include path.
Select your project->properties->C/C++ general->Paths and symbols select the includes path click add; click workspace; select the utility folder in the ethernet folder. select ok; make sure you have "add to all languages" and "add to all configurations" on. Select OK
Following libraries will need this: Wire;SD and Ethernet

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: LuisSoares on Sep 06, 2012, 04:06 pm
Hi Jantje,

I don´t have a lot of experience in eclipse, always developed with other IDEs.
I don´t really know how those includes got there... :)

I think the problem is the way i imported core librarys from Arduino.

I started all over again...
I created a new project with the ASCIItable example and was able to compile it, upload it and run it normally.

After, i created project TESTE2 which uses the core library EEPROM, is the simple writeEEPROM example.
In this case i get the "unresolve include for EEPROM.H" how can i import or include in the path the path for EEPROM.H?

Best regards

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 06, 2012, 04:30 pm
Luis
Please watch this movie http://eclipse.baeyens.it/serial_demo.wmv (http://eclipse.baeyens.it/serial_demo.wmv)

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: tasosstr on Sep 06, 2012, 04:41 pm
On the pc i have internet connection it is working perfect ( i was import the library with Right click on left panel i was import and compile well ), before i delete from the library folders the examples and the text files i got error and not hex file, when i delete all fine :-)  i thing was the version 1.2.5.2

For the manual plugin i found this http://agile.csc.ncsu.edu/SEMaterials/tutorials/install_plugin/index_v35.html but no success yet.:-( i will continue i hope to find something.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: LuisSoares on Sep 06, 2012, 05:02 pm
Jantje i had watched it several times, and once again when you asked it

But the problem i was having it was not addressed in the video.

I ended up importing the EEPROM library and it worked (File->Import), i thought it wouldn´t be necessary to import core libraries into your project for it to work.

Few last words, really like one feature that this plugin has, multiple serial monitors at the same time with color. I have 3 processors onboard that interact... :) really eases the debugging
Thanks for the effort
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: tasosstr on Sep 07, 2012, 04:42 pm
Hello Dear Jantje,

From the search i do it i found this http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.pde.doc.user%2Fguide%2Ftools%2Fexport_wizards%2Fexport_plugins.htm

I was try to do it but quick i see for to do this i must be have the code, so only you you can export as zip and upload somewhere if you can.

Thank you in advance.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 07, 2012, 06:06 pm
tasosstr
this plugin is open source (really)
you can download al code at https://github.com/jantje/arduino-eclipse-plugin
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: tasosstr on Sep 07, 2012, 11:48 pm
Hello Dear Jantje,

Thank you very much for the reply! ! ! :-)

This is the plugin local input ? or the code for the plugin ?

Thank you in advance :-)

Kind Regards,
Tasos
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 08, 2012, 12:10 am

This is the plugin local input ?


I'm not sure what you mean by this.
For me it is all the source code and the web site
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: tasosstr on Sep 08, 2012, 12:16 am
Hi again :-)


I was try install as local zip
Steps: Help -->
        Install New Software -->
        Add -->
        Archive...

and i get the below message:

Error contact site.

No software site found at jar:file:/C:/users...../Desktop/jantje-arduino-eclipse-plugin-62a4754.zip!/. Do you wish to edit the location?

Kind Regards,
Tasos
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 08, 2012, 12:29 am
I guess you forgot to build the code  8)
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: tasosstr on Sep 08, 2012, 12:39 am
I gess too my friend  8)


Please can you tell me how to load the code so after to build it ?

I mean i have to extract the zip file or i can load it like zip ?

How i can load it as a plugin project ?

Thank in advance.

Kind Regards,
Tasos

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 08, 2012, 12:51 am
you will have to open it with eclipse with java develoment and PDE plugin
Then it should automatically build
There is a project named "update site"
once it has build the project update site is you location to install te plugin.
you can zip that folder and send it to the other pc.
Good luck
Tell me when you have succeeded
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: tasosstr on Sep 08, 2012, 01:06 am
You are a Star ! ! !  :)

I am downloading now the java and when i finish i will update you :-)

Thank you very much again ! ! ! :-)

Kind Regards,
Tasos
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: tasosstr on Sep 08, 2012, 12:03 pm
Hello Dear Jantje,

Because i don't have make again (plugin create), and i don't have any experience of java, i will start find for tutorials and examples to understand how this working so i can make and this for me. :-)

I have the eclipse indigo, should i use this or i must download any other version or i can use - add plugin install ...

I am sorry if i have tired with my so many questions, i thing was something very simple, e.g. you open the file, select destination and type (e.g. zip or jar) and then build.

Thank you very much again my friend.

Kind regards,
Tasos
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: tasosstr on Sep 10, 2012, 08:22 am
Hello again  :)

I didn't have too much time to get all the details i wish but i got a good progress

i was install everything on windows 7 32bit (before i have try this on a 64bit) and copy everything include and the workwspace folder i was start a new project and works  8)

The only thing is not working (and i would like to have it) is the autocomple code, do you know how to enable it ?

Thank you in advance.

Kind Regards,
Tasos
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 10, 2012, 10:17 am
tasos
I hadn't thought about copying your eclipse environment. It looks like a good idea to solve your problem to me.
What do you mean with autocomple ?
If you mean: auto complete; I have no clue why it is not working.
If you mean: auto compile; Only the indexer auto compiles 'out of the box'. I have never looked into having real autocompile.

Best regards
jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: maddmaxx on Oct 02, 2012, 10:32 pm
Hi!

Thank you for a great plugin, it's the best.

I rescntly bought a new computer and i install Ubuntu 12.04 64bit, Eclipse Juno and your plugin. Now I have som problems when I write my "arduino code" in eclipse. After reading everthing I could find on the web I thought I maby could get some help here.

When i try to do pinMode(13, OUTPUT); eclipse tells me :

Invalid arguments '
Candidates are:
void pinMode(?, ?)
'
I have followed the install guide and tried to reinstall the plugin, but with no success. Please help me.....  =(

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Oct 02, 2012, 10:50 pm
maddmax
First of all: I never heard of something like this. My second thought is that your description is open to many interpretations. So please provide some more info.

For instance when you say "eclipse tells me" do you mean the indexer, in the console output or in the problem window?
I would like to see a screenshot of where you get the error. Preferably the whole eclipse window.
Have you seen this video? http://eclipse.baeyens.it/serial_demo.wmv (http://eclipse.baeyens.it/serial_demo.wmv) it shows you how it works.
Which version of the eclipse plugin have you installed?
Probably unrelated: do you really need 64 bit eclipse? 32 bit has proven to be more stable.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: LuisSoares on Nov 22, 2012, 04:10 pm
Hi,

I´m having a problem with the plugin.
I followed the all tutorial and i have got a EEPROM example working (imported the EEPROM libraries etc...)

But When i trie to import the SPI libraries i get this error on building:
Quote
**** Build of configuration Release for project MCUUU ****

make all
Building file: C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.cpp
Invoking: AVR C++ Compiler
avr-g++ -I../leonardo_test -I../MCUUU/Ethernet -D__IN_ECLIPSE__=1 -DARDUINO=102 -DUSB_PID= -DUSB_VID= -Wall -Os -ffunction-sections -fdata-sections -fno-exceptions -g -mmcu=atmega2560 -DF_CPU=16000000UL -MMD -MP -MF"SPI/SPI.d" -MT"SPI/SPI.d"  -c -o "SPI/SPI.o" -x c++ "C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.cpp"
C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.cpp:11:26: error: pins_arduino.h: No such file or directory
In file included from C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.cpp:12:
C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.h:15:21: warning: Arduino.h: No such file or directory
In file included from C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.cpp:12:
C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.h:38: error: 'byte' does not name a type
C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.h:55: error: 'byte' does not name a type
C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.cpp: In static member function 'static void SPIClass::begin()':
C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.cpp:19: error: 'SS' was not declared in this scope
C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.cpp:19: error: 'HIGH' was not declared in this scope
C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.cpp:19: error: 'digitalWrite' was not declared in this scope
C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.cpp:24: error: 'OUTPUT' was not declared in this scope
C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.cpp:24: error: 'pinMode' was not declared in this scope
C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.cpp:38: error: 'SCK' was not declared in this scope
C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.cpp:39: error: 'MOSI' was not declared in this scope
C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.cpp: In static member function 'static void SPIClass::setBitOrder(uint8_t)':
C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.cpp:49: error: 'LSBFIRST' was not declared in this scope
make: *** [SPI/SPI.o] Error 1

**** Build Finished ****


I post an image to so you can see the project construction.
https://dl.dropbox.com/u/7216207/eclipse.JPG (https://dl.dropbox.com/u/7216207/eclipse.JPG)

Can someone help with this problem?

Regards
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 22, 2012, 09:31 pm
Hi
There is something wrong with your include path. I also see you are not running the latest version of the eclipse plugin.
When there is something wrong with the include path there may be several reasons. If you are new to all the easiest thing to do is to create a new project.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: LuisSoares on Nov 23, 2012, 02:25 pm
Hi Jantle,

I made new instalation of Eclipse, everything new and latest versions.

At the moment i have already created examples with SPI that are working, using the core SPI library.

I created one Ethernet test (equal to the Webclient exampli from arduino, no alterations), that uses SPI Ethernet libraries.
When i build the project i get this error:

Quote
**** Build of configuration Release for project ETHERNET_test ****

make all
Building file: C:/Program Files/arduino 1.0.2/libraries/Ethernet/Dhcp.cpp
Invoking: AVR C++ Compiler
avr-g++ -I"C:\Program Files\arduino 1.0.2\hardware\arduino\cores\arduino" -I"C:\Program Files\arduino 1.0.2\hardware\arduino\variants\mega" -I"E:\LMIT HW  Energia\Wisebox\Eclipse-Arduino\ETHERNET_test" -I"C:\Program Files\arduino 1.0.2\libraries\Ethernet" -I"C:\Program Files\arduino 1.0.2\libraries\SPI" -D__IN_ECLIPSE__=1 -DUSB_VID= -DUSB_PID= -DARDUINO=102 -Wall -Os -ffunction-sections -fdata-sections -fno-exceptions -g -mmcu=atmega2560 -DF_CPU=16000000UL -MMD -MP -MF"Ethernet/Dhcp.d" -MT"Ethernet/Dhcp.d"  -c -o "Ethernet/Dhcp.o" -x c++ "C:/Program Files/arduino 1.0.2/libraries/Ethernet/Dhcp.cpp"
C:/Program Files/arduino 1.0.2/libraries/Ethernet/Dhcp.cpp:4:19: error: w5100.h: No such file or directory
make: *** [Ethernet/Dhcp.o] Error 1

**** Build Finished ****


Do you have any idea what might be the problem?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 23, 2012, 02:44 pm

Do you have any idea what might be the problem?

http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.htm#wire (http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.htm#wire)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: LuisSoares on Nov 23, 2012, 04:28 pm
Quote
The wire library also contains a include library. Due to "not top quality code of the wire library" a project using the wire lbrary also needs to include the utility folder. The same problem exists for ethernet and SD libraries.
From version 1.3 onwards libraries containing an utility subfolder also have the utility subfolder added to the include path.


I have been doing some tries, to add the utility to the include path.
But i haven´t got any luck.

Can you explain me the correct process for adding the utility subfolder to the include path in eclipse?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 23, 2012, 05:08 pm

Can you explain me the correct process for adding the utility subfolder to the include path in eclipse?

You need to go into your project properties (right click the project and select properties)
There you can go to this window and add the utility subfolders to the "GNU C" and "GNU C++" languages
(http://arduino.cc/forum/index.php?action=dlattach;topic=79595.0;attach=20950;image)
Best regards
Jantje

PS note you will see other values. That is perfectly normal.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: LuisSoares on Nov 23, 2012, 05:48 pm
Solved.

I had forgot to include the path in the GNU C++. Only included it in the GNU C.

Thank you
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Globe on Nov 26, 2012, 05:07 pm
Hi Jantle,

As I explained on this topic http://arduino.cc/forum/index.php/topic,86344.0.html I'm having problems compiling Wire library.

This is the message I get from the compiler console:
Quote
/Applications/Arduino1.app/Contents/Resources/Java/libraries/Wire/utility/twi.c:115: error: conflicting types for 'twi_readFrom'
/Applications/Arduino1.app/Contents/Resources/Java/libraries/Wire/utility/twi.h:45: error: previous declaration of 'twi_readFrom' was here
/Applications/Arduino1.app/Contents/Resources/Java/libraries/Wire/utility/twi.c:192: error: conflicting types for 'twi_writeTo'
/Applications/Arduino1.app/Contents/Resources/Java/libraries/Wire/utility/twi.h:46: error: previous declaration of 'twi_writeTo' was here


Do you have any hint to help me?
Many thanks in advance.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 26, 2012, 08:16 pm


Do you have any idea what might be the problem?

http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.htm#wire (http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.htm#wire)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Globe on Nov 29, 2012, 03:42 pm
Jantje,

I downloaded "twi.h" from Arduino issue #791 http://code.google.com/p/arduino/issues/list?can=2&q=twi.h&cells=tiles .

I still didn't manage to compile my code and the error is the same I posted above.

Is there any more step to follow? I really enjoy your Eclipse plugin but since I need to compile Wire library, I don't know what to do...

Has anyone else had this problem?

Thanks.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: LuisSoares on Nov 29, 2012, 03:49 pm
Hi Jantje,

I had the same problem as Globe.

When compiling the libraries i got the following errors:

Code: [Select]

**** Build of configuration Release for project ETHERNET_Test ****

make all
Building file: C:/Program Files/arduino 1.0.2/libraries/Wire/utility/twi.c
Invoking: AVR Compiler
avr-gcc -I"C:\Program Files\arduino 1.0.2\hardware\arduino\cores\arduino" -I"C:\Program Files\arduino 1.0.2\hardware\arduino\variants\mega" -I"C:\Program Files\arduino 1.0.2\libraries\Ethernet\utility" -I"C:\Program Files\arduino 1.0.2\libraries\Ethernet" -I"C:\Program Files\arduino 1.0.2\libraries\SPI" -I"C:\Program Files\arduino 1.0.2\libraries\Wire" -I"C:\Program Files\arduino 1.0.2\libraries\Wire\utility" -D__IN_ECLIPSE__=1 -DARDUINO=102 -DUSB_PID= -DUSB_VID= -Wall -Os -g -mmcu=atmega2560 -DF_CPU=16000000UL -MMD -MP -MF"Wire/utility/twi.d" -MT"Wire/utility/twi.d"  -c -o "Wire/utility/twi.o" "C:/Program Files/arduino 1.0.2/libraries/Wire/utility/twi.c"
C:/Program Files/arduino 1.0.2/libraries/Wire/utility/twi.c:115: error: conflicting types for 'twi_readFrom'
C:/Program Files/arduino 1.0.2/libraries/Wire/utility/twi.h:45: error: previous declaration of 'twi_readFrom' was here
C:/Program Files/arduino 1.0.2/libraries/Wire/utility/twi.c:192: error: conflicting types for 'twi_writeTo'
C:/Program Files/arduino 1.0.2/libraries/Wire/utility/twi.h:46: error: previous declaration of 'twi_writeTo' was here
make: *** [Wire/utility/twi.o] Error 1

**** Build Finished ****
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 29, 2012, 04:42 pm
LuisSoares
I see you use arduino 1.0.2. I never tested with this version.
Can you try with arduino 1.0.1?
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Globe on Nov 29, 2012, 06:37 pm

LuisSoares
I see you use arduino 1.0.2. I never tested with this version.
Can you try with arduino 1.0.1?
Best regards
Jantje


I believe the issue will remain... I have the same problem as LuisSoares and I'm using arduino 1.0.1.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 29, 2012, 08:48 pm
I just tested this with Arduino 1.0.1 works like a charm.

@Globe
You state you use Arduino 1.0.1. Can you explain why you get
Code: [Select]
/Applications/Arduino1.app/Contents/Resources/Java/libraries/Wire/utility/twi.h:45: error: previous declaration of 'twi_readFrom' was here
When twi_readFrom is declared on line 43 with me in Arduino 1.0.1?

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 29, 2012, 09:14 pm
I just did a quick test with 1.0.2 and it work fine.
I verified and twi_readFrom is declared on line 43 with me in Arduino 1.0.1 and Arduino 1.02.
As on your systems twi_readFrom is declared on line 45 you are not running a standard Arduino.
Please try installing a standard Arduino version (0022 0023 1.0 1.01 or 1.02) and try again.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Globe on Nov 29, 2012, 11:55 pm

I just tested this with Arduino 1.0.1 works like a charm.

@Globe
You state you use Arduino 1.0.1. Can you explain why you get
Code: [Select]
/Applications/Arduino1.app/Contents/Resources/Java/libraries/Wire/utility/twi.h:45: error: previous declaration of 'twi_readFrom' was here
When twi_readFrom is declared on line 43 with me in Arduino 1.0.1?

Best regards
Jantje


Jantje,

I am using a standard Arduino version (1.0.1) but I replaced the original twi.h that was inside utility folder on Wire library with the one I downloaded from Arduino issue #791 http://code.google.com/p/arduino/issues/list?can=2&q=twi.h&cells=tiles .
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 30, 2012, 12:28 am


I just tested this with Arduino 1.0.1 works like a charm.

@Globe
You state you use Arduino 1.0.1. Can you explain why you get
Code: [Select]
/Applications/Arduino1.app/Contents/Resources/Java/libraries/Wire/utility/twi.h:45: error: previous declaration of 'twi_readFrom' was here
When twi_readFrom is declared on line 43 with me in Arduino 1.0.1?

Best regards
Jantje


Jantje,

I am using a standard Arduino version (1.0.1) but I replaced the original twi.h that was inside utility folder on Wire library with the one I downloaded from Arduino issue #791 http://code.google.com/p/arduino/issues/list?can=2&q=twi.h&cells=tiles .

In the mean time I fixed the issue and arduino team changed the twi.h. So do not download this file. Use the arduino one.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: LuisSoares on Nov 30, 2012, 12:04 pm
Hi Jantje,

In my case it worked with 1.0.1. . Thank you

I helped Globe with is setup but somehow it didn´t worked, i did the same process.
He is using MacOS might that be a reason?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Globe on Nov 30, 2012, 01:31 pm
I tried today with another fresh installation of Eclipse and Arduino 1.0.2 (I never used this version before).

Now everything is working properly (at least it seems so) and I can finally compile Wire library.

Thanks for all your replies.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: LuisSoares on Dec 05, 2012, 12:11 pm
If i forgot to say thanks, i´m sorry

I´m really glad you developed this plugin and still take the time to help others.

Thank you Jantje

Keep up the awesome work
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: superman on Dec 07, 2012, 09:35 pm
I want to say thank you for all your hard work and hard time.

Let me start by explaining what i am trying to do with my arduino project.  I have basically created an arduino aquarium monitor/controller for my fish tank. Basically I started my projected by dividing it up into about 15 mini projects.  So i took care of each individual project and eventually combine them all into one. To do this have the main program void setup (){setupprogram1(); setupprogram2(); }..... I quickly realized the arduino ide was just really hard to work with on my larger project so i used notepad++ and then copied the program to arduino ide for compiling and uploading. I tried before to create a file for each project in arduino and get it to compile them but i got missing invalid function errors.

Now after doing some research i find out that eclipse is much better and more capable of doing exactly what i would like. I previous to finding this amazing plugin i tried to follow some tutorials, but they didn't go well. My problem is i am still trying to find out how to create a multifile program and i just can't seem to find what i am looking for by searching. This usually means i am searching for the wrong thing lol.

Greatly appreciate the help

P.S. keep up the great work 
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Dec 07, 2012, 09:42 pm
superman (is it really you  8) )
Thanks for the compliments
creating new files is easy in eclipse.
First thing is to decide is what type of file you want? Do you want a class a .cpp a .c a .h ....
Right click your project and select new->class(or header file; or source file; or source folder or just file)
Best regards
Jantje

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: superman on Dec 07, 2012, 10:25 pm


creating new files is easy in eclipse.
First thing is to decide is what type of file you want? Do you want a class a .cpp a .c a .h ....
Right click your project and select new->class(or header file; or source file; or source folder or just file)

Talk about fast reply
I guess the problem is i don't understand the files (I need to do more research)

Thank You
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Dec 07, 2012, 11:53 pm



creating new files is easy in eclipse.
First thing is to decide is what type of file you want? Do you want a class a .cpp a .c a .h ....
Right click your project and select new->class(or header file; or source file; or source folder or just file)

Talk about fast reply
I guess the problem is i don't understand the files (I need to do more research)

Thank You

Maybe this can help you
http://eclipse.baeyens.it/IDECompatibility.html (http://eclipse.baeyens.it/IDECompatibility.html)
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: superman on Dec 08, 2012, 12:37 am
In the installation guide

Quote
2) Set the the indexer to "include Arduino.h"
Add Arduino with its full path to the "files to index up-front"


In my version "Eclipse IDE for C/C++ Developers Version: Juno Service Release 1 Build id: 20120920-0800" I don't have the option to index files up front

here is what my screen looks like

(http://i50.tinypic.com/2zgyn2x.jpg)


Thanks again
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Dec 08, 2012, 07:56 pm
Superman
This setting is only available for indigo. In my experience; juno (after a compile) does not show Serial as a bug.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rbid on Dec 11, 2012, 06:08 pm
Have problems in setting the plugin with the new Arduino IDE 1.5.1r2,

After installing the plugin, when I configure the Arduino IDE Path, the tool does not accept it. :(

Also, I'm planning to use Eclipse with the Arduino Due which is an ARM and not an AVR processor...

Any hint?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Dec 11, 2012, 07:29 pm

Have problems in setting the plugin with the new Arduino IDE 1.5.1r2,

After installing the plugin, when I configure the Arduino IDE Path, the tool does not accept it. :(

Also, I'm planning to use Eclipse with the Arduino Due which is an ARM and not an AVR processor...

Any hint?


Yes
1.5.X rZ are beta versions that do not support all boards. It is majorly different in setup and has not yet stabilized.
So in other words I don't support it.
When the stable version comes out I'll look on how to support it.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rbid on Dec 11, 2012, 07:42 pm


Have problems in setting the plugin with the new Arduino IDE 1.5.1r2,

After installing the plugin, when I configure the Arduino IDE Path, the tool does not accept it. :(

Also, I'm planning to use Eclipse with the Arduino Due which is an ARM and not an AVR processor...

Any hint?


Yes
1.5.X rZ are beta versions that do not support all boards. It is majorly different in setup and has not yet stabilized.
So in other words I don't support it.
When the stable version comes out I'll look on how to support it.
Best regards
Jantje



I will see if I can work on it, hope I'm not getting in over my head.. I guess it can be done
- Tailor the compiler and linker
- Use the Arduino framework to get the same Arduino IDE look (hide all the stuff the user does not need to deal with)
- Tailor the programmer and serial console.

--- Ricky
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Dec 11, 2012, 08:30 pm
Ricky
I don't really understand what you are talking about.
The main difference between Arduino IDE 1.X and 1.5.X is that the hard coded stuff in 1.X is brought to the boards.txt and the programmers.txt and the platform.txt.
I have already done some work on this but the Arduino core team does not share their plans and they tend to do things different from how I do things. For instance I had decided to add platform folders under hardware (like teensy does) which contains board.txt files and Arduino core team decided to have hardware/[make]/[technology]/[configuration files].
[make]=Arduino
[Technology]= avr or sam
[configuration files] = boards.txt or programmers.txt or platform.txt.
As a result I need to change my board.txt reading code. I just hate that. :smiley-zipper:

The core team noted that the whole setup may change. To avoid the frustration of doing more things twice I decided to wait untill an official release is released to see how the core team decided to do it.


I will see if I can work on it,

Please do; the code is available at github. Fork it and go from there. https://github.com/jantje/arduino-eclipse-plugin (https://github.com/jantje/arduino-eclipse-plugin)


hope I'm not getting in over my head..

Why would you?


I guess it can be done

I'm sure it can be done. I think it should even be easier now as the commands are more disclosed and the framework to do it is in-place.



- Tailor the compiler and linker

No need to do this. The only thing that needs to be done is decide on the compiler and linker and provide them the good options.




- Use the Arduino framework to get the same Arduino IDE look (hide all the stuff the user does not need to deal with)

If you are willing to work on a arduino IDE perspective; I'm wiling to have it as part of the IDE.
Note that the Arduino "precompiler" is needed for this to work 100%.


- Tailor the programmer and serial console.

I really don't know what you are referring to here.


Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rbid on Dec 11, 2012, 11:09 pm

Ricky
I don't really understand what you are talking about.
The main difference between Arduino IDE 1.X and 1.5.X is that the hard coded stuff in 1.X is brought to the boards.txt and the programmers.txt and the platform.txt.
I have already done some work on this but the Arduino core team does not share their plans and they tend to do things different from how I do things. For instance I had decided to add platform folders under hardware (like teensy does) which contains board.txt files and Arduino core team decided to have hardware/[make]/[technology]/[configuration files].
[make]=Arduino
[Technology]= avr or sam
[configuration files] = boards.txt or programmers.txt or platform.txt.
As a result I need to change my board.txt reading code. I just hate that. :smiley-zipper:

The core team noted that the whole setup may change. To avoid the frustration of doing more things twice I decided to wait untill an official release is released to see how the core team decided to do it.

Above you explained exactly what I wanted to understand... therefore indirectly you have understand me :)



I will see if I can work on it,

Please do; the code is available at github. Fork it and go from there. https://github.com/jantje/arduino-eclipse-plugin (https://github.com/jantje/arduino-eclipse-plugin)


hope I'm not getting in over my head..

Why would you?


I guess it can be done

I'm sure it can be done. I think it should even be easier now as the commands are more disclosed and the framework to do it is in-place.


Great, now I'm reading about GIT, before I dive into it :)
Hope the work is not over my knowledge.. or that I will have enough time to deal with it :)



- Tailor the programmer and serial console.

I really don't know what you are referring to here.

The idea is to use Eclipse to program the Arduino board and then use the Serial Monitor inside Eclipse as a terminal in the older days.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jimmy60 on Dec 13, 2012, 04:34 pm
Hey, thanks for this plugin. I was able to get it up and working, uploading a sketch, fairly easily. Had a little problem getting the serial monitor to work. I'm using Ubuntu 12.04 and Eclipse Indigo and had the issue with not having the right port. A quick edit of eclipse.ini solved it.

Now if only I was skilled enough to really use it. Oh well, can't learn it by avoiding it.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Dec 13, 2012, 04:46 pm
Jimmy60
Thanks for the feedback.

Now if only I was skilled enough to really use it. Oh well, can't learn it by avoiding it.

That is the right spirit.
I live with the rule: "Do something that scares you; every day".
Best regards.
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rockwallaby on Dec 16, 2012, 02:32 am
Hello Jantje,

I thought I would pop along to say hi and again a huge thanks for your fantastic plugin to allow us to program our Arduino's using Eclipse.
I couldn't imagine having to use the Arduino IDE again, scary.

I have version 1.2.5.5 of your plugin running on OSX, but a question,
I am still using Arduino 1.0.1, can I move to 1.0.2 or preferably 1.0.3?

Met vriendelijke groet  :)
Paul
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Dec 16, 2012, 01:34 pm
Paul
Thanks for the nice words.
I havn't done any real testing with 1.0.2 and 1.0.3 but I have done quick testing and havn't seen any problems.
So it should be ok.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: yoda2nd on Feb 24, 2013, 04:09 pm
Thank you for all the hard work on this plugin!  I was able to get up and compiling in about 15 min thanks this plugin.

I have been having one issue however.  The only way I can upload to my Arduino Micro, is to do the following:

1.  Goto Window> Preferences >Arduino>Arduino and check Disable RXTX
2.  Unplug the Arduino Micro and plug it back in
3.  Press the AVR upload button. <--Must be done within a few seconds of plugging the Arduino back in.

If I do not do the above, all that happens is I get a message box showing eclipse is running AVRDude.  I can not cancel and there are no messages in the console view, it just hangs there indefinitely.

I am running Linux Mint and Eclipse Indigo.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 24, 2013, 05:08 pm
yoda2nd
Thanks for the nice words on the plugin. I do not own a micro nor do I own Linux mint so I can't say I have tested this setup.
Are you using the 64 or 32 bit version of eclipse indigo?
Which version of the Arduino IDE are you using?
Are you using the serial monitor of the plugin?
In your boards.txt file do you have the following line?
Code: [Select]
micro.upload.disable_flushing=true
If so and you are not using the serial monitor than the plugin ignores the com port completely.
I also wonder why you have to select
Quote
Goto Window> Preferences >Arduino>Arduino and check Disable RXTX

For every upload. This is a global setting. Setting it only set a global flag.
Can you post an image of eclipse when you see the "message box showing eclipse is running AVRDude"
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: spatula on Feb 24, 2013, 06:12 pm
Hi yoda2nd,
perhaps you already did, but you may look at this page for further info: http://arduino.cc/en/Guide/ArduinoLeonardoMicro#toc4 (http://arduino.cc/en/Guide/ArduinoLeonardoMicro#toc4). I don't have a micro, but I understand that before uploading the sketch the Arduino IDE resets the micro, which creates a new virtual port (the micro has no separate controller for serial communication). I understand that in the IDE the timing between the reset and the launch of avrdude is based on some previous trial and error, not "exact science".

This explains why disconnecting the micro works for you (a reset should produce the same effect), and the fact that you have to find a timing that works for you before pressing upload, allowing for the new virtual port to be recognized by your OS, but with the micro still running the bootloader. The most likely reason why avrdude hangs is that it's trying to communicate with a micro that is already past the bootloader stage.

I take this opportunity to thank Jantje for his excellent plugin. Nice to know he's still monitoring this thread.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 24, 2013, 07:19 pm
@spatula
Thanks for pointing to the link.
@all
I indeed have special code for the leonardo upload (I do own a Leonardo). As the micro like the leonardo has no dedicated usb chip it probably needs this code as well.
The easiest way to test this hypothesis is as follows:
Change in your boards.txt
Code: [Select]
leonardo.name=Arduino Leonardo
to
Code: [Select]
leonardo.name=Real Arduino Leonardo
and
Code: [Select]
micro.name=Arduino Micro
to
Code: [Select]
micro.name=Arduino Leonardo
Then select the board "Arduino Leonardo" as your board in the project properties (it is actually the micro)
And try again.
If this works it proves the hypothesis because I actually test on the name of the board.
Looking at the 1.5.2 boads.txt file I would think the esplora and the lilipad USB have the same issue.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: yoda2nd on Feb 24, 2013, 10:45 pm
Thanks for such a quick response.

Quote

Are you using the 64 or 32 bit version of eclipse indigo?
Which version of the Arduino IDE are you using?
Are you using the serial monitor of the plugin?


I am using:

64bit Eclipse Indigo
Arduino  1.0.1

And I am not using the serial monitor.

Linux Mint is a fork of Ubuntu with no Unity, it should work just the same as if it were run on Ubuntu.

Quote

In your boards.txt file do you have the following line?
Code:
micro.upload.disable_flushing=true

If so and you are not using the serial monitor than the plugin ignores the com port completely.


I have been using the default boards.txt file from 1.0.1, so there is no Micro listed.  I have been using the Leonardo configuration from the boards.txt file and it works fine in the IDE.  The micro was not added to the boards.txt file until 1.0.2, so I could try giving 1.0.2 whirl if you want.

I have checked the Leonardo settings and upload.disable_flush is set to true and setting it to false has no effect. 

I wonder if perhaps the timing between opening and closing the serial port and running ARVDude is different for the Leonardo than the Micro ?


Quote

I also wonder why you have to select
Quote
Goto Window> Preferences >Arduino>Arduino and check Disable RXTX
For every upload. This is a global setting. Setting it only set a global flag.


When Disable RXTX is selected, does the plugin not try and reset the arduino?

Quote

Can you post an image of eclipse when you see the "message box showing eclipse is running AVRDude"


(http://s12.postimage.org/i3e2q0m15/Screenshot_from_2013_02_24_14_55_16.png) (http://postimage.org/image/i3e2q0m15/)

(http://s12.postimage.org/3mqtbfwjt/Screenshot_from_2013_02_24_14_56_48.png) (http://postimage.org/image/3mqtbfwjt/)


Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 24, 2013, 11:25 pm
There is a different variant file for micro and leonardo so I would not use leonardo to program a micro.
So try with arduino IDE 1.0.2 and enabled RXTX

Quote
When Disable RXTX is selected, does the plugin not try and reset the arduino?

Not at all. How do you go from "disabling RXTX" to "resetting"?
When you disable RXTX the plugin stops doing all com port actions. So no reset before upload (you have to press the reset button yourself) and no serial monitor. How can the plugin still upload? Because the plugin starts avrdude who does the com port actions.

Best regards
Jantje

PS If you fiddle around like you are; it is nice to warn the reader in advance.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: yoda2nd on Mar 03, 2013, 11:13 pm
Sorry for taking so long to get back.

I tried upgrading to 1.0.2 and I am able to upload to the micro with RXTX enabled  However I still have to reset the micro before upload (press the reset button).

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 04, 2013, 12:04 am
Nice to hear you're got it working with the reset work around.
I have a micro now but I don't get it to work on my redhat :-(
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 23, 2013, 07:23 pm
For those owning a due and those wanting to use Arduino IDE 1.5.2 beta for other reasons:
I have released beta V2 that supports Arduino IDE 1.5.2. beta.
Read more at http://blog.baeyens.it/#post4 (http://blog.baeyens.it/#post4)

If you do not need Arduino IDE 1.5.2 beta and you already use the plugin I advice to stick to the plugin version as described at http://www.baeyens.it/eclipse (http://www.baeyens.it/eclipse) untill Arduino IDE 1.5.X is no longer beta.

For people starting with the plugin V2 can be considered.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Gentoo-Thomas on Mar 25, 2013, 09:21 pm
Hello Jantje, thank you very much for your great plugin!

I have tested it successfully with gentoo linux now. My environment:

Portage 2.1.11.55 (default/linux/amd64/13.0, gcc-4.6.3, glibc-2.15-r3, 3.7.10-gentoo x86_64)
dev-util/eclipse-sdk-3.7.1-r11 (Indigo, seden overlay)
dev-embedded/arduino-1.0.3-r1
dev-java/icedtea-bin-7.2.3.6
sys-devel/crossdev-20120721 ('-r1' include my local patch for using multilib on AVR's)
-->cross-avr/avr-libc-1.8.0
-->cross-avr/gcc-4.6.3
-->cross-avr/binutils-2.20.1-r1
dev-embedded/avrdude-5.11.1 ('-r1' include my local patch for higher timout in case of manual reset)
!!But for my very first tests avrdude is used from Arduino-IDE!!
Arduino Eclipse Extension 1.2.4 installed via "http://www.baeyens.it/eclipse/update"

Arduino NG rev.c (tested with Blink.cpp und DoubleCounter.cpp)
Arduino Mega2560 rev. 1 (tested with Blink.cpp und DoubleCounter.cpp)
Arduino Pro Mini328 5V/16MHz (not tested yet)

For some further improvements for linux users here example entries for udev rules (will always get device "/dev/arduino"):
#Bus 005 Device 004: ID 2341:0010 Arduino SA Mega 2560 (CDC ACM)
#ATTRS{manufacturer}=="Arduino (www.arduino.cc)"
#ATTRS{product}=="Arduino Mega 2560"
SUBSYSTEMS=="usb", ATTRS{product}=="Arduino Mega 2560", ATTRS{manufacturer}=="Arduino (www.arduino.cc)", NAME="ttyACM%n", SYMLINK+="arduino"

#Bus 005 Device 006: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
#ATTRS{manufacturer}=="FTDI"
#ATTRS{product}=="FT232R USB UART"
SUBSYSTEMS=="usb", ATTRS{product}=="FT232R USB UART", ATTRS{manufacturer}=="FTDI", NAME="ttyUSB%n", SYMLINK+="arduino"

Good Luck, Thomas
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Gentoo-Thomas on Mar 25, 2013, 09:29 pm
Now I have made some pictures of my running configuration (gentoo linux) to share with you, because I have found only pictures from Windows's and Mac's. Eventually someone could need this to getting started on linux.

Good Luck, Thomas
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 25, 2013, 09:59 pm
Thomas
Thanks for the feedback and sharing the images.
For those watching the images. With version 2 of the plugin only the first image is valid. The other configuration pages originated from avrEclipse and no longer exist in V2.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Gentoo-Thomas on Mar 25, 2013, 10:20 pm
Hello Jantje, after some further playing around I have some questions and suggestions.

1.) Is there a possibility to configure the name of the automatically generated library f.e. "Arduino_Mega_2560_or_Mega_ADK" --> I would prefer the name "000b_ArduinoMega2560_Core". This will force the libraries to be listed on first position, before all other projects.

2.) Using "Serial Monitor View" give me only "/dev/ttyS0" (instead of "/dev/ttyACM0"), but "/dev/ttyS0" up to "/dev/ttyS3" is already in use on my linux box (eventually on all gentoo linux systems). Is this configurable or hard coded? Eventually you could add "/dev/arduino" in the search list? Than linux users could map any device using the udev rules to "/dev/arduino".

3.) Arduino-Configuration page, renaming suggestion: "test serial dll" --> "test serial library (rxtx)" would be better understandable for linux, mac and windows users

Again, Thank you for the great work! I had fiddling around with the old AVR-Plugin two days without success. Your's worked after 1 hour.

Let me know how I can help you improving the plugin.

Some ideas:
-testing with gentoo (at the moment only indigo is possible)
-write an wiki for gentoo users --> http://en.gentoo-wiki.com
-make some usability test (I'm an usability engineer) --> create issues at git
-translation to german language
-make some small bugfixes
-make a donation for an picaxe  :smiley-red:
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 26, 2013, 02:03 pm
Thomas

1.) Is there a possibility to configure the name of the automatically generated library f.e. "Arduino_Mega_2560_or_Mega_ADK" --> I would prefer the name "000b_ArduinoMega2560_Core". This will force the libraries to be listed on first position, before all other projects.

Version 2 no longer has a separate Arduino project. There is a Arduino folder in each and every sketch and a library folder containing the imported libraries. If this is really important I would advice to go to V2. However this functionality relies on CDT 1.8.1 which needs Juno.
The only option I can think of is to download the code and do the mod yourself.
https://github.com/jantje/arduino-eclipse-plugin/blob/master/it.baeyens.arduino.common/src/it/baeyens/arduino/common/ArduinoConst.java (https://github.com/jantje/arduino-eclipse-plugin/blob/master/it.baeyens.arduino.common/src/it/baeyens/arduino/common/ArduinoConst.java)
Code: [Select]
public static final String CoreProjectNamePrefix = ""; //used to be arduino_ but when chaging from MCU to board replaced by nothing
As you are using version 1.2.4 you do not want this version but the one tagged with Release 1.2.4



2.) Using "Serial Monitor View" give me only "/dev/ttyS0" (instead of "/dev/ttyACM0"), but "/dev/ttyS0" up to "/dev/ttyS3" is already in use on my linux box (eventually on all gentoo linux systems). Is this configurable or hard coded? Eventually you could add "/dev/arduino" in the search list? Than linux users could map any device using the udev rules to "/dev/arduino".

I know what you are talking about  :~
This is actually a rxtx feature. Arduino has its own version of the rxtx dll. The problem you mention is a Linux only issue and has recently been discussed on the developers list. The only correct way to find the serial devices is to look at /dev/serial. The Arduino team is looking at https://github.com/ffissore/java-simple-serial-connector  (https://github.com/ffissore/java-simple-serial-connector) as a replacement for rxtx. I have not yet (and I'm not planning to) look at what the impact will be on the eclipse plugin.
Workaround is to add following line to your eclipse.ini file
Code: [Select]
-Dgnu.io.rxtx.SerialPorts=/dev/ttyACM0:/dev/ttyACM1:/dev/ttyACM2:/dev/ttyACM3:/dev/ttyUSB0:/dev/ttyUSB1:/dev/ttyUSB2:/dev/ttyUSB3:/dev/ttyUSB4:/dev/arduino


3.) Arduino-Configuration page, renaming suggestion: "test serial dll" --> "test serial library (rxtx)" would be better understandable for linux, mac and windows users

Is your objection against the word dll or the lack of rxtx.



Let me know how I can help you improving the plugin.

Some ideas:
-testing with gentoo (at the moment only indigo is possible)
-write an wiki for gentoo users --> http://en.gentoo-wiki.com
-make some usability test (I'm an usability engineer) --> create issues at git
-translation to german language
-make some small bugfixes
-make a donation for an picaxe  :smiley-red:

Help is welcome. There are however some things to keep in mind.
1) I'm not planning to release any more V1 versions (Normally Arduino IDE 1.0.3 should have been the last V1 Arduino IDE release.)
2) V2 is a complete rewrite (both for my plugin as for the Arduino IDE)
3) I have not foreseen translation functionality in the plugin.
4) Due to health constraints there is no time for me to spend on the plugin in the coming months. Even adding a picaxe donation button will have to wait.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Gentoo-Thomas on Mar 26, 2013, 08:18 pm
Hello Jantje, Thank you for your answers!
I will test your suggestions to solve my little problems.

Quote
Q: 1.) Is there a possibility to configure the name of the automatically generated library f.e. "Arduino_Mega_2560_or_Mega_ADK" --> I would prefer the name "000b_ArduinoMega2560_Core". This will force the libraries to be listed on first position, before all other projects.
A: The only option I can think of is to download the code and do the mod yourself.
Now I have modified a little bit the file "Boards.txt" (/usr/share/arduino/hardware/arduino/) which is used to generate the names. Sketch was compilable, downloadable and seems to work.

I would advice to go to V2. However this functionality relies on CDT 1.8.1 which needs Juno.

Yes, that is an problem actually for gentoo users - unfortunately there is no official release for eclipse Juno. Also the Indigo, I'm using, is from an overlay (seden) but quite stable. For the future do you plan to separate the V1 and V2 update site or is this already the case? If yes, how to use it?

The problem you mention is a Linux only issue and has recently been discussed on the developers list.
Please can you post an link to follow this discussion.

Is your objection against the word dll or the lack of rxtx.
The word 'dll' is the name for the file extension/suffix of the library used in windows environment (Dynamic Link Library?). Linux and possible Mac users don't know about that (linux extensions are f.e. ".a", ".so" for libraries).

Even adding a picaxe donation button will have to wait.

Oh sorry, this was only a joke. I hope your answer also.

Help is welcome.

HOW can I help you? Please give me some notes.

Best regards, Thomas
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Sh4kE on Mar 27, 2013, 04:58 pm
Hey Jantje,

I don't know if it's the right place here for asking for your help, but I don't know further anymore.

When I run avrdude from within eclipse it always gives me:
"AVRDude does not support the project target MCU [ATmega32U4]".
But on the other hand if I'm typing in the exact same command from within console it works fine
Code: [Select]
avrdude -patmega32u4 -cavr109 -P/dev/ttyACM0 -b57600 -Uflash:w:testSerial.hex:a

It makes no difference whether I check the box "use custom configuration file" in the avrdude preferences and giving him the right config file.
I'm using ubuntu 12.10 64 bit with an arduino leonardo.

Do you have any clue about this?

Thanks, Sh4kE
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 27, 2013, 06:51 pm
@SH4kE
Try
Code: [Select]
which avrdude and see whether it is the Arduino provided avrdude you are running on the command line.
If it is not the same that explains your problem.

@gen2thomas
Quote
For the future do you plan to separate the V1 and V2 update site or is this already the case? If yes, how to use it?

V1 and V2 are on different update sites. This to avoid unwanted upgrades. V2 update site is at
http://www.baeyens.it/eclipse/V2

Quote
Please can you post an link to follow this discussion.

The discussion was/is on the Arduino developers mailing list. I do not know whether there is a HTML history version.

Quote
The word 'dll' is the name for the file extension/suffix of the library used in windows environment (Dynamic Link Library?). Linux and possible Mac users don't know about that (linux extensions are f.e. ".a", ".so" for libraries).

For me this is a typical cross platform naming discussion. I'll consider writing "Dynamic Link Library" or just "Library". We'll see what happens in 1.5.3 with rxtx.

Quote
I hope your answer also.

No joke.

Quote
HOW can I help you? Please give me some notes.

Following options you propose are very helpfull
Quote
-write an wiki for gentoo users --> http://en.gentoo-wiki.com
-make some usability test (I'm an usability engineer) --> create issues at git

Other things I could use help with are

Note that the website is on github, but I need to check whether that is the latest version.

Best regards
Jantje



Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: katekarnage on Mar 28, 2013, 04:50 pm
Loving V2 so far, just ironing out a few bugs...

1.) The upload ignores build configurations and always tries to upload from the "Release" Directory no matter what build configuration is active.

2.) The only way I've got my Leonardo to work is by setting the project preferences to the bootloader com port then doing a manual reset on upload, if I use the normal com port setting, then upload resets the board (the board led starts flashing and windows re-aquirres the bootloader port) but the process then errors saying "Leonardo upload port is not appearing after reset"

3.) Currently I've not got my Due to work, compile goes fine, upload appears to work fine, but after upload the due freezes and can;t be reset, the only way to make it come back to life is to upload something from the Arduino IDE, then it will work properly - I'm still investigating this one...


As you've said your ill (Get well!) and not going to have much time, do you have V2 on Github so I could take a look?


Deeply appreciate all the work you've done and will be "buying you an arduino" when next month's paycheck comes in, as being able to work in a sensible IDE is wonderful!


Thanks in advance!


Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 29, 2013, 01:52 pm
katekarnage
Thanks for the nice words


1.) The upload ignores build configurations and always tries to upload from the "Release" Directory no matter what build configuration is active.

I'm surprised you got it going until the upload.
I took the design decision to hard code "Release" as configuration name. Given the fact that all settings are coming from boards.txt and platform.txt I don't see the usage of more configurations and as such the configuration name is irrelevant. Can you explain your use case for having more or another configuration name?


2.) The only way I've got my Leonardo to work is by setting the project preferences to the bootloader com port then doing a manual reset on upload, if I use the normal com port setting, then upload resets the board (the board led starts flashing and windows re-aquirres the bootloader port) but the process then errors saying "Leonardo upload port is not appearing after reset"



3.) Currently I've not got my Due to work, compile goes fine, upload appears to work fine, but after upload the due freezes and can;t be reset, the only way to make it come back to life is to upload something from the Arduino IDE, then it will work properly - I'm still investigating this one...

I just tried due on Linux and tha works fine. Which os are you using?


As you've said your ill (Get well!) and not going to have much time, do you have V2 on Github so I could take a look?

It's quite some work to upload to github and I still havn't decided how I will treat V1 and V2 in github. I attached the upload code so you can have a look.
Note that I proposed a different upload definition to the arduino team so I didn't touch this code to much (and it is not top quality code)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Sh4kE on Apr 01, 2013, 10:23 am
My console-version is /usr/bin/avrdude and the same goes for arduino-ide itself. But I can't set the /usr/bin/ folder in the preferences. It just tells me that it is not the right arduino-folder. I decided to clone the current arduino-ide from github and gave that folder in the settings. But then the former error appears.

Can you set /usr/bin/ as your arduino folder in the preferences?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 01, 2013, 06:30 pm
Sh4kE
Arduino IDE and the eclipse plugin use the avrdude located at "\hardware\tools\avr\bin"
As the command line uses a different avrdude it is perfectly acceptable that the behavior is different.
On the other hand I completely fail to understand what you are trying to achieve.
Please read http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.htm#doesntwork (http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.htm#doesntwork) and say which part fails for you.
Best regards
Jante
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Gentoo-Thomas on Apr 08, 2013, 10:13 pm
Quote
G2T: The word 'dll' is the name for the file extension/suffix of the library used in windows environment (Dynamic Link Library?). Linux and possible Mac users don't know about that (linux extensions are f.e. ".a", ".so" for libraries).
JANTJE: For me this is a typical cross platform naming discussion. I'll consider writing "Dynamic Link Library" or just "Library". We'll see what happens in 1.5.3 with rxtx.

No, this was not my intention! I'm using both (win7 at work and win7+linux at home) with more or less pros and cons of each, dependent of the task to do. The main goal was to help non windows users to understand your plugin's handling in the "usability engineers" point of few. But, yes the absence of rxtx will resolve this issue itself 8).

Quote
G2T: I hope your answer also.
JANTJE: No joke.

Ok, why not. Picaxes are inexpensive devices, but you would be missed here  =(.

Quote
-write an wiki for gentoo users --> http://en.gentoo-wiki.com
-make some usability test (I'm an usability engineer) --> create issues at git

The wiki is now available on the new gentoo wiki page: https://wiki.gentoo.org/wiki/Arduino
Feel free to send me suggestions for rework, if you don't want to do it yourself.

Quote
Other things I could use help with are

  • Beautify my web site www.baeyens.it/eclipse (http://www.baeyens.it/eclipse)

  • Correct errors on the web site.


Note that the website is on github, but I need to check whether that is the latest version.


Sorry I'm not familiar with web site development. I will spend some time to measure/rate your plugin against the european norm ISO4291 (http://de.wikipedia.org/wiki/EN_ISO_9241, http://en.wikipedia.org/wiki/ISO_9241) and try to make some understandable issues on your git site. (But I'm afraid of the eclipse itself need more help on this topic than your plugin)

Have fun, Thomas
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 08, 2013, 11:57 pm
Thomas
Great work on the gentoo wiki. I made some small changes.
Is it really necessary to install the toolchains separately? They are included in the Linux64 bit package on arduino.cc.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: katekarnage on Apr 09, 2013, 03:02 pm

katekarnage
Thanks for the nice words


1.) The upload ignores build configurations and always tries to upload from the "Release" Directory no matter what build configuration is active.

I'm surprised you got it going until the upload.
I took the design decision to hard code "Release" as configuration name. Given the fact that all settings are coming from boards.txt and platform.txt I don't see the usage of more configurations and as such the configuration name is irrelevant. Can you explain your use case for having more or another configuration name?



This is partially because I'm an old C/C++ programmer and have always been doing debug/release builds and have a lot of serial-emitted output dependent on a defined DEBUG and other symbols, even though, in this case I'm obviously not needing to change optomisations or debug symbol inclusion. Also I have several projects where the same arduino board is being used in a number of slightly different circumstances with a few compiletime directives to control the created code.

Build configurations are the easiest way of handling these, with adding a few -D direcetives to the compiler EXTRAFLAGS.

As, in this case there is only defines and no other changes to the compile environment, then, if this is too hard, then don;t worry as I can always sort it through altering defines in the main project header file and recompiling like that - more of a nicity really.


2.) The only way I've got my Leonardo to work is by setting the project preferences to the bootloader com port then doing a manual reset on upload, if I use the normal com port setting, then upload resets the board (the board led starts flashing and windows re-aquirres the bootloader port) but the process then errors saying "Leonardo upload port is not appearing after reset"



3.) Currently I've not got my Due to work, compile goes fine, upload appears to work fine, but after upload the due freezes and can;t be reset, the only way to make it come back to life is to upload something from the Arduino IDE, then it will work properly - I'm still investigating this one...

I just tried due on Linux and tha works fine. Which os are you using?



Win7 64 bit with 32bit Eclipse Juno.

But...

I have done more investigation of this, I had an idea or 2, and have gone back to basics.

A simple blink program uploads and runs fine, so the basic upoloading is fine.

The problem seems to be when I attempt to use the Scheduler. This code will brick the Due from eclipse and need it to be reset with the arduino IDE:

TestSched.cpp:

Code: [Select]
// Do not remove the include below
#include "SchedTest.h"

#include <Scheduler.h>

int led = 13;

void setup() {
  pinMode(led, OUTPUT);
  Scheduler.startLoop(loop2);
}

void loop() {
  digitalWrite(led, HIGH);
  delay(1000);
}

void loop2() {
  delay(1300);
  digitalWrite(led, LOW);
}


TestSched.h:
Code: [Select]
// Only modify this file to include
// - function definitions (prototypes)
// - include files
// - extern variable definitions
// In the appropriate section

#ifndef SchedTest_H_
#define SchedTest_H_
#include "Arduino.h"
//add your includes for the project SchedTest here


//end of add your includes here
#ifdef __cplusplus
extern "C" {
#endif
void loop();
void loop2();
void setup();
#ifdef __cplusplus
} // extern "C"
#endif

//add your function definitions for the project SchedTest here

//Do not add code below this line
#endif /* SchedTest_H_ */


I will delve deeper into the build logs and see if I can isolate this a bit more, and check I haven;t made a galringly obvious mistake!

Thanks again for your good work!

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 09, 2013, 06:56 pm
Quote
This is partially because I'm an old C/C++ programmer and have always been doing debug/release builds and have a lot of serial-emitted output dependent on a defined DEBUG and other symbols, even though, in this case I'm obviously not needing to change optomisations or debug symbol inclusion. Also I have several projects where the same arduino board is being used in a number of slightly different circumstances with a few compiletime directives to control the created code.

I don't consider myself old but I have some decades of experiance in programming C/C++ myself; so I know what you are talking about.
I always had mixed feelings about not supporting multiple configurations. Now with he potential of debugging on the DUE this may become harder.
Point is however that the configuration in Arduino 1.5.X is done in 2 files ( boards.txt platform.txt) external to Eclipse. This is why I removed nearly all compiling options in V2. My current thinking is that if you want multiple configurations you have to modify the boards.txt file.
I currently see 2 options
1) adding a menu option for debug
2) adding a debug board (uno debug; mega debug ....)
Both are very easy to implement and supported by Arduino IDE and my Arduino eclipse plugin V2.
Do you think this can help you out?

I hope you can pinpoint the Due upload problem you are experiencing. (I see nothing glaringly wrong in the info)
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Gentoo-Thomas on Apr 09, 2013, 09:20 pm

Great work on the gentoo wiki. I made some small changes.

Thanks for compliment and the complements! I also made some small changes again.


Is it really necessary to install the toolchains separately? They are included in the Linux64 bit package on arduino.cc.

Now I have uninstalled the toolchain (emerge -C sys-devel/crossdev cross-avr/gcc cross-avr/binutils cross-avr/avr-libc). Than unmerge and remerge the arduino (emerge -C arduino, emerge arduino). After successfully open the IDE the compilation result in an error: 'Cannot run program "avr-g++" ...'.

For sure on gentoo the installation of an separate toolchain (f.e. with crossdev) is necessary. Btw. crossdev will be already merged as dependency of arduino.

Good luck, Thomas
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: neuweiler on Apr 21, 2013, 02:40 pm
First of all: a BIG "thank you" Jantje ! This plug-in is exatly what has been missing. After being accustomed to Eclipse-Style programming (mainly in Java), it was hard for me to type all the code and have no auto-completion, no F3 key, etc. Also compiling in the Arduino IDE takes much too long. I'm very happy you were able to implement the incremental builds. This saves so much time and it (almost) works like a charm! I installed a new Eclipse C++ (Juno) edition, installed V2beta of your plug-in and it worked fine.

There are two things I'm fighting with:
1) Using the procedure described in http://eclipse.baeyens.it/IDECompatibility.html does not work - no .o file is generated for the .ino file. This is what happens:
Code: [Select]
"Z:/development/arduino/arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-gcc" -c -g -Os -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -mcpu=cortex-m3 -DF_CPU=84000000L -DARDUINO=152 -D__SAM3X8E__ -mthumb -DUSB_PID=0x003e -DUSB_VID=0x2341 -DUSBCON "-IZ:/development/arduino/arduino-1.5.2/hardware/arduino/sam/system/libsam" "-IZ:/development/arduino/arduino-1.5.2/hardware/arduino/sam/system/CMSIS/CMSIS/Include/" "-IZ:/development/arduino/arduino-1.5.2/hardware/arduino/sam/system/CMSIS/Device/ATMEL/"   -I"Z:\development\arduino\arduino-1.5.2\hardware\arduino\sam\cores\arduino" -I"Z:\development\arduino\arduino-1.5.2\hardware\arduino\sam\variants\arduino_due_x" -MMD -MP -MF"SensorOnLCD.ino.d" -MT"SensorOnLCD.ino.d" "../SensorOnLCD.ino"  -o  "SensorOnLCD.ino.o"
arm-none-eabi-gcc.exe: ../SensorOnLCD.ino: linker input file unused because linking not done
Finished building: ../SensorOnLCD.ino

Changing the file back to .cpp, calls the compiler like this (note: the g++ compiler is called instead of c++ and some parameters are different):
Code: [Select]
"Z:/development/arduino/arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-g++" -c -g -Os -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -mcpu=cortex-m3 -DF_CPU=84000000L -DARDUINO=152 -D__SAM3X8E__ -mthumb -DUSB_PID=0x003e -DUSB_VID=0x2341 -DUSBCON "-IZ:/development/arduino/arduino-1.5.2/hardware/arduino/sam/system/libsam" "-IZ:/development/arduino/arduino-1.5.2/hardware/arduino/sam/system/CMSIS/CMSIS/Include/" "-IZ:/development/arduino/arduino-1.5.2/hardware/arduino/sam/system/CMSIS/Device/ATMEL/"   -I"Z:\development\arduino\arduino-1.5.2\hardware\arduino\sam\cores\arduino" -I"Z:\development\arduino\arduino-1.5.2\hardware\arduino\sam\variants\arduino_due_x" -MMD -MP -MF"SensorOnLCD.cpp.d" -MT"SensorOnLCD.cpp.d" -x c++ "../SensorOnLCD.cpp"  -o  "SensorOnLCD.cpp.o"
Finished building: ../SensorOnLCD.cpp


2) I wanted to access a LCD shield. I added the path to the library as described earlier for GNU C and GNU C++ under the tab "project properties -> C/C++ General -> Paths and Symbols -> Includes". This allowed me to work with the include files. But the LiquidCrystal.cpp did not get compiled. So I added the same path again under "C/C++ General -> Paths and Symbols -> Source Location" and added an exclusion filter for "examples" for this entry. This worked. Everything got compiled and the excutable works fine. But I'm not sure if this is the correct approach. Would it be possible for you to add a way to add such libraries under "project properties -> Arduino" (or elsewhere where it makes sense) ?

Regards,
Michael
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 21, 2013, 10:43 pm
Michael
Thanks for the nice words.
As to your problems
1) I think you have defined .ino and .pde as C files and not as C++ files.
2) As you are using V2: Have you tried selecting "Arduino->Add a library to the selected project" in the menu bar?
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: inode on Apr 22, 2013, 10:57 pm
Hi all,

I'm trying to install the V2 to eclipse but seem that the server has problems (installed V1 without problem). Someone can check if the V2 release is installable via the url http://www.baeyens.it/eclipse/V2

Thank you.

Best regards,

inode

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: neuweiler on Apr 23, 2013, 11:19 am
Quote
Thanks for the nice words.

Welcome, you more than deserve it!

Quote
1) I think you have defined .ino and .pde as C files and not as C++ files.

Argh, what a stupid mistake. Thanks for the support and sorry for bothering you.

Quote
2) As you are using V2: Have you tried selecting "Arduino->Add a library to the selected project" in the menu bar?

Holy smokes! No, I didn't see the menu yet. Fantastic work!

Regards,
Michael
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 23, 2013, 11:51 am
@inode
V1 and V2 are on the same server together with the web pages. All are using the same technology (HTTP). If you an read the web pages you should be able to install. I have heard of people having problems to install due to firewalls not allowing jar files.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: inode on Apr 23, 2013, 01:05 pm

@inode
V1 and V2 are on the same server together with the web pages. All are using the same technology (HTTP). If you an read the web pages you should be able to install. I have heard of people having problems to install due to firewalls not allowing jar files.
Best regards
Jantje


First of all thank you for your work, hopeful that others people will donate to keep your project alive.

I'm working with eclipse 32 bit on windows, adding "http://www.baeyens.it/eclipse/update" to install software I can only see two version: 1.2.0 and 1.2.4 (I didn't see the 1.2.5.5). If I try to add "http://www.baeyens.it/eclipse/V2" eclipse doesn't show any package... I'm doing something wrong?

Thank you in advance
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 23, 2013, 01:16 pm
@inode
Do you have the settings as in the bottom part of this image from the installation instructions at http://eclipse.baeyens.it/Install.html (http://eclipse.baeyens.it/Install.html)?(http://iloapp.baeyens.it/data/_gallery//public/1/134852263644133400_resized.png)
I just checked on my windows machine and I can see both 1.2.5.5 and 2.0.0.18
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: inode on Apr 23, 2013, 02:16 pm

@inode
Do you have the settings as in the bottom part of this image from the installation instructions at http://eclipse.baeyens.it/Install.html (http://eclipse.baeyens.it/Install.html)?
I just checked on my windows machine and I can see both 1.2.5.5 and 2.0.0.18
Best regards
Jantje


It was my fault... I selected too "Group items by category" and so I saw the older version...

Thank you.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 23, 2013, 04:45 pm
@ inode
Great to hear you got it working.
Thanks for the feedback
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 25, 2013, 07:09 pm
The easiest way to investigate is by compiling in Arduino IDE with verbose compile and compiling in eclipse and compare the 2 consoles.
Normally the c build, c++ build, archiver, and linking commands should be the same (except for full path versus relative path and the order and some additional tags for eclipse )
If there is a difference please share it here so I can find out what is causing the problem.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Scott216 on Apr 28, 2013, 02:29 am
I'm trying to install the plugin v2 on my Mac (10.7.5).  I have Arduino IDE 1.04.  I downloaded platform.txt from github (https://github.com/jcw/ide-hardware/blob/master/avr/platform.txt) and put it in the same directory as board.txt (/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/). 

I don't know what you mean in your instructions: "Do not forget to configure (windows->preferences->arduino) or nothing will work. "

I opened eclipse and went to Help > Install New Software and entered the URL: http://www.baeyens.it/eclipse/V2. 

What is supposed to happen next?  I'm stuck in the Eclipse Install window.  The next button is disabled.  See screenshot.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rockwallaby on Apr 28, 2013, 03:05 am
ScottG wrote:
Quote
I don't know what you mean in your instructions: "Do not forget to configure (windows->preferences->arduino) or nothing will work. "

Scott, yes, we who use OSX or linux have it slightly different.
What Jantje is referring to is to make sure you check and set preferences, and on OSX, yuo can do this by going to your menu bar and selecting 'Eclipse | Preferences' and the Eclipse pop up should appear.

From there, look at the section for Arduino in the left pane list.
_____
Paul
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rockwallaby on Apr 28, 2013, 03:07 am
Scott, un-check the 'Group items by category' and thou will see all  :)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Scott216 on Apr 28, 2013, 04:11 am
That did it, thanks.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 28, 2013, 02:57 pm
@scottG
V2 does not work "out of the box" with Arduino 1.0.4. If you copy platform.txt next to boards.txt it might work but I never tried.
Can you share your experiences in getting this to work?
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Scott216 on Apr 29, 2013, 05:32 am

@scottG
V2 does not work "out of the box" with Arduino 1.0.4. If you copy platform.txt next to boards.txt it might work but I never tried.
Can you share your experiences in getting this to work?


I didn't get too far.  When I double clicked on test1.cpp to edit it, I get an error.  See screenshot. 
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 29, 2013, 01:34 pm
ScottG
The problem you have is with CDT and not with the arduino eclipse plugin.
I think you installed juno and added CDT later. Apparently the C/C++ editor is not properly installed.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Scott216 on Apr 29, 2013, 05:29 pm

The problem you have is with CDT and not with the arduino eclipse plugin.
I think you installed juno and added CDT later. Apparently the C/C++ editor is not properly installed.
Best regards
Jantje


I do have Juno.  I don't know what CDT is.  This is what I installed:
http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/juno/SR2/eclipse-cpp-juno-SR2-macosx-cocoa.tar.gz

I did have an earlier version of Eclipse that I never used and moved it to the trash before installing the above.   I guess I could just try to reinstall eclipse.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 29, 2013, 10:19 pm
ScottG
I googled the error string you got.
I found this link http://www.eclipse.org/forums/index.php/t/375550/ (http://www.eclipse.org/forums/index.php/t/375550/)
I'm not sure it also applies for mac.
The advice is purge tzdata-java and reinstall.
I hope this helps.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rockwallaby on Apr 30, 2013, 02:40 am
Scott, in Eclipse, go to install software and in that dialog there is a link in the bottom right corner 'What is already installed'
Can you see the installed software, on that dialog, you have a number of tabs that will give you much information.

CDT is the C/C++ Development Tools.

You only really need the Eclipse IDE and the CDP addon and then Jan's extension for it to work.
The link you provided was for the CDT 32 bit package for OSX, so as far as I understand that is correct.
I did this within Eclipse though, selecting from the available package list and letting it install it.

I run on Eclipse on OSX 10.6.8

Eclipse version 4.3.0, Build id 120120810-1300 from Eclipse preference, where you can also see a button for 'Installation Details'
C/C++ Development Tools 8.1.2.x
Jan's Eclipse Arduino extension 2.0.0.18
_____
Paul
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: aquadat0r on May 07, 2013, 09:28 pm
Hi all, I'm struggling to get Eclipse Juno 32-bit and Arduibo IDE 1.52 to work together.

Actually, I sucessfully installed the plugin in Eclipse and did the setup. But my eclipse does not want to compile. It constantly complains with red underlining. Also, code completion does not work. Any idea?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on May 07, 2013, 09:52 pm
As you are using Arduino IDE 1.5.2 .... Have you installed version 2 beta?
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: neuweiler on May 10, 2013, 09:41 am
Jantje, one more thing:

When I try to upload a new program to my Due, the bossac often reports "No device found on COMx". According to http://arduino.cc/forum/index.php/topic,141628.0.html this is an issue with performing a hard reset in the bossac on the due. It would be fixable by opening the COM port with 1200 baud for a second. This triggers a hard erase on the Due. Could this behaviour be amended to your plugin before calling bossac?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on May 10, 2013, 11:54 am
neuweiler
This behavior is already implemented.
I have not seen this behavior on my system. Which OS are you using? Are you using 64 bit eclipse? Can you provide me the output of the menu->window->preferences->arduino->test dll
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: katekarnage on May 12, 2013, 06:22 pm

I don't consider myself old but I have some decades of experiance in programming C/C++ myself; so I know what you are talking about.
I always had mixed feelings about not supporting multiple configurations. Now with he potential of debugging on the DUE this may become harder.
Point is however that the configuration in Arduino 1.5.X is done in 2 files ( boards.txt platform.txt) external to Eclipse. This is why I removed nearly all compiling options in V2. My current thinking is that if you want multiple configurations you have to modify the boards.txt file.
I currently see 2 options
1) adding a menu option for debug
2) adding a debug board (uno debug; mega debug ....)
Both are very easy to implement and supported by Arduino IDE and my Arduino eclipse plugin V2.
Do you think this can help you out?



Adding extra boards, and having them assignable per build configuration is probably the best way that fits in with your current model, and is easy to work with to changwe the build options in the boards.txt file then. I like it - neat and easily kept simple.



I hope you can pinpoint the Due upload problem you are experiencing. (I see nothing glaringly wrong in the info)
Best regards
Jantje



I solved it (Well, pinpointed the problem and come up with a workaround until I get time to spend more time poking the linker)

The problem arose again for me when in a different project attempting to allocate some memory with malloc(), and anything with a new operator (obviously the same thing really) and a couple of other times in object constructors.

With the malloc problem, it was easier to debug, as I got more information out of it. _sbrk (the underlying memory allocation call) was not linkable.

Basically, although syscalls_sam3.c (the syscall stub for the M3) was being compiled correctly and then linked correcly into the audino.ar archive ( a quick dump shows the relevent objects there), the final link step was not finding any symbol from this file to link into the image. The inclusion of the linker option "-Wl,--warn-unresolved-symbols" meaning that the action didn't error, yet built a seemingly valid image, which it would happily upload to a due and cause it to do, well, nothing!

So after swearing at whoever thought that option was a good idea ;) I spent some time looking at the audiono.ar file and the linker. I couldn;t find any obvious issue as to why it won;t link, but when I get some time I will do more work on that. It's a long, lng time since I've had to take apart linker dumps... it will be "fun" ;D

So as a workaround, if you link the syscalls_sam3.c file directly into your project using import, then it will force it to be included on the link line as a single object in addition to the auduino.ar file (reflecting the command line I used to finally make it all work), then it links correctly and all works fine. (Any conflict is avoided by the fact that the linker denies the existance of those symbols in the archive).

So, until I have time to pull the linker apart and find out exactly what's happening, this is an effective workaround whenever anything uses calls in syscalls.h, most obvious being any memory allocation.

Kate.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: andreimanz on May 21, 2013, 10:12 pm
Hello,

I am trying to set up my Arduino Due project under the eclipse with the newest plugin from  http://www.baeyens.it/eclipse/V2 but when I am building it, I got this linking error:

Starting combiner
"D:/Development/Arduino/arduino-1.5.1r2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-g++" -Os -Wl,--gc-sections -mcpu=cortex-m3 "-TD:/Development/Arduino/arduino-1.5.1r2/hardware/arduino/sam/variants/arduino_due_x/linker_scripts/gcc/flash.ld" "-Wl,-Map,D:/Temp/eclipse/Workspace/Firmware/Release/Firmware.map" -o "D:/Temp/eclipse/Workspace/Firmware/Release/Firmware.elf" "-LD:/Temp/eclipse/Workspace/Firmware/Release" -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group     ./libs/ClickDelayedOffSwitcher.cpp.o ./libs/ClickDelayedSwitcher.cpp.o ./libs/ClickMultiSwitchers.cpp.o ./libs/ClickNextSwitcher.cpp.o ./libs/ClickPressReleaseSwitcher.cpp.o ./libs/ClickSwitcher.cpp.o ./libs/OffSwitcher.cpp.o ./libs/OnOffSwitcher.cpp.o ./libs/PressReleaseSwitcher.cpp.o ./libs/SmartyHomeCore.cpp.o ./libs/TemperatureSensor.cpp.o  ./Firmware.cpp.o   D:/Temp/eclipse/Workspace/Firmware/Release/arduino.ar   "D:/Development/Arduino/arduino-1.5.1r2/hardware/arduino/sam/variants/arduino_due_x/libsam_sam3x8e_gcc_rel.a" "D:/Temp/eclipse/Workspace/Firmware/Release/arduino.ar" -Wl,--end-group
d:/development/arduino/arduino-1.5.1r2/hardware/tools/g++_arm_none_eabi/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-abort.o): In function `abort':
abort.c:(.text+0xa): warning: undefined reference to `_exit'
d:/development/arduino/arduino-1.5.1r2/hardware/tools/g++_arm_none_eabi/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-sbrkr.o): In function `_sbrk_r':
sbrkr.c:(.text+0x12): warning: undefined reference to `_sbrk'
d:/development/arduino/arduino-1.5.1r2/hardware/tools/g++_arm_none_eabi/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-signalr.o): In function `_kill_r':
signalr.c:(.text+0x18): warning: undefined reference to `_kill'
d:/development/arduino/arduino-1.5.1r2/hardware/tools/g++_arm_none_eabi/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-signalr.o): In function `_getpid_r':
signalr.c:(.text+0x0): warning: undefined reference to `_getpid'
d:/development/arduino/arduino-1.5.1r2/hardware/tools/g++_arm_none_eabi/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-writer.o): In function `_write_r':
writer.c:(.text+0x16): warning: undefined reference to `_write'
d:/development/arduino/arduino-1.5.1r2/hardware/tools/g++_arm_none_eabi/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-closer.o): In function `_close_r':
closer.c:(.text+0x12): warning: undefined reference to `_close'
d:/development/arduino/arduino-1.5.1r2/hardware/tools/g++_arm_none_eabi/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-fstatr.o): In function `_fstat_r':
fstatr.c:(.text+0x14): warning: undefined reference to `_fstat'
d:/development/arduino/arduino-1.5.1r2/hardware/tools/g++_arm_none_eabi/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-isattyr.o): In function `_isatty_r':
isattyr.c:(.text+0x12): warning: undefined reference to `_isatty'
d:/development/arduino/arduino-1.5.1r2/hardware/tools/g++_arm_none_eabi/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-lseekr.o): In function `_lseek_r':
lseekr.c:(.text+0x16): warning: undefined reference to `_lseek'
d:/development/arduino/arduino-1.5.1r2/hardware/tools/g++_arm_none_eabi/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-readr.o): In function `_read_r':
readr.c:(.text+0x16): warning: undefined reference to `_read'
Finished building: Firmware.elf

I don't know what to do in order to avoid thesse warnings and to create successfully the .elf file.
Can you help me please?

Thanks,
Andrei
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on May 21, 2013, 10:54 pm
can you compile the project in the arduino IDE with verbose compile options and paste the compile outcome here?
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: katekarnage on May 21, 2013, 10:59 pm
As a temporary solution the fix I suggested in my post above yours will fix your issue. You are seeing the same issue as I did with the link not linking syscalls_sam3.c from the audiono.ar correctly.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on May 21, 2013, 11:03 pm
katekarnage
That is what I thought. But I need the arduino log to know what the plugin is doing differently to do the final fix.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: katekarnage on May 21, 2013, 11:06 pm
Absolutely.

Apologies BTW for not having got around to taking apart the linker yet to see what it thinks it's doing - just haven't had the time yet :(



Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on May 21, 2013, 11:34 pm
I found the bug
Code: [Select]
String Value = MakeEnvironmentString(Var[1].replace("\"{build.path}/syscalls_sam3.c.o\"", "")); // /TOFIX
No more need for the verbose log output.
As I'm working on multiple configurations right now I can not quickly release a new version. Next version will contain the fix.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: andreimanz on May 22, 2013, 06:40 am
Hi Jantje,

Can you tell me please me where can I put this code in order to fix temporary the issue until you will release a new version?

Thanks,
Andrei
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: andreimanz on May 22, 2013, 06:44 am
HI katekarnage,

Thank you very much for your reply! I will do this as a workaround until Jantje will release a new version,

Thank both of you for these quick replies!

Andrei
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on May 24, 2013, 04:17 pm
I'm looking for alfa testers for V2.1 as this version should fix the bug for due I see at least 2 potential candidates here  :D.
Read more at http://blog.baeyens.it/#post5 (http://blog.baeyens.it/#post5)
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: DrObscure on Jun 05, 2013, 04:05 am
Just installed the plugin version 1.2.4 (tried 1.2.0, but it failed with errors about not being able to find things at the site).
I have Arduino Vers-1.5.2..  and Eclipse Juno.. all running on Win8...

When I try to configure the Arduino plugin settings, I get an error on the Paths..
"Arduino folder is not correct"

I have the Arduino IDE Path set to the location of the arduino.exe file..
I have the Private Library set to the arduino-1.5.2\lib directory..
(I have also tried setting it to the \libraries directory with no changes in the result)

What is the plugin looking for here that I have missed?

Thanks..
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 05, 2013, 11:01 am
If you want to run on Arduino IDE 1.5.2 you need V2 of the plugin
What are the errors you got? Are you behind a firewall?
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: DrObscure on Jun 05, 2013, 03:16 pm
I am not behind a firewall (I am using a WiFi at my relatives place today.. don't really know firewall status, and they probably don't either, but it appears not  :)

The errors I received when trying to have Eclipse install the most current version (1.2.2 - didn't write it down, so not clear on version) .. the errors were related to not being able find files at the site...

So, I choose to install the version from the 'uncatorized' list...

How do I get plugin V2??
--thx
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 05, 2013, 04:20 pm
for installing V2 see http://blog.baeyens.it/#post4 (http://blog.baeyens.it/#post4)
this one refers to the normal installation guide located at http://eclipse.baeyens.it/Install.html (http://eclipse.baeyens.it/Install.html)
Which states
Quote
uncheck "group items by category"

So all seems OK to me  :D

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: DrObscure on Jun 05, 2013, 05:42 pm
All is OK for me now too...
Thanks Jantje for the assist, and all your hard work on this project for the community at large..

Now to get to work :)
--chane
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: sohini25 on Jun 13, 2013, 05:18 pm
Serial port dev/ttyACM0 is not showing up whenever I try to upload a sketch. As a result output is showing as "No device found on ttyACM0
bossac finished" . I tried to edit the eclipse.ini file by adding the line -Dgnu.io.rxtx.SerialPorts=/dev/ttyACM0. But still the error persists. Can you please tell a workaround. I am using Arduino Due with Eclipse Juno, Arduino IDE 1.5.2 and plugin version V2 beta.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 13, 2013, 08:09 pm
Can you provide me with a dump of the upload console?
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: neuweiler on Jun 16, 2013, 10:40 pm

neuweiler
This behavior is already implemented.
I have not seen this behavior on my system. Which OS are you using? Are you using 64 bit eclipse? Can you provide me the output of the menu->window->preferences->arduino->test dll
Best regards
Jantje

Jantie,
I'm running Eclipse on a 64bit Windows 7 system. Eclipse itself is 32bit (I think, Eclipse says so).
I get the following from menu->window->preferences->arduino->text RXTX:
"Arduino IDE delivered rxtx library Z:/development/arduino-1.5.2/rxtxSerial.dll) has been loaded successfully, Os=win32 Os Architecture=x86".
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: neuweiler on Jun 16, 2013, 10:46 pm
Jantie,

A while ago I wrote you about syscalls_sam3.c not being properly used when compiling projects with your plug-in. You asked me to compare the output of the plug-in with the one of the standard IDE. I did so and I think I've found the cause of the problem: when calling the archiver and the combiner, your plug-in omits the syscalls_sam3.c.o file - although it correctly compiled it before.

Here's the relevant part of your plug-in (sorry, had to shorten it so the forum accepts my post) :


and here's the output of the Arduino IDE:

Code: [Select]

20:10:48 **** Incremental Build of configuration Release for project CANMonitor ****
make all

[....]

Building file: Z:/arduino-1.5.2/hardware/arduino/sam/cores/arduino/syscalls_sam3.c
Starting C compile
"Z:/arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-gcc" -c -g -Os -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -mcpu=cortex-m3 -DF_CPU=84000000L -DARDUINO=152 -D__SAM3X8E__ -mthumb -DUSB_PID=0x003e -DUSB_VID=0x2341 -DUSBCON "-IZ:/arduino-1.5.2/hardware/arduino/sam/system/libsam" "-IZ:/arduino-1.5.2/hardware/arduino/sam/system/CMSIS/CMSIS/Include/" "-IZ:/arduino-1.5.2/hardware/arduino/sam/system/CMSIS/Device/ATMEL/"   -I"Z:\development\arduino\arduino-1.5.2\hardware\arduino\sam\cores\arduino" -I"Z:\development\arduino\arduino-1.5.2\hardware\arduino\sam\variants\arduino_due_x" -I"Z:\development\arduino\arduino-1.5.2\hardware\arduino\sam\libraries\DueCAN" -I"Z:\development\arduino\arduino-1.5.2\libraries\LiquidCrystal" -MMD -MP -MF"arduino/syscalls_sam3.c.d" -MT"arduino/syscalls_sam3.c.d" "Z:/arduino-1.5.2/hardware/arduino/sam/cores/arduino/syscalls_sam3.c"  -o  "arduino/syscalls_sam3.c.o"
Finished building: Z:/arduino-1.5.2/hardware/arduino/sam/cores/arduino/syscalls_sam3.c

[...]

Starting archiver
"Z:/arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-ar" rcs "Z:/development/source/arduino/CANMonitor/Release/arduino.ar"    ./arduino/variant.cpp.o  ./arduino/CDC.cpp.o ./arduino/HID.cpp.o ./arduino/USBCore.cpp.o  ./arduino/IPAddress.cpp.o ./arduino/Print.cpp.o ./arduino/Reset.cpp.o ./arduino/RingBuffer.cpp.o ./arduino/Stream.cpp.o ./arduino/UARTClass.cpp.o ./arduino/USARTClass.cpp.o ./arduino/WInterrupts.c.o ./arduino/WMath.cpp.o ./arduino/WString.cpp.o ./arduino/cortex_handlers.c.o ./arduino/cxxabi-compat.cpp.o ./arduino/hooks.c.o ./arduino/iar_calls_sam3.c.o ./arduino/itoa.c.o ./arduino/main.cpp.o ./arduino/syscalls_sam3.c.o ./arduino/wiring.c.o ./arduino/wiring_analog.c.o ./arduino/wiring_digital.c.o ./arduino/wiring_pulse.cpp.o ./arduino/wiring_shift.c.o
Finished building: Z:/development/source/arduino/CANMonitor/Release/arduino.ar

Starting combiner
"Z:/arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-g++" -Os -Wl,--gc-sections -mcpu=cortex-m3 "-TZ:/arduino-1.5.2/hardware/arduino/sam/variants/arduino_due_x/linker_scripts/gcc/flash.ld" "-Wl,-Map,Z:/development/source/arduino/CANMonitor/Release/CANMonitor.map" -o "Z:/development/source/arduino/CANMonitor/Release/CANMonitor.elf" "-LZ:/development/source/arduino/CANMonitor/Release" -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group     ./Libraries/LiquidCrystal/LiquidCrystal.cpp.o  ./Libraries/DueCAN/due_can.cpp.o ./Libraries/DueCAN/sn65hvd234.cpp.o  ./CANMonitor.ino.o   Z:/development/source/arduino/CANMonitor/Release/arduino.ar   "Z:/arduino-1.5.2/hardware/arduino/sam/variants/arduino_due_x/libsam_sam3x8e_gcc_rel.a" "Z:/development/source/arduino/CANMonitor/Release/arduino.ar" -Wl,--end-group
Z:/arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-abort.o): In function `abort':
abort.c:(.text+0xa): warning: undefined reference to `_exit'
Z:/arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-sbrkr.o): In function `_sbrk_r':
sbrkr.c:(.text+0x12): warning: undefined reference to `_sbrk'
Z:/arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-signalr.o): In function `_kill_r':
signalr.c:(.text+0x18): warning: undefined reference to `_kill'
Z:/arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-signalr.o): In function `_getpid_r':
signalr.c:(.text+0x0): warning: undefined reference to `_getpid'
Z:/arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-writer.o): In function `_write_r':
writer.c:(.text+0x16): warning: undefined reference to `_write'
Z:/arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-closer.o): In function `_close_r':
closer.c:(.text+0x12): warning: undefined reference to `_close'
Z:/arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-fstatr.o): In function `_fstat_r':
fstatr.c:(.text+0x14): warning: undefined reference to `_fstat'
Z:/arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-isattyr.o): In function `_isatty_r':
isattyr.c:(.text+0x12): warning: undefined reference to `_isatty'
Z:/arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-lseekr.o): In function `_lseek_r':
lseekr.c:(.text+0x16): warning: undefined reference to `_lseek'
Z:/arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-readr.o): In function `_read_r':
readr.c:(.text+0x16): warning: undefined reference to `_read'
Finished building: CANMonitor.elf

Create eeprom image
Finished building: CANMonitor.eep

Create Flash image (ihex format)
"Z:/arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-objcopy" -O binary "Z:/development/source/arduino/CANMonitor/Release/CANMonitor.elf" "Z:/development/source/arduino/CANMonitor/Release/CANMonitor.bin"
Finished building: Release/CANMonitor.bin

Building target: CANMonitor
Printing size:
Finished building target: CANMonitor


20:11:08 Build Finished (took 19s.487ms)

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: neuweiler on Jun 16, 2013, 10:47 pm
And here the relevant parts of the original IDE's log:
Code: [Select]

[...]
Z:\arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-gcc -c -g -Os -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -mcpu=cortex-m3 -DF_CPU=84000000L -DARDUINO=152 -D__SAM3X8E__ -mthumb -DUSB_PID=0x003e -DUSB_VID=0x2341 -DUSBCON -IZ:\arduino-1.5.2\hardware\arduino\sam\system/libsam -IZ:\arduino-1.5.2\hardware\arduino\sam\system/CMSIS/CMSIS/Include/ -IZ:\arduino-1.5.2\hardware\arduino\sam\system/CMSIS/Device/ATMEL/ -IZ:\arduino-1.5.2\hardware\arduino\sam\cores\arduino -IZ:\arduino-1.5.2\hardware\arduino\sam\variants\arduino_due_x Z:\arduino-1.5.2\hardware\arduino\sam\cores\arduino\syscalls_sam3.c -o c:\Temp\build3170532245487102748.tmp\syscalls_sam3.c.o
[...]
Z:\arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-ar rcs c:\Temp\build3170532245487102748.tmp/core.a c:\Temp\build3170532245487102748.tmp\cortex_handlers.c.o
Z:\arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-ar rcs c:\Temp\build3170532245487102748.tmp/core.a c:\Temp\build3170532245487102748.tmp\hooks.c.o
Z:\arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-ar rcs c:\Temp\build3170532245487102748.tmp/core.a c:\Temp\build3170532245487102748.tmp\iar_calls_sam3.c.o
Z:\arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-ar rcs c:\Temp\build3170532245487102748.tmp/core.a c:\Temp\build3170532245487102748.tmp\itoa.c.o
Z:\arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-ar rcs c:\Temp\build3170532245487102748.tmp/core.a c:\Temp\build3170532245487102748.tmp\syscalls_sam3.c.o
Z:\arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-ar rcs c:\Temp\build3170532245487102748.tmp/core.a c:\Temp\build3170532245487102748.tmp\WInterrupts.c.o
Z:\arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-ar rcs c:\Temp\build3170532245487102748.tmp/core.a c:\Temp\build3170532245487102748.tmp\wiring.c.o
Z:\arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-ar rcs c:\Temp\build3170532245487102748.tmp/core.a c:\Temp\build3170532245487102748.tmp\wiring_analog.c.o
Z:\arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-ar rcs c:\Temp\build3170532245487102748.tmp/core.a c:\Temp\build3170532245487102748.tmp\wiring_digital.c.o
Z:\arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-ar rcs c:\Temp\build3170532245487102748.tmp/core.a c:\Temp\build3170532245487102748.tmp\wiring_shift.c.o
Z:\arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-ar rcs c:\Temp\build3170532245487102748.tmp/core.a c:\Temp\build3170532245487102748.tmp\cxxabi-compat.cpp.o
Z:\arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-ar rcs c:\Temp\build3170532245487102748.tmp/core.a c:\Temp\build3170532245487102748.tmp\IPAddress.cpp.o
Z:\arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-ar rcs c:\Temp\build3170532245487102748.tmp/core.a c:\Temp\build3170532245487102748.tmp\main.cpp.o
Z:\arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-ar rcs c:\Temp\build3170532245487102748.tmp/core.a c:\Temp\build3170532245487102748.tmp\Print.cpp.o
Z:\arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-ar rcs c:\Temp\build3170532245487102748.tmp/core.a c:\Temp\build3170532245487102748.tmp\Reset.cpp.o
Z:\arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-ar rcs c:\Temp\build3170532245487102748.tmp/core.a c:\Temp\build3170532245487102748.tmp\RingBuffer.cpp.o
Z:\arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-ar rcs c:\Temp\build3170532245487102748.tmp/core.a c:\Temp\build3170532245487102748.tmp\Stream.cpp.o
Z:\arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-ar rcs c:\Temp\build3170532245487102748.tmp/core.a c:\Temp\build3170532245487102748.tmp\UARTClass.cpp.o
Z:\arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-ar rcs c:\Temp\build3170532245487102748.tmp/core.a c:\Temp\build3170532245487102748.tmp\USARTClass.cpp.o
Z:\arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-ar rcs c:\Temp\build3170532245487102748.tmp/core.a c:\Temp\build3170532245487102748.tmp\CDC.cpp.o
Z:\arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-ar rcs c:\Temp\build3170532245487102748.tmp/core.a c:\Temp\build3170532245487102748.tmp\HID.cpp.o
Z:\arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-ar rcs c:\Temp\build3170532245487102748.tmp/core.a c:\Temp\build3170532245487102748.tmp\USBCore.cpp.o
Z:\arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-ar rcs c:\Temp\build3170532245487102748.tmp/core.a c:\Temp\build3170532245487102748.tmp\wiring_pulse.cpp.o
Z:\arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-ar rcs c:\Temp\build3170532245487102748.tmp/core.a c:\Temp\build3170532245487102748.tmp\WMath.cpp.o
Z:\arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-ar rcs c:\Temp\build3170532245487102748.tmp/core.a c:\Temp\build3170532245487102748.tmp\WString.cpp.o
Z:\arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-ar rcs c:\Temp\build3170532245487102748.tmp/core.a c:\Temp\build3170532245487102748.tmp\variant.cpp.o
Z:\arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-g++ -Os -Wl,--gc-sections -mcpu=cortex-m3 -TZ:\arduino-1.5.2\hardware\arduino\sam\variants\arduino_due_x/linker_scripts/gcc/flash.ld -Wl,-Map,c:\Temp\build3170532245487102748.tmp/CANMonitor.cpp.map -o c:\Temp\build3170532245487102748.tmp/CANMonitor.cpp.elf -Lc:\Temp\build3170532245487102748.tmp -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--entry=Reset_Handler -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group c:\Temp\build3170532245487102748.tmp/syscalls_sam3.c.o c:\Temp\build3170532245487102748.tmp\CANMonitor.cpp.o c:\Temp\build3170532245487102748.tmp\DueCAN\due_can.cpp.o c:\Temp\build3170532245487102748.tmp\DueCAN\sn65hvd234.cpp.o c:\Temp\build3170532245487102748.tmp\LiquidCrystal\LiquidCrystal.cpp.o Z:\arduino-1.5.2\hardware\arduino\sam\variants\arduino_due_x/libsam_sam3x8e_gcc_rel.a c:\Temp\build3170532245487102748.tmp/core.a -Wl,--end-group
Z:\arduino-1.5.2/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-objcopy -O binary c:\Temp\build3170532245487102748.tmp/CANMonitor.cpp.elf c:\Temp\build3170532245487102748.tmp/CANMonitor.cpp.bin
Binary sketch size: 73'208 bytes (of a 524'288 byte maximum) - 13% used
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 16, 2013, 11:47 pm
neuweiler
I guess you missed the below info

I found the bug
Code: [Select]
String Value = MakeEnvironmentString(Var[1].replace("\"{build.path}/syscalls_sam3.c.o\"", "")); // /TOFIX
No more need for the verbose log output.
As I'm working on multiple configurations right now I can not quickly release a new version. Next version will contain the fix.
Best regards
Jantje


I don't know why you experience the due upload problem. I did extend some timings in the newest version (still under testing) so that may fix your problem.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: sohini25 on Jun 17, 2013, 07:02 am
Hi,

I got my previous problem solved. But I need some other help. Can this plugin work with any other toolchain apart from the Arduino toolchain. I need to have Linker option for importing external files. Can anybody tell me how to link files in the Arduino toolchain.

Best Regards,
Sohini
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 17, 2013, 11:54 am
@sohini25
I'm not sure what you want to try to achieve. But I guess you probably want to modify the info in "project properties"->C/C++ properties/settings.
Note however there have been some major changes this view between 1.X and 2.0 beta.
Note that in Arduino IDE 1.5.x you can change the boards.txt and platform.txt to do so.
Note that 2.1 beta (currently in test) has a tab to change the C++ and C compile options. If you can explain me why a linker option change is interesting I may add one to.

From a eclipse point of view the answer to the question "Can this plugin work with any other toolchain apart from the Arduino toolchain." is yes.
You need to go to "project properties"->C/C++ properties/toolchain editor. But I doubt this is what you want to do.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: sohini25 on Jun 17, 2013, 01:21 pm
Thanks for the reply but I cannot find any other option apart from the Arduino toolchain in the tolchain editor- current toolchain dropdown.

How can I include a C++ linker in my settings. Please help me out.

Regards,
Sohini
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: sohini25 on Jun 24, 2013, 06:09 pm
I am not able to get printf() support from the Arduino Sketch built through the V2 plugin. But my Arduino 1.5.2 IDE is allowing printf() function. I have included stdio.h file in my sketch in Eclipse. But not getting any output. Can anybody help. I am using Arduino Due with arm-none-eabi-gcc toolchain.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 24, 2013, 07:36 pm
can you share the sketch that does not work?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: sohini25 on Jun 25, 2013, 10:47 am
I was using the below code ----

> #include "arduino_due.h"
>
> #include <Arduino.h>
> #include<stdio.h>


> void setup(){
>     Serial.begin(115200);
>
>    Serial.print("Start");
>    printf("test");

> }

void loop()
> {
> printf("test");
>
> }



None of the two printf statements are working, even though the code is showing no error on compilation. Please help me out.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 25, 2013, 12:31 pm
the code
Code: [Select]
printf("test");
doesn't make sense to me. Can you explain me what it should be doing? have you seen http://www.cplusplus.com/reference/cstdio/printf/ (http://www.cplusplus.com/reference/cstdio/printf/)
can you give me the compile output?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: sohini25 on Jun 25, 2013, 03:16 pm
I am trying to implement Relic Toolkit library on Arduino Due. But that library requires printf() support. So i was just trying to see if printf() is working in my sketch or not. But it is not. I cannot get any declaration in the project/workspace for printf() even though the stdio.h file is there under project includes. 
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 25, 2013, 08:41 pm
I just compiled the code below without any problems
Code: [Select]
#include <Arduino.h>
#include<stdio.h>


void setup(){
     Serial.begin(115200);

    Serial.print("Start");
    printf("test");
}

void loop()
{
printf("test");
}
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: sohini25 on Jun 26, 2013, 02:31 am
I may be wrong somewhere. Can you please tell the steps you followed for making this sketch .
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 26, 2013, 11:15 am
please read http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.htm#FreePlugin (http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.htm#FreePlugin)
and http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.htm#errorLog (http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.htm#errorLog)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: sampi on Jun 27, 2013, 01:42 pm
I am trying to use Arduino Due with Eclipse juno and arduino IDE 1.5.2 in Windows 7. But i am unable to upload the sketch from eclipse. It says " No device found on COM7", even though it is working fine in the iDE. Please help.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 27, 2013, 05:30 pm
please read http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.htm#errorLog (http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.htm#errorLog) and provide console info
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: sampi on Jun 27, 2013, 05:42 pm
This is what I am getting in the console.

Launching C:/Users/Sampi/Desktop/arduino-1.5.2/hardware/tools/bossac.exe --port=COM7 -U false -e -w -v -b C:\Users\Sampi\workspace\due_sketch/Release/due_sketch.bin -R
Output:
No device found on COM7
C:/Users/Sampi/Desktop/arduino-1.5.2/hardware/tools/bossac.exe finished
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 27, 2013, 06:57 pm
And what does the arduino verbose upload say?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: sampi on Jun 27, 2013, 08:22 pm
Sorry I am new in this field. Can you tell me what you mean by verbose upload.
One more thing, in the serial monitor view, I do not see any drop down for available ports.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 27, 2013, 08:44 pm
Please read through http://eclipse.baeyens.it/Arduino eclipse plugin FAQ.htm (http://eclipse.baeyens.it/Arduino eclipse plugin FAQ.htm)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: neuweiler on Jun 27, 2013, 10:38 pm

neuweiler
I guess you missed the below info

I found the bug
Code: [Select]
String Value = MakeEnvironmentString(Var[1].replace("\"{build.path}/syscalls_sam3.c.o\"", "")); // /TOFIX

I don't know why you experience the due upload problem. I did extend some timings in the newest version (still under testing) so that may fix your problem.
Best regards
Jantje


Jep, in the latest alpha version the problem with syscalls is fixed! :) Thanks a lot!
Also the upload problem is much better now with 2.1.0.3. Only in rare cases I have to give it a second try (I suspect the cause being that there's some stuff being transmitted on the programming port). But the problem is almost gone and I didn't have to do a manual erase until now.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: sampi on Jun 28, 2013, 01:20 pm
Jantje, this is what the IDE upload shows

Binary sketch size: 9,628 bytes (of a 524,288 byte maximum) - 1% used
Forcing reset using 1200bps open/close on port COM7
C:\Users\Sampi\Desktop\arduino-1.5.2/hardware/tools/bossac.exe --port=COM7 -U false -e -w -v -b C:\Users\Sampi\AppData\Local\Temp\build1388773460947028457.tmp/sketch_jun28a.cpp.bin -R
Erase flash
Write 9704 bytes to flash ....

But on eclipse I am unable to get any output and it shows -

Console view :-

Launching C:/Users/Sampi/Desktop/arduino-1.5.2/hardware/tools/bossac.exe --port=COM7 -U false -e -w -v -b C:\Users\Sampi\workspace\sketch1/Release/sketch1.bin -R
Output:
No device found on COM7
C:/Users/Sampi/Desktop/arduino-1.5.2/hardware/tools/bossac.exe finished

error log :-
eclipse.buildId=M20130204-1200
java.version=1.7.0_25
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_IN
Framework arguments:  -product org.eclipse.epp.package.cpp.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.cpp.product

Warning
Fri Jun 28 16:38:05 IST 2013
Serial port COM7 not found. Did you select the right one from the project properties -> Arduino -> Arduino?


Strangely I do not get any dropdown when I try to configure the port at Properties/Arduino/Port.

Can you help me in uploading through eclipse. I am runing eclipse juno on windows 7.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 28, 2013, 02:39 pm
As you can see the command executed is exactly the same between IDE and Eclipse plugin.
This means the preconditions are not met. In other words the due is not reset.
Try with resetting the due when pressing the upload button.
Also do the action as described here http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.htm#Serialdoesntwork (http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.htm#Serialdoesntwork) and provide the output.

I would expect you to be on a 64 bit eclipse which leads to http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.htm#32or64Bit (http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.htm#32or64Bit)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: standardUser on Jun 29, 2013, 11:43 am
Hello,

The problem
I want to use a method in order to display debug information on the Eclipse monitor.
But the
Code: [Select]
Serial.begin(9600); method is underlined in red.


My system
---------------
Mac OS 10.8.4
---------------
Arduino IDE 1.0.5
---------------
Eclipse IDE for C/C++ Developers
Version: Juno Service Release 2
Build id: 20130225-0426
---------------
(as all files have been downloaded and installed last week-end, I suppose my versions are up to date)


My research
-   The configuration was performed according to your indications (Preferences > Arduino > Paths).
-   The 19 pages of this topic have been read (specifically « Reply #5 on: November 22, 2011, 06:50:59 pm » http://forum.arduino.cc/index.php?PHPSESSID=qrdfjpsktk5ta1crhihjteamc0&topic=79595.75 (http://forum.arduino.cc/index.php?PHPSESSID=qrdfjpsktk5ta1crhihjteamc0&topic=79595.75) (but I do not have any "pins_arduino.c"  file in the Arduino application folders) and « Reply #67 on: June 19, 2012, 06:32:19 pm »)  http://forum.arduino.cc/index.php?topic=79595.60 (http://forum.arduino.cc/index.php?topic=79595.60) .

-   I have watch at the movie, but (Video time 04:15) I do not have the "File to index up-front;" file in my version of Eclipse. No change if I add « io.h » and « arduino.h » in the Preference >C/C++ >Files types window.
-   Even copying the actions displayed, the code doesn't work.

- This link  « Reply #9 on: September 05, 2011, 07:35:25 pm » http://forum.arduino.cc/index.php?topic=71358.0 (http://forum.arduino.cc/index.php?topic=71358.0) seems to be complicated and I do not understand the action.

- I can use the others libraries (Import > Import Arduino librairies in the current project) and selecting the corresponding one.

But as I just want to have this common line working:
Code: [Select]
void setup()
{
serial.begin(9600);
}


the serial.begin method is underlined in red and therefore, compilation fails (Symbol 'serial' could not be resolved).

My Question
How can I proceed to send debug data onto the Eclipse monitor?


Thanks for the (long) time you spent on this forum…
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 29, 2013, 02:42 pm
standardUser
This is the way I would like all questions to be formulated. It shows you have done some (serious) effort and are not yust "demanding an answer"
You must be active on other sites as this is your first post here  :)


Your problem

Basically the fact that some code is red underlined does not mean your code does not compile.
See http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.htm#bugs (http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.htm#bugs) for an explanation on this.

You do state
Code: [Select]
the serial.begin method is underlined in red and therefore, compilation fails (Symbol 'serial' could not be resolved).
Please provide the console output and the sketch that fails. As far as I know there is no reason for the compilation to fail.

Your system
This should work. You have not supplied the arduino eclipse plugin version. As you use Juno you need  1.2.2.5 or later but not 2.0 or later (as you use Arduino IDE 1.0.5).

Your research
Note that this thread is long running and conatins lots of outdated or wrong info (I can not edit other peoples post and i do not maintain my posts)
The most up to date source is eclipse.baeyens.it (http://eclipse.baeyens.it). But even there info is somewhat outdated. So is the 1.3 I refer to 2.0 which has been released.

"File to index up-front;" has been removed in juno. Basically Juno does a far better indexing job. Compile once and the indexer should run.

Code: [Select]
- This link  « Reply #9 on: September 05, 2011, 07:35:25 pm » http://forum.arduino.cc/index.php?topic=71358.0 seems to be complicated and I do not understand the action.
Make a distinction between using my eclipse plugin and standard eclipse CDT. To me this thread only proves how valuable my plugin is.

Your question
Quote
How can I proceed to send debug data onto the Eclipse monitor?

My bet: You are not experiencing a compiler issue but an indexer issue. The solution :"Compile the code"
If that doesn't fix it: provide me the code and the console output of the compile.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: katekarnage on Jun 29, 2013, 02:56 pm

Hello,

The problem
I want to use a method in order to display debug information on the Eclipse monitor.
But the
Code: [Select]
Serial.begin(9600); method is underlined in red.

.
.
.
Quote

But as I just want to have this common line working:
Code: [Select]
void setup()
{
serial.begin(9600);
}


the serial.begin method is underlined in red and therefore, compilation fails (Symbol 'serial' could not be resolved).


Can I just check which line is failing, as you've put both Serial and serial in your post. The correct one should be Serial.

I know it's probably just a typo, but you never know ;)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: standardUser on Jun 29, 2013, 03:42 pm
It is just a typo in my code written in this post ; the program line is correct.

Meanwhile, I have read this wellknown bug and its temporary solutions in the other site :
(http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.htm#bugs (http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.htm#bugs)), paragraph Eclipse tells me there are bugs in my code but it compiles ok.

The red underline effectively disappears after compilation (but reappears when a new line is entered in the code). I even have found the autocompletion for Serial after 5 clicks of this combination (Enable indexer-Apply) ! Strange behavior...

Many thanks for your answer and your work.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: standardUser on Jun 29, 2013, 03:54 pm
Jantje
You say :
"You must be active on other sites as this is your first post here."

For 1 month, I am just reading books to get a Arduino knowledge and trying to have an optimal IDE in order to begin the Arduino programming. But it is really my first post on Arduino forums.
I have also tested the Atmel Studio 6 (Mac - VMWare Fusion - Windows 7) - nice IDE, but Eclipse works on the Mac.
Have a nice day!
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 30, 2013, 03:26 pm
@standardUser
It is a compliment.
The quality of your post indicates to me that you know how to ask a question.  So basically: "You only have 1 post but you are not a noob."
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: sampi on Jul 02, 2013, 12:26 pm
Jantje,

I had earlier posted about not being able to upload from Eclipse using the Arduino plugin. Currently I can upload but I am not getting any output in the serial monitor.

I used a simple code like

#include "sketch1.h"


void setup()
{

   Serial.begin(115200);
   Serial.print("hello");
}

void loop()
{
}

Can you please help.

I am not getting any error message or warning.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 02, 2013, 03:37 pm
It is possible the monitor opens to late.
Try this code
Code: [Select]
#include "sketch1.h"


void setup()
{
  delay(1000);
   Serial.begin(115200);
   Serial.print("hello");
}

void loop()
{
  delay(1000);
  Serial.print("hello again");
}
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: sampi on Jul 03, 2013, 01:01 am
Thanks Jantje,

It worked with the delay statements.  :)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: sampi on Jul 04, 2013, 01:16 pm
I was earlier using plugin version v2. but currently I am using 1.2.4. When I am trying to compile a simple code like
#include "sam1.h"

//The setup function is called once at startup of the sketch
void setup()
{
   Serial.begin(115200);
   Serial.print("test");
// Add your initialization code here
}

// The loop function is called in an endless loop
void loop()
{
//Add your repeated code here
}


the code fails....

Method Serial could not be ressolved.
Symbol print could not be ressolved.

Please help. I am using Arduino Mega 2560 with arduino ide 1.0.5
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: sampi on Jul 04, 2013, 03:14 pm
I am having problem in uploading as well. It shows
AVRDude doesn't support the project target MCU(AtMega 2560)

This problem is happening in Linux(Ubuntu 12.04). But it works fine with Windows.

I have tried withboth versions of the plugin !.2.4 and 1.2.5
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 04, 2013, 05:07 pm
Scampi
http://forum.arduino.cc/index.php?topic=79595.msg1294961#msg1294961 (http://forum.arduino.cc/index.php?topic=79595.msg1294961#msg1294961)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: sampi on Jul 04, 2013, 08:04 pm
Thanks a lot Jantje. Sorry I missed out the post in earlier page. :) :p
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: boubil on Jul 30, 2013, 04:20 pm
Hi

I'm having difficulties building my project (very basic - inspired from the Morse example).

OS : Windows 7
Eclipse C++ Version: Juno Service Release 2
Arduino IDE : 1.0.5
PlugIn : 1.2.4

My project includes 3 personal librairies (very basic)
There are no problems or warning by during the build process I get a message :
Code: [Select]
16:11:22 **** Incremental Build of configuration Release for project Alarme ****
make all
Building file: D:/Documents/Arduino/programmes/libraries/Sortie/Sortie.cpp
Invoking: AVR C++ Compiler
make: Interrupt/Exception caught (code = 0xc00000fd, addr = 0x4217b3)

16:11:22 Build Finished (took 644ms)


During the build I see the same message for the malloc file too but the message doesn't remain

Even the blink program does the same


What's going wrong ?

Thanks for your help

Nathalie




Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 30, 2013, 06:36 pm
Nathalie
This defeneatly not the way it should work.

Why are you not using the latest version?
Have you configured the plugin as described in http://eclipse.baeyens.it/Install.html (http://eclipse.baeyens.it/Install.html)?
Can you open the preferences as in step 4.2. close the preferences; reopen and tick and untick "use arduino ide tools in eclipse" and select ok. If that doesn't fix it please provide me with an image of 4.2 of the install instructions?
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: boubil on Jul 30, 2013, 10:59 pm
Thanks for answering.

Quote
Why are you not using the latest version?


Latest version of what ?

Eclipse ? I tried to install kepler yesterday (3 times) but I couldn't get it work with arduino. I had problems with includes (#include "arduino.h" was not even understood !) so I got the juno as explained in the install instruction.

I followed the instructions.
The only difference is about the indexer, I don't have the input box "files to index up-front" (see attachment)

There aren't any error messages in the error panel.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: boubil on Jul 30, 2013, 11:10 pm
I just tried to re-install kepler. Works better today.
I created a new project (empty) and tried to build it , I get exactly the same problem
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 30, 2013, 11:11 pm

Thanks for answering.

Quote
Why are you not using the latest version?


Latest version of what ?

The plugin.

The settings look ok. Is it working in the Arduino IDE?
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 30, 2013, 11:19 pm
Looking again at the snapshots you provided I think you hit. http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.htm#spaces (http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.htm#spaces)
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: boubil on Jul 30, 2013, 11:29 pm
You're right, I moved the arduino folder to c:\ and now it works !

Thanks a lot for helping me and thanks a lot for your plugin !

I just tried to user arduino 1.5.2 with kepler (installed on d:\arduino) and the plugin don"t recognize the arduino folder.


Nathalie
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 31, 2013, 12:09 am
good to hear it works.
If you want to work with Arduino 1.5.2 beta you need to install plugin version 2 beta.
See http://blog.baeyens.it/#home (http://blog.baeyens.it/#home)
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: boubil on Jul 31, 2013, 12:20 am
Thank you Jantje

For now I don't need 1.5.2 beta.

I'm so happy it's all builing now.

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: vizual54 on Aug 01, 2013, 01:38 am
Hi!
I have just started with arduino and using the eclipse plugin. So far I have tested the blink and serial example and it works fine.
Though now I'm trying to use a MPU 6050 sensor which means I need to include the Wire library and it does not build. I have tested the code with the Arduino IDE and it works fine.

OS: Win8
Eclipse Version: Kepler Release
Plugin: 1.2.4
Arduino: 1.0.5
Board: Arduino UNO

Imported libraries are: Wire, I2Cdev and MPU6050

Console output:
Code: [Select]
avr-gcc -I../TestTest/I2Cdev -I"C:\Development\Arduino\Libraries\I2Cdev" -D__IN_ECLIPSE__=1 -DARDUINO=105 -DUSB_PID= -DUSB_VID= -Wall -Os -g -mmcu=atmega328p -DF_CPU=16000000UL -MMD -MP -MF"Wire/utility/twi.d" -MT"Wire/utility/twi.d"  -c -o "Wire/utility/twi.o" "C:/Arduino/arduino-1.0.5/libraries/Wire/utility/twi.c"
C:/Arduino/arduino-1.0.5/libraries/Wire/utility/twi.c:28:41: error: Arduino.h: No such file or directory
C:/Arduino/arduino-1.0.5/libraries/Wire/utility/twi.c:38:26: error: pins_arduino.h: No such file or directory
C:/Arduino/arduino-1.0.5/libraries/Wire/utility/twi.c: In function 'twi_init':
C:/Arduino/arduino-1.0.5/libraries/Wire/utility/twi.c:72: error: 'true' undeclared (first use in this function)
C:/Arduino/arduino-1.0.5/libraries/Wire/utility/twi.c:72: error: (Each undeclared identifier is reported only once
C:/Arduino/arduino-1.0.5/libraries/Wire/utility/twi.c:72: error: for each function it appears in.)
C:/Arduino/arduino-1.0.5/libraries/Wire/utility/twi.c:73: error: 'false' undeclared (first use in this function)
C:/Arduino/arduino-1.0.5/libraries/Wire/utility/twi.c:76: warning: implicit declaration of function 'digitalWrite'
C:/Arduino/arduino-1.0.5/libraries/Wire/utility/twi.c:76: error: 'SDA' undeclared (first use in this function)
C:/Arduino/arduino-1.0.5/libraries/Wire/utility/twi.c:77: error: 'SCL' undeclared (first use in this function)
C:/Arduino/arduino-1.0.5/libraries/Wire/utility/twi.c: In function 'twi_readFrom':
C:/Arduino/arduino-1.0.5/libraries/Wire/utility/twi.c:146: error: 'true' undeclared (first use in this function)
C:/Arduino/arduino-1.0.5/libraries/Wire/utility/twi.c:153: error: 'false' undeclared (first use in this function)
C:/Arduino/arduino-1.0.5/libraries/Wire/utility/twi.c: In function 'twi_writeTo':
C:/Arduino/arduino-1.0.5/libraries/Wire/utility/twi.c:226: error: 'true' undeclared (first use in this function)
C:/Arduino/arduino-1.0.5/libraries/Wire/utility/twi.c:233: error: 'false' undeclared (first use in this function)
C:/Arduino/arduino-1.0.5/libraries/Wire/utility/twi.c: In function '__vector_24':
C:/Arduino/arduino-1.0.5/libraries/Wire/utility/twi.c:386: error: 'true' undeclared (first use in this function)
make: *** [Wire/utility/twi.o] Error 1


It was many years since I coded so its probably a noob mistake.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 01, 2013, 01:58 am
please upgrade to the latest version.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: vizual54 on Aug 01, 2013, 10:17 pm

please upgrade to the latest version.


I just noticed that I actually have the latest version 1.2.5.5.
Dont know where I got 1.2.4 from.

Edit:
Made a new project and imported wire, i2c and mpu6050 and now it compiles fine.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 02, 2013, 05:10 pm
Great
Thanks for the update.
jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: PeterO on Aug 03, 2013, 05:03 pm
I'm just coming back to some Arduino development, but since last I time I've moved from using an old ubuntu linux  to a new mint 15.

I've installed Juno from the eclipse web site as Mint15 ships with "eclipse 3.8" and I wasn't sure it that was an "I" or "J" version.

Anyway I've installed the 1.5.2 beta aduino tools, and the latest version of your plug-in.

Some of my existing project have some assembly code functions in ".S" files.  These used to be automatically assembled and linked, but with the new tools they don't get built.

Is this the expected behavior and if so can it be changed to include them in the build ?   BTW they do show up correctly in the project explorer.

PeterO
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 03, 2013, 05:21 pm
Peter
Nice to hear it works on Mint;-)
As you probably noticed V2 beta of my plugin is a complete rewrite. And I indeed removed the assembly thinking who needs that (I assumed that inline assembly would be used).
If you want V2 Beta to compile assembly you could try to add a assembly instruction to the toolchain for your project.
If your assembly is in the project (in other: "not a library") it may turn out to be easy (I have never done it)
Keep us posted on progress.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: PeterO on Aug 03, 2013, 05:32 pm
Thanks for quick reply !

I'm not sure which of the tools I should be adding to the tool chain.  There doesn't seem to be an "Arduino assembler" option equivalent to the "Arduino C Compiler" option.

PeterO


I've tried adding the "Cross GCC Assembler" but that results in lots of java "NULL pointer exceptions" .....    :smiley-eek:
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 03, 2013, 05:45 pm

I've tried adding the "Cross GCC Assembler" but that results in lots of java "NULL pointer exceptions" .....    :smiley-eek:

Sounds like it won't work.
Is inline assembly an option for you?
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: PeterO on Aug 03, 2013, 05:55 pm

Sounds like it won't work.

It may work as it's most likely I've not set it up correctly.  Can you give any hints as to what setting would need to be made ?
Quote

Is inline assembly an option for you?
Best regards
Jantje

Maybe, but it seems a shame the previous functionality (that just worked) has been removed. 
PeterO
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: PeterO on Aug 03, 2013, 06:49 pm
Hmmmm.....

Making some progress, but it seems like the ".S" file isn't being looked at atall.  What should link a ".S" file to using the tool specified as the assembler ?

PeterO
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 03, 2013, 07:24 pm

Making some progress, but it seems like the ".S" file isn't being looked at a tall.  What should link a ".S" file to using the tool specified as the assembler ?

The link is in the "tool" as such the "Cross GCC Assembler". The tool is linked to a file type and in the preferences you can add filename wild cards to file types. The tool decides where to look for files where to put the compilation output.
This is why I made "Arduino C compiler" "Arduino C++ compiler" ....
This is a area I completely rewrote to get everything in 1 eclipse project. The sequence of processing the files is at least "mysterious" so I would not spend to much time trying to plug in assembly only using the gui.


Is inline assembly an option for you?
Best regards
Jantje

Maybe, but it seems a shame the previous functionality (that just worked) has been removed. 

I agree it is removed functionality. Getting it to work in one project was a big pain. I had a real hard time and I was sometimes next to hopeless. So now 'm pleased it works. Not including the assembler was a small "cost". I see no reason why I could not add the assembler back in. Apart from
1) I have no test code.
2) I have no need.
Both are things you could help out with  8)

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: PeterO on Aug 03, 2013, 08:34 pm
I'm happy to help, but I should say I haven't written any Java for about 15 years!
PeterO
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: sohini25 on Aug 06, 2013, 12:12 pm
Hi Jantje,

I need to measure the amount of RAM consumed by a particular code on Mega 2560 and Due. Is it possible to measure it using your Eclipse Plugin. I mean is the Printing size shown ... gives the consumed RAM size.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 06, 2013, 12:33 pm
@Peter
You could provide a sketch with a .S file (I haven't written assembly in 20 years)

@Sohini25
The plugin gives a RAM usage estimate but not for the due (I havn't found a good command yet)
I doubt whether this is a good reason to start using the plugin as you can see the same output with a simple command line action.
In V1 the default behavior provides the info you request. In V2 you have to set the option to overwrite the default Arduino command.
Also note that this info does not take into account the Arduino bootloader.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: sohini25 on Aug 06, 2013, 12:40 pm
Jantje,

Can you please tell me what command line action to use to check the memory usage.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 06, 2013, 12:49 pm
"avr-size" --format=avr --mcu=atmega2560 "sketch.elf"
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: sohini25 on Aug 06, 2013, 03:47 pm
I believe this should only work in Linux based OS.

Will this work for Due as well?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: PeterO on Aug 08, 2013, 09:44 am

@Peter
You could provide a sketch with a .S file (I haven't written assembly in 20 years)

Best regards
Jantje


I'll sort out a small example for you....

PeterO
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 08, 2013, 01:35 pm


@Peter
You could provide a sketch with a .S file (I haven't written assembly in 20 years)

Best regards
Jantje


I'll sort out a small example for you....

PeterO


I'm looking forward to it.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: hamiljf on Aug 10, 2013, 12:13 am
Installation Instructions... Just reinstalled Eclipse to keep Arduino separate from other environments.  Using Eclipse Kepler (Ubuntu 13.04, AMD64), got confused by the installation instructions.  Using .../update site/ found there are two entries: 'Arduino' and 'Uncategorized'.  Following instructions tried to install 1.2.0 and got a heap of error messages.  Looked under 'Uncategorized' and found version 1.2.4 which seems to install OK.
The installation instructions referenced from the home page give different details from the sticky in this topic, and neither work.  It would be very helpful if they could be changed to reflect what one actually has to do, or .../update site/ be changed to match the instructions.
Which is not to detract from my admiration for a fine piece of technology: thank you Jantje.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 10, 2013, 03:09 pm
hamiljf
I read your post a couple of times now. I have to admit I don't get the message.
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: PeterO on Aug 12, 2013, 01:15 pm

[I'm looking forward to it.
Best regards
Jantje

Attached is a tarball of a small project that calls an assembler routine to generate a couple of pulses on port A PINS  every 6uS.
PeterO

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rainers on Aug 20, 2013, 01:01 am
Hello,

ok,

here is the the following.
I've deinstalled the plugin V2 version and installed the 1.2.5.5 Version. All worked fine, i made the settings and then I tried to create a new project - after the entry of the Arduino informations and clicking create I received the following error message.

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 20, 2013, 01:10 pm
please provide an image of the eclipse application and if possible the stack trace
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rainers on Aug 20, 2013, 05:42 pm
Hello,

I don't know what's going  on but I've deinstalled and installed your plugin several times and now it works.  Only the Arduino.h error appears and the second Error make: ***[xxxx.o]Error1

Made a new project and no errors at the moment.

Ty for your assitance.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 21, 2013, 12:10 pm
Quote
Jantje - yes, I saw that reply.  However, it didn't immediately make sense to me.  Under the Eclipse AVR I could create a static library that was linked with my executable.  In your version all the source code is compiled into a single executable.  Even though some of the code might be reused in the form of a "library", it is a compile-time action, not a link-time action.  Not really what I'm used to, or what I was looking for, but it serves the purpose of decoupling "libraries" from "applications".

As an aside, upload to Leonardo is not working properly for me.  The plugin resets the board but never re-aquires the com port.  If I manually reset the board after the first error message the upload completes properly.  If you point me to the source code for the new plugin I'll be happy to look into a solution (unless you already have one).

Thanks for the great plugin!

-Tom

Tom
Nothing stops you from creating a static library project in eclipse and link it with your project. This is the eclipse way of working and this was how version 1 of my plugin was working.
The drawback is that you will have to set all compile variables yourself and that you are not able to share compile settings with your main project.
The second reason is why the new plugin only has 1 eclipse project per sketch. Teensy and Arduino IDE 1.5.X need this functionality.

The problem you report on leonardo has been reported to me before. It works on my Windows system and I can not get leonardo to work on my linux system. Feel free to find and fix the problem  :D
As to the source code. I had a problem uploading to github. neuweiler also wanted a look at the code. I have send him my latest version and he uploaded it to a github fork and then I pulled it in. In short: the latest and greatest is at github. https://github.com/jantje/arduino-eclipse-plugin (https://github.com/jantje/arduino-eclipse-plugin)
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 31, 2013, 01:44 pm
important note on 1.5.3 beta
Given the changes the arduino team did, the plugin is currently not compatible. Please use 1.5.2 beta for now.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rinkrides on Sep 17, 2013, 07:58 pm
Jantje, excellent work on the pluggin and compatibility! However, I am having difficulties getting eclipse kepler to play nice with version 2.1.0.4. Eclipse does display the "arduino sketch icons" but at the end of the wizard it gives me an error popup. so it will not let me even generrate a new sketch. Attached is an image of the error. I have watched your video and followed explicitly the instructions within with the exception of using newer versions of the files. I'm not native to Eclipse, and pretty much a noob with eclipse. Can I use Kepler 64bit or do I require Juno 32 bit for compatibility of your latest pluggin?

I'm proficient with Parallax's IDE's (Basic stamp2 & Propeller chip) and comfortable with arduino IDE (except that it is simply horrid and can't view multiple files at the same time)

Windows 7pro 64bit
Eclipse kepler standard/SDK 64bit (primarily setup for Android dev)
Arduino 1.5.2beta(as you suggested in your last page post for compatibility)

I have read about 10 or so pages of this topic (several hours) but i could not read all of it, so if i have missed something, I do apologize for wasting your time. Any help is appreciated, thank you.
Michael
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 17, 2013, 08:39 pm
Michael
Welcome to the plugin.
I'm sorry to have to inform you that Kepler is currently not yet supported. I have heard it works under Mac OS but the plugin needs a change in Linux flavors.
I can't recall having had feedback on windows 7 but the end of the new sketch wizard is where the problem is in linux.
If you feel adventurous you can download the code from github and compile. I would bet that the linux fix also fixes the windows problem. The github contains the kepler linux fix Michael delivered.

As you are on windows 7 I would advice 32 bit for you. There is a link to my point of view on 32 bit versus 64 bit. http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.html#32or64Bit (http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.html#32or64Bit)

Best regards
Jantje

ps:This thread contains a lot of history. You're better of reading on eclipse.baeyens.it (http://eclipse.baeyens.it)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rinkrides on Sep 18, 2013, 12:09 am
Update: All is well! Thank you for making it much easier to code with arduinos!

In my case:(Windows 7Pro 64bit)
I assumed Kepler would be compatable since its newer (built newer code on top of older code). It was not. So on WinBlows the setup that should work best would be:

After installing those, watch this video by Jantje
edit:removed video

Code: [Select]

if(pluggin = v2)
 arduino ver = 1.5.2 ONLY!!
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 18, 2013, 12:17 am
Michael
I made the video and it is already on youtube. http://www.youtube.com/watch?v=iKEiwZoH7bE (http://www.youtube.com/watch?v=iKEiwZoH7bE)
Can you remove this version.
Thanks
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rinkrides on Sep 18, 2013, 07:39 am

Michael
I made the video and it is already on youtube.  (http://)
Can you remove this version.
Thanks
Jantje

Yes, sorry. Was exited to use something other than Arduino IDE. Spent another few hrs trying to figure out how to connect my own libraries into the code. editing on eclipse is marginally different however and not quite as noob friendly. I finally did figure it out with educated guessing though.
In Juno its: File-->Import... then select Arduino folder-->Import Arduino libraries in the current project, scroll down and select the libraries you want from the personal libs and hit finish. Your project should compile ok now.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 18, 2013, 01:27 pm
Michael
Thanks for removing the video.
As you are using V2 you can select Arduino from the menu and then add library to the selected project.
If your personal library path is set ok you should see your libraries and the arduino libraries just like in the ide.
(http://iloapp.baeyens.it/data/_gallery/public/1/137950377839940200_resized.png)

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Asvaldr on Sep 19, 2013, 11:47 pm
Just to confirm for others -
Eclipse 32bit Juno with the V2 plugin and Arduino beta 1.5.4 works on 64bit Windows 8 (i programmed a DUE).

With Kepler, it won't allow project creation for any board (Error attached). So use juno as Jantje says.

Again thank you Jantje; i hope to be able to do as much for the community as you have done already
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rodrigozanatta on Sep 20, 2013, 12:25 am
Lol.. I did have the SAME problem with the Eclipse Kepler in my Mac Os X. I thought it was because I am using Mac, but maybe, everyone have this problem.

(http://i40.tinypic.com/2njhlk6.jpg)

I will try to use a older version of Eclipse
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 20, 2013, 06:28 pm
How lovely to see mac windows and linux so united :-)
I'll take kepler on board for my next V2 release.
best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Oct 09, 2013, 12:16 am
someone made a video on installing.
He handles all issues you may have in windows.
http://www.youtube.com/watch?v=bmBrGRLOn98 (http://www.youtube.com/watch?v=bmBrGRLOn98)
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: cparsons on Oct 09, 2013, 11:38 am
Great plugin, thanks very much - I run my Eclipse from a framework called MyEclipseIDE and it seems to work fine apart from an error dialog when I start it up?

See attached...

I can ignore it, doesn't seem to be causing a problem but thought you might like to know?

I also have a few warnings in the code about 'undefined references' which may be related to how I have referenced the header file (it wasn't found, so I imported it as a library?)

Regards

Chris
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Oct 09, 2013, 01:10 pm
@Thorfinn
As this is a non supported environment I propose to download the code and do some debugging.
As I don't know which eclipse version my eclipse is based on and which version of the plugin you are using I can not comment on potential version incompatibilities.
Note: Kepler has similar issues as you mention.
The code is available (with kepler fix) at https://github.com/jantje/arduino-eclipse-plugin (https://github.com/jantje/arduino-eclipse-plugin)

Best regards
jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: cparsons on Oct 09, 2013, 01:59 pm
I am using the following version of MyEclipse

MyEclipse Enterprise Workbench

Version: 2013 SR2
Build id: 11.0.2-20130823

which I believe is using Eclipse 3.8.1 (Juno ?)

I got your plugin as a ZIP yesterday?

I did notice a post about the version of the Arduino IDE and went from 1.5.4 to 1.5.2 but still get the same message

If I can do anything to help you please ask?

It is not a big problem, I can install a standalone version of Eclipse to run your plugin but it would be good to resolve any issues?

Regards

Chris
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Oct 09, 2013, 02:46 pm
Eclipse Indigo (3.7)
Eclipse Juno (4.2)
As you are using Arduino IDE 1.5.2 I assume there is no compatible eclipse plugin.
Best regards
Jantje

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Oct 27, 2013, 04:07 pm
A important question for the user community:

The latest version in github works with JAVA7 only. Are there people who need/prefer java6 support?
If you do please post here and argument why you think JAVA6 suppport is needed.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: devond on Oct 27, 2013, 05:04 pm
Thread hijacking alert…

Hi Jantje,

I just posted this Q in the Due forum, but see that the man himself (that's you) has this thread going…

Short version, your plug-in rocks but it's not happy when I try to build for the Due as described here:

http://forum.arduino.cc//index.php?topic=195768.0

I'd greatly appreciates any suggestions you may have.  I'll even buy you that Arduino!  ;)

Thank you sir.
-Devon
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: dieter-w on Nov 02, 2013, 05:08 pm
Hi Jantje,
the Ardruino Eclipse plugin has problems with Windows 8.1.  MAKE returns with 0xC0000142 (-1073741502 dec).  It's not totally clear to me what's the problem, but it has somehow todo with some changes in DLLs.

Here the problem description:
http://forum.arduino.cc//index.php?topic=194800.0

There is a sollution for the AVR plugin, but I didn't get it to work with the Arduino plugin
http://forum.arduino.cc//index.php?topic=196514.0

regards
   Dieter

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 02, 2013, 05:52 pm
same post as in the thread you referred

Dieter
Thanks for the early warning. I was not aware windows 8.1 was out. Man; I'm still on xp  8)
The plugin uses the makefile delivered (but not used) by arduino. So the first thing to do is create an issue in github for arduino.
As I do not have a windows 8.1 licence I think it is best that you do this.
As the plugin V2 does not have the path settings anymore as in the avr plugin you can not change the path anymore in V2. In V1 you can but than due is not working.

what I would try:
Install the GNU win 32 project as proposed in the avr workaround you mentioned. http://smallshire.org.uk/sufficientlysmall/?p=689&preview=true (http://smallshire.org.uk/sufficientlysmall/?p=689&preview=true)
Make a copy of the folder <C:\arduino-1.5.2\hardware\tools\avr\utils\bin> (just to be sure if it fails)
copy <C:\Program Files (x86)\GnuWin32\bin\> into <C:\arduino-1.5.2\hardware\tools\avr\utils\bin> overwriting al files.
try again.

If I understood the problem correctly this should work.

Another thing you could try
Install the GNU win 32 project
add  <C:\Program Files (x86)\GnuWin32\bin\> to your path.
delete make.exe in <C:\arduino-1.5.2\hardware\tools\avr\utils\bin>
You need to delete the file make.exe because the plugin adds <C:\arduino-1.5.2\hardware\tools\avr\utils\bin> to the path in front of the existing path to force to use the Arduino delivered code.

Please feed back whether this helped you out or not.
Best regards
Jantje

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: dieter-w on Nov 03, 2013, 05:06 pm
same post as in: http://forum.arduino.cc//index.php?topic=194800.0

Hi Jantje,
in the meantime I found the problem.  The problem is an old "msys-1.0.dll" in hardware/tools/avr/utils/bin.  Even the 1.5.4 version of msys-1.0.dll is an old version.

I installed MSYS from http://www.mingw.org/ and replaced the msys-1.0.dll in the hardware/tools/avr/utils/bin with the downloaded version.  After the update of the DLL all worked fine.

The problem occurs only when make is called from eclipse, when make is called from a DOS box all works fine.

Jantje, where have I report the problem, so the Arduino 1.5.5 version contains the new msys-1.0.dll ?

Regards
     Dieter
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 03, 2013, 05:39 pm
Thanks for the feedback
The direct link for a new issue in arduino on github is
https://github.com/arduino/Arduino/issues/new (https://github.com/arduino/Arduino/issues/new)
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: dieter-w on Nov 03, 2013, 07:07 pm
Jantje,
I opened an issue.  Hopefully it is fixed in 1.5.5.

regards
    Dieter
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: sunsina on Nov 13, 2013, 04:50 pm
Hi Jantje
I followed all of the steps that you have mentioned in http://eclipse.baeyens.it/Install.html (http://eclipse.baeyens.it/Install.html)
I have setup all the required setting in Windows 7-32bit (Running as a guest machine in VMWareFusion 6.0.2) /Eclipse CDT 32bit Juno/Arduino IDE 1.5.4r2 (installed from executable)/Arduino Eclipse plugin 2.1.0.4 (and test rxtx worked).

I have compiled and programmed a sample Arduino code in Arduino IDE  in the same windows system
and the Arduino IDE programmed my board via microusb (via bootloader) with charm.
It seems the AvrDude and rxtxSerial.dll has no programming issue with my board.


But as soon as I tried to compile and program the sample code in eclipse, I get a problem with avrdude upload.
It seems that it can not put the bootloader on (by sending 1200 bps) or there might be problem with its timing
to enumerate the new USB com port) 

In the eclipse plugin case the avrdude or rxtxSerial.dll cause a severe error that force the eclipse ide to close.

I am wondering what is the problem behind the rxtxSerial.dll or avrdude, while I can program the board  via microusb in Arduino IDE but not in eclipse Arduino plug in?  :~

Anyway thanks for you effort and good luck with developing

Here I have attached a screenshot of the error
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: sunsina on Nov 13, 2013, 04:54 pm
Error screenshot
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 13, 2013, 05:18 pm
sunsina
First some questions:
Why do you need  VMWareFusion?
What arduino board do you use?

A remark:
Arduino IDE 1.5.4r2 is not supported with the plugin. You will run in troubles as soon as you try to use libraries.

My thoughts
RXTX is the problem in your case. RXTX will shortly be replaced by something better by the Arduino Core team and the plugin will follow(1). RXTX is known to give problems and I'm not sure how it will behave in a VMWareFusion Session.
I need to know your board as I need to know which code is executed that does RXTX calls.
But from my understanding you would be better of running the eclipse plugin natively (not in a VMWareFusion)

Best regards
Jantje
(1)Note that the Arduino library specification 1.5 which makes  Arduino IDE 1.5.beta and 1.5.4 beta incompatible with the plugin us currently under discussion. The current version can not be supported by the plugin and I hope Arduino IDE 1.5.5 will go back go the previous version. I'm hoping for the best for the new specification. If Arduino persists in a non-supportable library specification I may stop working on the plugin.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Headroom on Nov 13, 2013, 05:51 pm
To add to Jantje's comments, there is really no reason to use Arduino and Eclipse + Plugin in a VM on the mac.
That combo runs very smoothly natively on a mac. It has been noted that the way the VM assumes the USB ports in some cases
interfers with things.

Here is a link to detailled installation instructions on a mac. http://trippylighting.com/teensy-arduino-ect/arduino-eclipse-plugin/arduino-eclipse-plugin-installation/ (http://trippylighting.com/teensy-arduino-ect/arduino-eclipse-plugin/arduino-eclipse-plugin-installation/)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: sunsina on Nov 14, 2013, 11:56 am

In my linux mint-64 environment(running as guest virtual machine) with very same setup I get following error from AVRDude
Connecting to programmer: .avrdude: butterfly_recv(): programmer is not responding
Please note that I execute  chmod +777 /dev/ttyACM0 in order to make AVRDude program the device.

It does not matter if RTTX is on for resetting or not in eclipse setting.
I am not sure if I have to use udev rules change the name and permission of the device after reset (maybe after the Yun board a new USB device get enumerated like /dev/ttyACM1,...)

Anyway I will give a try to work natively on MAC and check if the plugin works smoothly in that environment or not
Thanks
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: sunsina on Nov 14, 2013, 02:19 pm
@Jantje
Regarding to @Headroom I followed the setup instruction on (for my MAC machine)
http://trippylighting.com/teensy-arduino-ect/arduino-eclipse-plugin/arduino-eclipse-plugin-installation/ (http://trippylighting.com/teensy-arduino-ect/arduino-eclipse-plugin/arduino-eclipse-plugin-installation/)
Amazingly the supported Arduino IDE version 1.5.2 does not support Yun board.
I tried leonardeo (the closest configuration to Yun) and I got similar error that I got in my linux environment.
Even upgrading to Arduino 1.5.4r2 compiles the minimum project without showing compilation error but unfortunately
the same error message Connecting to programmer: .avrdude: butterfly_recv(): programmer is not responding
persist to show in  my MAC and Linux machine (I have tried several different Arduino IDE versions ,eclipse version,.....) None of them
worked  for me.
=(
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Headroom on Nov 14, 2013, 03:18 pm
Yes, unfortualately that is the case. It did not occur to me that you were using a Yun until after I posted.

The Yun is supported with the elease of Arduino 1.5.4 but the Arduino team also introduced changes, e.g. how libraries are supported that make it very difficult for third party developers to support the Arduino environment. This does not only concern Eclipse but there are others.

While these third party developers (software as well as hardware). The very well thought out suggestions these third party deveopers have put forth have been met with a surprising reluctance, despite the obcvius shortcomings of the IDE.

Anyway, if you currntly want to use the Arduino Eclips Plugin with an Arduino Yun you are at an impass as the eclipse plugin does not with with the 1.5.4 Arduino environment.

Do you get this message also using the Arduino IDE when runnning on a Mac natively ?
"Connecting to programmer: .avrdude: butterfly_recv(): programmer is not responding
Do you get this message "

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 14, 2013, 04:17 pm
Headroom explained the situation very well.
I have 2 yun's but postponed my yun projects because of these issues.
If I understood correctly Arduino IDE 1.5.5 will revert to the old library format. Lets hope I understood it correctly.
For the leonardo.
I never got leonardo to work on my Linux (not with Arduino IDE not with the plugin)
It works on windows XP
Apparently it doesn't for for yun on MAC.
The yun bootloader is different from the leonardo bootloader and it is not that obvious with the serial ports popping up and disappearing. It took me a while to get it in my fingers.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: steven6282 on Nov 21, 2013, 03:49 am
Hey, sorry if this has been asked somewhere above, but with 24 pages I couldn't find anything and trying to search didn't have much luck.  In the first post it says

Quote

EDIT
version 1.0.10 is now tested on openSUSE
Latest version are tested and running on MAC
Added serial monitor
End EDIT


I'm having trouble finding the serial monitor.  I've looked through all the menus and at all the buttons but don't see anything labeled as or that looks like a serial monitor.

I'm looking for an alternative IDE because for some reason the Arduino IDE will simply not work in WIndows 8 for me.  After a few minutes the GUI stops refreshing itself.  Near as I can tell, it's updating, simply not refreshing.  I can move the window around and when I change the window state in order to force a window redraw operation it updates with anything I've done while it wasn't updating.  Highly annoying and happens with both 1.0.5 and 1.5.4 r2.  I've always liked eclipse in the past for side projects so thought this might be a nice plugin to try out.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 21, 2013, 11:24 am
steven6282
please see my FAQ page http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.html#serial (http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.html#serial)
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: nicoverduin on Nov 23, 2013, 07:25 pm
Hi Jantje
Is it still possible to go back to V1? I am having some issues with V2 in combination with ATTiny's. an Arduino 1.5.4
I will install an old Eclipse with 1.0.5 and your V1. That is stable enough for now.
Regards
Nico
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 23, 2013, 07:34 pm
Nico
V2 is still in beta so V1 is the stable version.
You are not the only one having issues with arduino IDE 1.5.4 beta. My plugin has ans It does not support  arduino IDE 1.5.4 beta. It only supports  arduino IDE 1.5.2 beta
There is no reason why you could not use the V1 version. This is why I have a V1 and V2 have a different update site.
If you want to stick to your eclipse and workspace (for instance because of version control or so. Just de-install V2 and install V1.
Note however that V2 and V1 are seriously different and I never downgraded to V1. So expect some problems there.
Best regards
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: nicoverduin on Nov 23, 2013, 07:40 pm
Worst case scenario..... deinstall everything and start all over :).
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: nicoverduin on Nov 23, 2013, 07:59 pm
Hi Jantje
I looked at : http://www.baeyens.it/eclipse/update for V1
but no old release. Has that changed?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 23, 2013, 10:01 pm
I tried this as well.
Seems like update doesn't work anymore but "update site" does
not sure how that comes
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: nicoverduin on Nov 23, 2013, 10:14 pm
meaning?  no more available?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 23, 2013, 10:27 pm

meaning?  no more available?

"update" should point to "update site" because some people have problems with spaces I made this link.
The real location has always been  "update site".
So meaning: somewhere some configuration is no more supported or has gone corrupted.
Solution: just use http://www.baeyens.it/eclipse/update site
I'll update the site to point to "update site"
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: nicoverduin on Nov 23, 2013, 10:38 pm
Worked thanks :)
Regards
Nico
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: nicoverduin on Nov 24, 2013, 01:36 pm
Well it did not quite work :( So I moved to 1.5.2 and the new plugin. It seems I have to rebuild every older version developed sketch. is that correct? Or is there a short cut :)?

And every time I startup I get a popup saying:
Problem running CDT scanner Discovery provider it.baeyens.arduino.languageSettingsProvider.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 24, 2013, 02:12 pm
For the popup I think you are running kepler (not yet supported)
V1 and V2 are majorly different and workspaces are not compatible. if you only need to reselect the arduino board (make sue to press apply) and rebuild you are lucky

As a shortcut you can select all projects right click and say clean and then build. that shpuld rebuild all your projects.

best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: nicoverduin on Nov 24, 2013, 02:58 pm
I am running Juno SR2. Deleted everything and started from scratch. Seems the cause is that the languag file settings is missing in preferences. The approach I use now is:
- rename the old project with the extension _OLD
- create a new project with the correct name
- copy the source files
- import the required libraries
- and compile.
Seems a lot of work but is not actually :) Just go into 'dumb'mode and just do it :)

Another question:
- In the previous versions I could modify the source templates. Is this still possible?

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 24, 2013, 10:07 pm

- rename the old project with the extension _OLD

You can also open 2 eclipse instances. Than you can have 2 workspaces old and new. Than this action is not needed and you are sure that if you make a mistake the old version is still intact.


- In the previous versions I could modify the source templates. Is this still possible?

Nothing changed on this behalf. So you should be able to modify it like you did.
If you feel it is an improvement for all you may want to update the github repository  or create a issue 8)
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: nicoverduin on Nov 24, 2013, 10:56 pm
The point is I can't find the templates you use :)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: nicoverduin on Nov 25, 2013, 08:06 pm
Ok
I think I understand :smiley-mr-green: the sketch sources are incorporated in the JAVA code,
I forked the library and as I always love educational projects (starting with my limited knowledge of JAVA :smiley-roll-sweat:) I will try to:
a) see if I can add a folder to direct to custom versions of the sketch.cpp and sketch.h. If they do not exist then I will used the builtin versions.
b) I will see if I can add an extra field in the screen where the Arduino folder and user libraries exist and see if I can add a folder for custom sketch.cpp and sketch.h.

Now as I am currently reasonably ignorant to JAVA development (can't have them all) this is a nice project for me to learn :)
So don't expect it to be done by tomorrow :smiley-mr-green: :smiley-mr-green:But I do want to give it a shot.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 25, 2013, 08:43 pm
sketch.cpp and sketch.h are delivered as part of the code. They are not coded. There is a global find and replace to change tags to the selected file name.
I however don't know how eclipse packages them for the plugin.
on github you can find them here. https://github.com/jantje/arduino-eclipse-plugin/tree/master/it.baeyens.arduino.core/src/it/baeyens/arduino/ui/templates (https://github.com/jantje/arduino-eclipse-plugin/tree/master/it.baeyens.arduino.core/src/it/baeyens/arduino/ui/templates)
If you feel like a challenge; what I would do is extend the create new sketch wizard with a page to select the "default sketch"
That page could then later be extended to allow to select an example from a library.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: nicoverduin on Nov 25, 2013, 10:42 pm
Hi Jan
I found both sources and following you procedure they can be modified. Apparently the Eclipse package incorporates them in the jar file. I scanned Eclipse for either files, but I could not find them. Only the previous versions had accessible source files.
I like you suggestion. So I will take that approach. I haven't a clue how yet, but I'd rather make 10 mistakes (I learn more) then some one telling me how to do it.
So my thinking will probably be:
a) after a couple of days...... How could any one use this onlogic language!!!
b) after a couple of weeks....... Oh that makes sense......
c) after a couple of weeks more..... Not a bad language at all  :smiley-mr-green: :smiley-mr-green: :smiley-mr-green: :smiley-mr-green:
And after about 25 programming languages through 40 years..... They all boil down to the same thing and you start using languages where they are convenient using the strengths :smiley-mr-green:
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 26, 2013, 12:55 am
dat klinkt bekend :-)
veel geluk
As er iets is laat het maar weten.
Lees ook de readme.md (onderaan deze pagina) https://github.com/jantje/arduino-eclipse-plugin (https://github.com/jantje/arduino-eclipse-plugin) voor de praktische afspraken en regelingen.
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: nicoverduin on Nov 26, 2013, 09:33 am
Doe ik :) En je moet ff door die zure appel heen :) Overigens ik stop wel gelijk overal waar ik zit te kijken de zaak vol met commentaar (doe ik altijd bij Reverse engineering) dan ga ik het vanzelf begrijpen en het is gelijk gedocumenteerd. Hoop niet dat je dat erg vind :)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 26, 2013, 01:59 pm

Hoop niet dat je dat erg vind :)

(I see I swapped language again  :smiley-eek: )
Please be careful when adding comments when using a shared repository like github. Each file you touch becomes part of the changeset and/or pull request. As such the changeset can become so big it is nearly impossible to validate the "code change" because it is hidden in "comments changes".
So my rule of thumb:
If you touch a file-> feel free to add comments to the whole file
If you touch a set of files that belong together (for instance the create new sketch wizard is a set of files)-> feel free to add comments to the whole set; even if you do not modify code in the whole set.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: nicoverduin on Nov 26, 2013, 03:30 pm
We're on the same line :)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: nicoverduin on Dec 01, 2013, 12:27 am
Took some effort and lots of learning :smiley-mr-green: But I got it working. I still have some tidying up to do and then I will make a pull request.
Was fun learning though :smiley-mr-green:
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Dec 01, 2013, 07:25 pm
That is fast.
I'm impressed. I'm looking forward to the pull request.
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: nicoverduin on Dec 02, 2013, 03:47 pm
Hi Jantje
I sent the pull request.
Regards
Nico
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Dec 02, 2013, 04:35 pm
I'm impressed;
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: nicoverduin on Dec 02, 2013, 07:18 pm
Thank you :smiley-mr-green: Most of the effort is used on figuring out specific calls in the Eclipse help system.... and Wingrep is wonderful tool  :smiley-mr-green: And for the rest JUST-DO-IT!!!
And it certainly encourages for more :smiley-mr-green:
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: nicoverduin on Dec 03, 2013, 02:07 pm
As I am working with the ATTiny family I succeeded using the Baeyens plugin (using Arduino IDE 1.5.2) in the following way:
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Dec 12, 2013, 09:03 pm
A new version of the plugin is coming and some testers are needed.
Volunteers please step forward.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: nicoverduin on Dec 13, 2013, 11:22 am
Hi Jantje
Count me in :)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: katekarnage on Dec 13, 2013, 06:24 pm

A new version of the plugin is coming and some testers are needed.
Volunteers please step forward.
Best regards
Jantje


*steps foreward*

Ready for duty again sir!

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: RbSCR on Dec 14, 2013, 11:44 am
Quote
A new version of the plugin is coming and some testers are needed.


For which eclipse version ? Juno , Kepler ?
For which Arduino IDE version ?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Dec 14, 2013, 01:37 pm

Quote
A new version of the plugin is coming and some testers are needed.


For which eclipse version ? Juno , Kepler ?
For which Arduino IDE version ?


The plugin version is planned to work with juno and kepler.
The product version is planned to be kepler.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: RbSCR on Dec 15, 2013, 12:42 pm
If testing in the last 2 weeks of this year is timely enough, I'm willing to step forward.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Dec 16, 2013, 02:23 pm
I'm still working on a issue and waiting for some more volunteers. https://github.com/jantje/arduino-eclipse-plugin/issues/108 (https://github.com/jantje/arduino-eclipse-plugin/issues/108)
I hope to get the first test version out end of this week.
If you want to get your hands on the latest version feel free to take a look at the new product that you can download from the nightly build http://eclipse.baeyens.it/download.php (http://eclipse.baeyens.it/download.php) don't forget to set the arduino or C/C++ perspective.
Apart from a nicer start this will be the first test version.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Dec 20, 2013, 12:36 am
@nico @RbSCR
Please send a mail to eclipse@baeyens.it so I can add you to the mailing list.
@kate
I still have your email adress.

I'm in the process of the paperwork for this release. So it should be soon now.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rockwallaby on Dec 31, 2013, 11:41 pm
Jantje, Gelukkig Nieuwjaar,

I'm enjoying the latest beta release on both OSX and Linux, and have a question I would like to ask.
I have a need to be able to program a Mega based board using an ISP, a Freetronics EtherMega.
The board has a non functional USB cpu section, but the 2560 side is good.

I read in the git requests that you mentioned that it will not be available, but is there the possibility of doing this?
____
Paul
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jan 01, 2014, 11:00 pm
Hi Paul
Happy new-year to you to :-)

I read in the git requests that you mentioned that it will not be available, but is there the possibility of doing this?

I indeed don't plan to add the multitude of possibilities to upload as the Arduino IDE does. If anyone else wants to do this I won't stop him/her.
Does that mean you can't do it?  ..... No.
The plugin contains a "generic uploader" That one allows to run a number of commands in sequential order. So if you know the commands tat need to be run you can modify platform.txt or boards.txt to execute these commands when uploading instead of the "normal" commands.
For instance for the Teensy I have the following in the platform.txt:
Code: [Select]
tools.teensy_reboot.upload.params.verbose=
tools.teensy_reboot.upload.params.quiet=
tools.teensy_reboot.cmd.path={tools.teensy_reboot.config.path}/
tools.teensy_reboot.name=Teensy upload
tools.teensy_reboot.step1.pattern={tools.teensy_reboot.cmd.path}teensy_post_compile -path={build.path} -file={build.project_name} -tools={tools.teensy_reboot.config.path} -board={name}
tools.teensy_reboot.step1.name=Teensy post compile
tools.teensy_reboot.step2.pattern={tools.teensy_reboot.cmd.path}teensy_reboot -v
tools.teensy_reboot.step2.name=Teensy reboot

Because of practical issues all the {xx} are translated to ${A.XX} in the environment variables.

The drawback of doing this in the platform.txt is that it will do the change for all the boards. You can also do the change in boards.txt. The plugin processes the platform.txt and then boards.txt. Therefore you can overwrite all platform.txt settings with board specific ones in boards.txt (I don't know whether the Arduino IDE works in the same way)
As you say it is for a mega2560 the above commands would become
Code: [Select]
mega2560.tools.teensy_reboot.upload.params.verbose=
mega2560.tools.teensy_reboot.upload.params.quiet=
mega2560.tools.teensy_reboot.cmd.path={tools.teensy_reboot.config.path}/
mega2560.tools.teensy_reboot.name=Teensy upload
mega2560.tools.teensy_reboot.step1.pattern={tools.teensy_reboot.cmd.path}teensy_post_compile -path={build.path} -file={build.project_name} -tools={tools.teensy_reboot.config.path} -board={name}
mega2560.tools.teensy_reboot.step1.name=Teensy post compile
mega2560.tools.teensy_reboot.step2.pattern={tools.teensy_reboot.cmd.path}teensy_reboot -v
mega2560.tools.teensy_reboot.step2.name=Teensy reboot

Personally I would copy the whole mega2560 and change the id to EtherMega. This way you can modify all the settings and have the upload as you want it.

If you made a change to the boards.txt or platform.txt select apply in the project/arduino properties to have the plugin use the new settings.

If it takes you longer than half an hour to get it going you are probably not taking the easiest route  :D

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Headroom on Jan 16, 2014, 04:28 am
I've written some installation instructions for the newest version 2.2 and the new Arduino Eclipse IDE :

http://trippylighting.com/teensy-arduino-ect/arduino-eclipse-plugin/arduino-eclipse-ide-and-plugin-v2-2-installation/ (http://trippylighting.com/teensy-arduino-ect/arduino-eclipse-plugin/arduino-eclipse-ide-and-plugin-v2-2-installation/)

Particularly useful if you work on a mac and also want to program Teensy 3x boards! I've also installed the new Arduino Eclipse  IDE on Windows 7 and Ubuntu Linux, and find that the instructions should work for these as well.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jan 16, 2014, 01:23 pm

I've written some installation instructions for the newest version 2.2 and the new Arduino Eclipse IDE :

http://trippylighting.com/teensy-arduino-ect/arduino-eclipse-plugin/arduino-eclipse-ide-and-plugin-v2-2-installation/ (http://trippylighting.com/teensy-arduino-ect/arduino-eclipse-plugin/arduino-eclipse-ide-and-plugin-v2-2-installation/)

Particularly useful if you work on a mac and also want to program Teensy 3x boards! I've also installed the new Arduino Eclipse  IDE on Windows 7 and Ubuntu Linux, and find that the instructions should work for these as well.

Thanks :-)
I'll make a link from my website
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: katekarnage on Jan 18, 2014, 02:28 pm
I've updated the teensy3.0 and teensy 3.1 sections of the boards.txt for Tennsy from Teensyduino 1.18rc2 (installed using Headroom's instructions above)

This should work teensy 3.1 now (and added in partial Turkish support) as long as you add teensduino libraries as in Headroom's instructions above.

Please look over and point out any obvious errors. I haven't touched the teensy1,1++2,2++ sections as I don't have those boards to test with, but it does work with teensy 3 & teensy 3.1


Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jan 18, 2014, 04:12 pm
kate
Great :-)

@all
Maybe it is a good idea to add a Teensy dedicated part to my website and put the files there. The website is uploaded from github That means anyone can create a pull request.
Tell me what you think.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jan 19, 2014, 08:31 pm
V2.2 has been released officialy now.
There is plenty of new stuff.
For the non eclipse guru's amongst us: please read the install advice http://eclipse.baeyens.it/installAdvice.shtml (http://eclipse.baeyens.it/installAdvice.shtml)
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: timbopoise on Jan 25, 2014, 12:34 am
Jentje,

    I look forward to getting Eclipse Arduino IDE working, but for now I'm having problems.  I'm running on Ubuntu 12.04.  None of the instructions I've found are specific to linux.  I'm not now nor have I ever been a Apple user so at key points in the instructions I don't think I was able to follow and to translate to linux.  And,

   FYI, earlier this week I installed Arduino 1.05 and teensyduino.   I was able to build, download, and run on Teensy 3.1.

   I've read and followed both yours and Headroom's instructions.  First I followed your instructions from http://www.baeyens.it/eclipse/Install.shtml. 

   I installed Juno Eclipse (FYI I have had other same or other versions installed).  I downloaded and installed Arduino 1.5.5 after reading your installAdvice page.  I interpreted your note about "needs fix" as applying to Kepler and NOT juno.  Apparently bad assumption and the page is confusing.

    The first time I installed V2.2 plugin during the "install new software" steps there was one choice and I installed it.  I went to Preferences::Arduino and tried to specify my Arduino 1.5.5. path but when I entered Apply it said invalid field.  The dialog from the unix version is different from what was in the instructions. 

   After not being able to resolve this, I went back and read more and found Headroom's instructions.  I followed these instructions but this time trying to install Eclipse Arduino IDE.  When I  "install New Software" and used provided link (same as yours) I was given 3 version that could be installed.  I chose the one Headroom suggested in the instructions, but Eclipse said there was a newer version installed.  I found a way to uinstalled the 2.2.0.1 that had installed.  But still eclipse would not allow me to install the one suggested.  In fact, none of them would install. 

It would seem there's a conflict I've created and I need to clean things up.   I use TI's Code Composure Studio, which is Eclipse based and I'd like to avoid breaking it.

Do you have any suggestions how to proceed?   

Also, it appears that since I've chosen to try and install Arduino 1.5.5 the sources have to be modified per your InstallAdvice page.  You provided a script that I cut/pasted into a file and made executable.  The instructions are for MAC and are unclear where to run the script on linux.

Please help.  Thank



Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Headroom on Jan 25, 2014, 01:18 am
@timbopoise

The Arduino Eclipse IDE bundles Eclipse Kepler and the plugin V2.2. No separate installation of the plugin is needed!
The only other software you have to install is Arduino IDE 1.5.2, or Arduino IDE 1.5.5 (NOT 1.5.4)

So, go ahead and compile and upload something ;-)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 11, 2014, 10:41 pm
I'm looking for a volunteer to test assembly in the plugin V2 (latest build).
The volunteer should have assembly knowledge (at least at the command line level) and do testing.
Please react on the github issue https://github.com/jantje/arduino-eclipse-plugin/issues/121 (https://github.com/jantje/arduino-eclipse-plugin/issues/121)
Best regards
Jantje
Title: What is the correct procedure to open/create project of a working project ?
Post by: AndreK on Feb 21, 2014, 12:20 pm
How to make a project , and include a working ~/Arduino/projectname  ?
Creating a project starts with nothing.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Headroom on Feb 21, 2014, 12:39 pm
You may want to dart with the instructions on my blog:

http://trippylighting.com/teensy-arduino-ect/arduino-eclipse-plugin/arduino-eclipse-plugin-installation-2/ (http://trippylighting.com/teensy-arduino-ect/arduino-eclipse-plugin/arduino-eclipse-plugin-installation-2/)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: AndreK on Feb 21, 2014, 12:52 pm
I'm looking for Info on how to import an existing project, all files, already with code.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 21, 2014, 01:55 pm

I'm looking for Info on how to import an existing project, all files, already with code.

Easiest ways is I know that work for sure
1) drag and drop
Create project from scratch.
Delete the created .cpp and .h files
Drag and drop your files in the project in eclipse (you can select to link or copy the files both work)
Import the libraries needed for your sketch.

2) workspace location
create a workspace in the parent folder of the folder containing the code
Make sure there are no [foldername].* files
Create a project with the name of the folder containing the code.
Adopt files as needed.
Import the libraries needed for your sketch.

What may work is that in the creation wizard you select a sketch different than default and point to your source code.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: AndreK on Feb 21, 2014, 02:22 pm
Thank you - it it best to keep the cope in ~/Arduino/  folder ?     (with) projectname/projectname.ino   
and teh workspace would be then in ~/Arduino  ?
or would you recommend to dupliate the folder/ source into nother place ?

To start with, until I see how it works with bigger projects, I'd like to keep it in ~/Arduino with the deafult structure, to quickly compile using Ardiuno if i need to compare results.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: AndreK on Feb 27, 2014, 01:51 pm
I took a simple Ardiono project that works, and just imported it to a new folder, to test it with eclipse:
This is the result:


**** Build of configuration Release for project M2h ****

make all
Code: [Select]
Building file: /home/andre/Arduino/libraries/mavlink/pymavlink/generator/C/test/windows/stdafx.cpp
Invoking: AVR C++ Compiler
avr-g++ -I"/home/andre/arduino-1.0.5/hardware/arduino/cores/arduino" -I"/home/andre/arduino-1.0.5/hardware/arduino/variants/standard" -I"/home/andre/Arduino/M2h" -I"/home/andre/arduino-1.0.5/libraries/SPI" -I"/home/andre/Arduino/libraries/SimpleTimer" -I"/home/andre/Arduino/libraries/FastSerial" -I"/home/andre/Arduino/libraries/mavlink" -D__IN_ECLIPSE__=1 -DUSB_VID= -DUSB_PID= -DARDUINO=105 -Wall -Os -ffunction-sections -fdata-sections -fno-exceptions -g -mmcu=atmega328p -DF_CPU=16000000UL -MMD -MP -MF"mavlink/pymavlink/generator/C/test/windows/stdafx.d" -MT"mavlink/pymavlink/generator/C/test/windows/stdafx.d"  -c -o "mavlink/pymavlink/generator/C/test/windows/stdafx.o" -x c++ "/home/andre/Arduino/libraries/mavlink/pymavlink/generator/C/test/windows/stdafx.cpp"
In file included from /home/andre/Arduino/libraries/mavlink/pymavlink/generator/C/test/windows/stdafx.h:8:0,
                 from /home/andre/Arduino/libraries/mavlink/pymavlink/generator/C/test/windows/stdafx.cpp:5:
/home/andre/Arduino/libraries/mavlink/pymavlink/generator/C/test/windows/targetver.h:8:23: fatal error: SDKDDKVer.h: No such file or directory
compilation terminated.
make: *** [mavlink/pymavlink/generator/C/test/windows/stdafx.o] Error 1

**** Build Finished ****


I am not sure if it somehow grabbed too much from the library:  "mavlink/pymavlink/generator/C/test/windows/stdafx.d
anyway - the libraries are the same that work fine with "arduino"

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 27, 2014, 02:59 pm
I'm not sure what you have done or how you did it but the compilke output states you are trying to compile
Code: [Select]
/home/andre/Arduino/libraries/mavlink/pymavlink/generator/C/test/windows/stdafx.cpp
which looks like you copied to much.
stdafx.cpp is a visual studio compile optimization  solution which is not at all wanted/compatible with arduino ide.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: AndreK on Feb 27, 2014, 03:35 pm
exactly, arduino mavlink library comes with other examples as well, of course, I could delete them, for some libraries manually deleting here and there would mess with git.
-Arduino dig too deep into the library folder structure.
-Is if possible to stop Eclipse from doing it ?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 27, 2014, 03:51 pm
If you import a library as a library in eclipse the examples folder will be removed from the compilation path.
If you want to exclude sources and/or folders you can right click the file/folder select resouce configurations and select exclude from build. Select the configurations to exclude (there should be only Release)
Once excluded the files/folders are grayed out.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: beingobserver on Mar 01, 2014, 08:26 am
[Installation problem]
Hi. I am relatively new to Arduino and completely new to Jantje's plugin.
I spent all yesterday trying to install it. I don't know if i should go back to page 1.

-I have Os X: 10.9.1.
-Downloaded Eclipse - OS X 32 Bit (It says Kepler)
-I couldn't find the Arduino V1.5.5  and downloaded V1.5.6-r2

-I tried Help > Install New Software > http://www.baeyens.it/eclipse/update (V 1.2.0)
-I also tried dragging & dropping  http://www.baeyens.it/eclipse/download/product/V2.2_mac64.2014-01-19_15-16-30.tar.gz into dropins folder.

I tried several times with different versions of the files and most of the time it doesn't accept Arduino IDE Path.
Couldn't upload the file..
And sometimes "serial port already in use" warning.

I suspect that there might be a version conflict.
Now i removed everything. Where should i start again?

Thank you.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 01, 2014, 01:51 pm
Hi beingobserver
It seems to me you are  confused by the different installation options there currently are.
I have written this page to explain http://eclipse.baeyens.it/installAdvice.shtml (http://eclipse.baeyens.it/installAdvice.shtml) the options.
please read the page and if something is not clear we can discus so it becomes clear to you and I can modify the page so it becomes clearer.

And here is a link to older arduino versions http://arduino.cc/en/Main/OldSoftwareReleases#.UxHZ0fFl7PE (http://arduino.cc/en/Main/OldSoftwareReleases#.UxHZ0fFl7PE)

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rockwallaby on Mar 01, 2014, 01:57 pm
Sounds like you have really tried to get it going, hopefully I can give you a few pointers to help you get up and working with this great plugin for Eclipse.

Before you start, you must have the correct version of the Arduino IDE already installed on your Mac. You can check on Jantje's site for the correct version you need for a specific version of the plugin. I do find it confusing how Jantje has detailed this and would like to see his instructions for this laid out differently so it is more clear and understandable. But, basically, only certain versions of the Arduino IDE can be used with the plugin. I believe this is because of changes in the way Arduino do things.

But, to let you know I use and others suggest using Arduino version 1.5.2 beta.
I use this version as I am playing with the DUE as well.

There are two basic approaches to having Eclipse work with Arduino, so that you can program and upload from Eclipse to your connected Arduino.

The first is along the lines of what you have done, and this was Jantje's first method of installation.
For this, you needed to download and install, as you have done the specified version of Eclipse CDT (The C/C++ dev system). After checking that Eclipse was installed and working correctly, you would then proceed to install Jantje's plugin.
Normally this is done from within Eclipse.
You can see this here http://www.baeyens.it/eclipse/Install_plugin.shtml (http://www.baeyens.it/eclipse/Install_plugin.shtml).
From there you will see that you need to run up Eclipse and the select 'Help | Install New Software.
Follow the instructions step by step and you should end up with a system that works.

Also, as you are also on a Mac, this may also interest you, a link from Jantje's site http://trippylighting.com/teensy-arduino-ect/arduino-eclipse-plugin/arduino-eclipse-ide-and-plugin-v2-2-installation/ (http://trippylighting.com/teensy-arduino-ect/arduino-eclipse-plugin/arduino-eclipse-ide-and-plugin-v2-2-installation/)

Right, the second method, is far easier and should have you up and working in a very short time.
That is download one of Jan's prebuilt packages from his download area, http://www.baeyens.it/eclipse/download.php (http://www.baeyens.it/eclipse/download.php)
Go down to see the Mac OSX packages and select a recent version.
You will need to unzip it and then you can install it..

Now, the problem.
I tried a few of these packages last week for you already, but, as you know I had problems with the installation.
I emailed Jan about this, but he is unfortunately unable to test the situation as he doesn't have a Mac.

To further test my research, I downloaded a bete testers package for Mac OSX and that installed fine for me.
Maybe you might like to try to download a prebuilt package from the download area with the link above and try.
That way, if you have problems, you may tell Jan and we will then need to see what the problem there is.
Maybe it was just me and I did something incorrect, but I tried on both my Macbook Pro and Mac Mini with the same results.
Both installs from the download are failed to install correctly,with errors being generated during the unzip process.
Yet on both my Mac's I could use the beta testers prebuilt package just fine.

Ok, I think that should be enough to get you well and truly confused Ersan  :)
____
Paul
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Headroom on Mar 01, 2014, 02:04 pm
I have written detailed installation instruction for Mac users here:

http://trippylighting.com/teensy-arduino-ect/arduino-eclipse-plugin/arduino-eclipse-ide-and-plugin-v2-2-installation/ (http://trippylighting.com/teensy-arduino-ect/arduino-eclipse-plugin/arduino-eclipse-ide-and-plugin-v2-2-installation/)

These are to be followed precisely. If it says Arduino 1.5.2 then don't attempt to use 1.5.6 because it is more convenient ;-)

Also, I would really appreciate feedback on these instructions (there's a Windows version as well). I have anywhere between 40-50 visitors with 2-3 views per visitor on that section of my tiny blog and rarely receive any feedback. Occasionally a user asks question and needs help, but once I provide direction I don't necessarily receive feedback if it actually helped.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rockwallaby on Mar 01, 2014, 02:09 pm
Yes I thought your instructions were quite well explained too.
I could have used them last year or was it the year before that, when I was going through this myself.
Still, I learn much by slogging through the hard way.

Thanks Headroom, I hope this will help Ersan and others with using Eclipse.

P.S. You would have had a few more visits just now so I could get the link in my post  :)
Maybe I should read it again.
____
Paul
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 01, 2014, 02:13 pm
And in the mean time there is a 3th option to install.
This option is basically the same as the first option (install eclipse and add the plugin) but it is done using the eclipse marketplace.
once you installed eclipse go to help->eclipse market place
In the dialog box enter arduino as search word and select go
select install from the arduino eclipse ide.
then configure the plugin as described from step 4 onwards http://eclipse.baeyens.it/Install_plugin.shtml (http://eclipse.baeyens.it/Install_plugin.shtml)
or from Headroom his link.

Believe me or not but next week you won't understand why it didn't work

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: AndreK on Mar 17, 2014, 10:05 am
hi.
First I installed from Eclipase market.  It sayd V2 , I did not see "2.2" anywhere, si I uninstalled and installed 2.2 from
baeyens.it
Whenever i click verify (the least I can expect to work)  I get :

Conflicting handlers for it.baeyens.arduino.actions.ArduinoBuildAction: {it.baeyens.arduino.actions.BuildHandler@4d8491ec} vs {it.baeyens.arduino.actions.BuildHandler}

Not sure if this can be blamed on "arduino-1.5.6-r2" - I had to take a chance on it, as I failed to find the approved versions.

eclipse.buildId=4.3.2.M20140221-1700
java.version=1.7.0_51
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.cpp.product
Command-line arguments:  -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.cpp.product
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 17, 2014, 12:11 pm

Conflicting handlers for it.baeyens.arduino.actions.ArduinoBuildAction: {it.baeyens.arduino.actions.BuildHandler@4d8491ec} vs {it.baeyens.arduino.actions.BuildHandler}

If I understand you correctly you are talking about a logging in the error log which has no functional influence on the working of the plugin.
If so it has been fixed as you can see here. https://travis-ci.org/jantje/arduino-eclipse-plugin/builds/19222196 (https://travis-ci.org/jantje/arduino-eclipse-plugin/builds/19222196)
The market place installs the latest officially released version (which is V2.2). To have this fix you need the latest and greatest which is only available as nightly build. easiest is to upgrade using the nightly update site http://www.baeyens.it/eclipse/nightly

Can you please confirm that the issue is only an logging in the error log and if not can you please explain what goes wrong?

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: AndreK on Mar 17, 2014, 12:32 pm
I guess the correct nightly path is something like: http://www.baeyens.it/eclipse/download/product/linux64.2014-03-10_02-06-10.tar.gz
Installed, and used it - works much better - did not had chance to test with actual hardware, but it looks promising.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: AndreK on Mar 18, 2014, 12:34 pm
Jantje - Today, wanted to test the daily build , downloaded whole package from your site, (not only plugin)

Created a new sketch, imported (copied) a projetcs files.
On compile I get:
Code: [Select]

Building file: ../Functions.ino
Starting C++ compile
"/home/andre/prog/arduino-1.5.6-r2/hardware/tools/avr/bin/avr-g++" -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=156-r2 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR    -I"/home/andre/prog/arduino-1.5.6-r2/hardware/arduino/avr/cores/arduino" -I"/home/andre/prog/arduino-1.5.6-r2/hardware/arduino/avr/variants/eightanaloginputs" -MMD -MP -MF"Functions.ino.d" -MT"Functions.ino.d" -D__IN_ECLIPSE__=1 -x c++ "../Functions.ino"  -o  "Functions.ino.o"   -w

../Functions.ino: In function 'void timerEvent()':
../Functions.ino:4: error: 'hottV4_state' was not declared in this scope


And the final line is the start of a lot of problems.
Instead of start by compiling [projectname].ino  - it starts with apparently a random .ino

I guess there's something I missed ?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 18, 2014, 12:52 pm

I guess there's something I missed ?

I guess you have not read the section Before continuing Note that : on http://eclipse.baeyens.it/ (http://eclipse.baeyens.it/)
More specifically
Quote
The current version works with cpp files only (no pde or ino out of the box).
Therefore the plugin is not compatible with the IDE out of the box. (read a sketch may not compile in the plugin)
Below is a link to instructions on how to keep your plugin developed code Arduino IDE compatible. (read your eclipse project compiles in Arduino)
I use those and I can compile the code between the Arduino IDE and eclipse without changes and defines.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: AndreK on Mar 18, 2014, 01:31 pm
Thanks.
Will wait will test a little more in spare time, and wait till it and Arduino cooperates a bit smoother.
Please consider adding serial port selection in toolbar, I often choose between ttyUSB0 and 1 depending on other connected devices.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: AndreK on Mar 18, 2014, 01:35 pm
donation sent, keep up the good work, I'd like to see this become the "pro" IDE for arduino.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 18, 2014, 04:20 pm
thanks for the support
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: mweissboeck on Mar 19, 2014, 05:30 pm
Great Plugin, I love it :-)

But I have one problem. I like to share my Arduino projects with my Git repository. Sharing works (Team > Share Project...)
The files all show up in the Git repo. But after sharing, the Team menu item does not show all this nice Git commands, its still only shows Share Project... Also in the Project Properties, Git does not show up.

On plain C Projects this works just fine. Any ideas what is going on?

Environment:
- Eclipse Kepler Service Release 2 (includes EGit)
-  Arduino eclipse extensions   2.2.0.1
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 19, 2014, 05:50 pm

On plain C Projects this works just fine. Any ideas what is going on?

No idea.
I use RTC as version control tool in eclipse and that works fine. I'm sure other people use other version control tools without problems. As the plugin itself  is not version control tool aware I think you have some problem in your workspace which may or may not be related to the plugin.
Check your error log to see whether anything pops up there and/or try with a new work-space.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: ENSTAR on Mar 24, 2014, 06:42 pm
Hello, thank you very much for your plugin which I am curently using.
Is there any way to setup a dev environment for libraries ? Or to set another project as a library to the current project ?

Thank you very much for your work.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 24, 2014, 06:58 pm

Hello, thank you very much for your plugin which I am curently using.
Is there any way to setup a dev environment for libraries ? Or to set another project as a library to the current project ?

Thank you very much for your work.

That is why you can specify your private library path.
I have a project called libraries which is referenced in private libraries path. This way I can have my libraries in version control as well.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: naggelaar on Apr 01, 2014, 03:20 pm
***nevermind this question, "problem" solved! ***
***still  buying you the beer though :-) ***

Hello Jantje,
firts of all, thanks for bulding this plugin, and all the time and effort you spent helping people out, waanzinnig man!. As soon as i have everything up and running i buy you a beer (or 2  ) !  ...it's a promise  XD

As a smalle reference/introduction: I am just starting with arduino, but i am a reasonable experienced (oop) developer, although not in C++ (yet). So after playing around with the ArduinoIDE for a while i soon thought i wouldn't mind a decent development environment.
I am currently running the eclipseArduino IDE v2.2 with arduinoIDE 1.5.6r2 . Started with 64bit kepler and plugin, got a lot of noob issues, did a lot of searching and reading, changed to your 32bit intergrated version, some more noob issues, but by now, except for the everlasting "make: *** No rule to make target `clean" error (can it be solved?), i can upload the sketches to my Uno and Mega.
One real problem remains: the serial monitor doesn't work as it should.
Couldn't find an answer/solution anywhere , am i missing something very basic here or....?
using this code:

Code: [Select]
#include "tester.h"
#include "Arduino.h"

int ledPin = 13;
void setup()
{
pinMode(ledPin, OUTPUT);
Serial.begin(9600);
}

void loop()
{
digitalWrite(ledPin, HIGH);
delay(1000);
digitalWrite(ledPin, LOW);
delay(1000);
Serial.println("test");
}


results in:
"[]àààà[][]àààà[][]àààà[][]àààà[][]àààà[][]àààà[][]àààà[][]àààà[][]àààà[][]àààà[][]àààà[][]àààà[]",
which makes debugging quit hard  :) ...sometimes i have to close the serial monitor or restart to be able to upload changes in the sketch.
Anyone who got this as well?
O , 1 more thing,: in your video you made changes in the Indexer, but that option is different in this version. I could not find it, so couldn't test if it would help. Is it hidden somewhere else?
Thanks!
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 01, 2014, 03:52 pm
naggelaar
Thanks for the nice words.
The serial monitor problem is probably a baud rate issue. Which baud rate do you use in the monitor?
V2.2 no longer needs the indexer changes. It should work fine out of the box (after the first compilation).

The nothing to clean error is actually not really a bug/error. The compilation starts with a clean due to configuration changes but nothing has been build so the makefile does not yet exist.
You should only get this message when there is no makefile when starting a build.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: naggelaar on Apr 01, 2014, 04:04 pm
...that's a quick reply! :-)  I was just editing my post , it was indeed the baudrate, completely overlooked that one  :smiley-red:
Thanks!
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: big_red_frog on Apr 16, 2014, 04:30 am
First huge thanks for this solution and the support you have provided.

I have successfully installed the full package version and had been happily building and deploying code based around adafruit neopixel libs for 2812.

However, I hit a problem as I have described at

http://forums.adafruit.com/viewtopic.php?f=47&t=52705

Basically when I add in the adafruit neomatrix libs my project no longer seems to boot, simple single led debug in the setup function is not seen to run. All other main loop code has been removed for this investigation.

As the same code seems fine in arduino IDE I must be missing something that is messing with my boot up.

Happy to provide any artifacts that may help, but any ideas where I should be looking?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 16, 2014, 01:13 pm
big_red_frog
I have read your adafruit post but I do not have any of the hardware so there is little I can do to progress than give you a way to find out what the problem is.
So here we go:
verify the sketch in arduino ide with verbose compilation on (file preferences)

verify the sketch in eclipse

compare the outcome of the console in the arduino ide and eclipse. Apart from the know differences -as partly described here http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.html#errorLog (http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.html#errorLog)- there is a difference that is causing your problem.

I consider it less likely but the upload may cause the problem as well.
The same way as described above can be used for upload verification.

If you found that root cause difference we can think of a solution.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: big_red_frog on Apr 17, 2014, 04:41 am
Greatly appreciate the response.

I am going to dig through the artifacts in general tonight, and then reproduce on my main machine tomorrow.

Meanwhile, it is worth noting, you dont need to have any hardware beyond maybe an arduino nano, ( I also have an uno I can try )

As even when I gut the functional code, so there is no establishment of the matrix code, and nothing driving the neopixels, it just doesn't boot, I am just using separate discrete LEDs to check for basic setup running, with a 1 second on/off/on/off.

Anyway, its always healthy to dig through when things aren't working, so I can learn something  :)

Is there an easy way to get a verbose map and symbol output from the build? I want to check the size of the various components as I binary chop the inclusion of the neomatrix lib ( I will also try adding the underlying code as direct source files to see if it is a lib effect )
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: big_red_frog on Apr 17, 2014, 05:23 am
Ill keep rambling here as I make any progress, If I am dirtying the intent of this forum thread, just highlight and i can post as you see fit.

On a separate machine and another Nano board, I can reproduce the boot failing when adding in the NeoMatrix Lib, without actually calling any of its functionality.

In this case I actually copy the source files directly into the project to avoid any Lib management implications.

Further, by excluding the files again, I can make the build boot once more, so I have something I can chop on this machine.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: big_red_frog on Apr 17, 2014, 05:42 am
Ok, take me up the woods, and put me out of my misery!

There is a subfolder in the NeoMatrix lib directory called extras that contains a file called gamma.c

As there is a legitimate gamma.h in the lib build, I hadn't questioned the gamma.c file.

However, chopping through excluding each file, I isolated, that gamma,c could be excluded, and everything was fine.

Looking in the file, it is obvious there is a main() function in there!

The file clearly states

// THIS IS NOT ARDUINO CODE -- DON'T INCLUDE IN YOUR SKETCH.  It's a
// command-line tool that outputs a gamma correction table to stdout;
// redirect or copy and paste the results into header file for the
// NeoMatrix library code.

So its a support tool

The Arduino IDE seems to ignore this file, however, importing the same lib into Arduino Eclipse IDE tries to roll it in, and the wrong main is run, surprised the build doesn't fail with two "main" functions though.

Anyway, you may want to look into this as an improvement to lib import to prevent this from occurring, if it can be legitimately excluded, I am not familiar with the expectation for libs...

I am smiling right now  :)



Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 17, 2014, 11:35 am
great that you found it.
Do you have a pointer to the lib so I can look at why gamma.c is included in eclipse and not in Arduino.ide?
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: big_red_frog on Apr 17, 2014, 02:13 pm
Context and libs are here

https://learn.adafruit.com/adafruit-neopixel-uberguide/neomatrix-library
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 17, 2014, 03:46 pm
Apparently arduino ide does not only skip the examples folder but also the extras folder.
Seems logic.
Can you create a issue in github? https://github.com/jantje/arduino-eclipse-plugin/issues?direction=desc&sort=updated&state=open (https://github.com/jantje/arduino-eclipse-plugin/issues?direction=desc&sort=updated&state=open)
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: big_red_frog on Apr 17, 2014, 06:01 pm
Will do!
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: big_red_frog on Apr 17, 2014, 06:22 pm
Done

https://github.com/jantje/arduino-eclipse-plugin/issues/138
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 17, 2014, 06:57 pm
txs
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: beingobserver on Jun 06, 2014, 03:21 pm
Hi. Can you please check this issue over Github?

https://github.com/jantje/arduino-eclipse-plugin/issues/151

Thank you.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: beingobserver on Jun 10, 2014, 05:42 pm
Dear Jantje, how can i make a little support (donation) for the project.

I have just started to use your plugin and this will be a starter donation.
If i continue to use your plugin i will make other donations as well.

Thank you for making and sharing this great tool.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 10, 2014, 06:19 pm
Thanks for the nice words.
this is the place to donate.
http://eclipse.baeyens.it/donate.html (http://eclipse.baeyens.it/donate.html)
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: ccko on Jun 30, 2014, 05:27 am
Hello guys,

My environment is win7 64bit, Eclipse Juno, Arduino 1.5.6-r2, arduino plugin 2.2 nightly

I am follow the http://www.baeyens.it/eclipse/installAdvice.shtml
and run the batch command file.
when completed install plugin, new a sketch and run build

the error message as below

please help me to fix the problems. thank you all.

make all
Building file: ../.ino.cpp
Starting C++ compile
"C:/Program Files/Arduino/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-g++" -c -g -Os -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -mcpu=cortex-m3 -DF_CPU=84000000L -DARDUINO=156-r2 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Due"' "-IC:/Program Files/Arduino/hardware/arduino/sam/system/libsam" "-IC:/Program Files/Arduino/hardware/arduino/sam/system/CMSIS/CMSIS/Include/" "-IC:/Program Files/Arduino/hardware/arduino/sam/system/CMSIS/Device/ATMEL/"   -MMD -MP -MF".ino.cpp.d" -MT".ino.cpp.d" -D__IN_ECLIPSE__=1 -x c++ "../.ino.cpp"  -o  ".ino.cpp.o"   -Wall
../.ino.cpp:6: fatal error: Arduino.h: No such file or directory
compilation terminated.
make: *** [.ino.cpp.o] Error 1
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 30, 2014, 11:49 am
http://www.baeyens.it/eclipse/Arduino%20eclipse%20plugin%20FAQ.html#spaces (http://www.baeyens.it/eclipse/Arduino%20eclipse%20plugin%20FAQ.html#spaces)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: ccko on Jul 01, 2014, 12:00 pm
Thanks for your help

I change the arduino installation path.

right now, the error message  as below.


make all
Building file: ../.ino.cpp
Starting C++ compile
"D:/Arduino/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-g++" -c -g -Os -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -mcpu=cortex-m3 -DF_CPU=84000000L -DARDUINO=156-r2 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="Arduino Due"' "-ID:/Arduino/hardware/arduino/sam/system/libsam" "-ID:/Arduino/hardware/arduino/sam/system/CMSIS/CMSIS/Include/" "-ID:/Arduino/hardware/arduino/sam/system/CMSIS/Device/ATMEL/"   -I"D:\Arduino\hardware\arduino\sam\cores\arduino" -I"D:\Arduino\hardware\arduino\sam\variants\arduino_due_x" -MMD -MP -MF".ino.cpp.d" -MT".ino.cpp.d" -D__IN_ECLIPSE__=1 -x c++ "../.ino.cpp"  -o  ".ino.cpp.o"   -Wall
In file included from ../.ino.cpp:15:
../test.ino: In function 'void setup()':
../test.ino:2: error: redefinition of 'void setup()'
../.ino.cpp:7: error: 'void setup()' previously defined here
../test.ino: In function 'void loop()':
../test.ino:8: error: redefinition of 'void loop()'
../.ino.cpp:10: error: 'void loop()' previously defined here
make: *** [.ino.cpp.o] Error 1
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 01, 2014, 12:20 pm
can you share the files test.ino and .ino.cpp?
Do you use the product or the plugin?
Which version did you install ?
Which os are you running?

Best regards
Jantje

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: ccko on Jul 01, 2014, 02:46 pm

can you share the files test.ino and .ino.cpp?
Do you use the product or the plugin?
Which version did you install ?
Which os are you running?

Best regards
Jantje




OS: WIN 7 64bit
case 1: Eclipse Juno sr2 (use nightly plugin)
case 2:  win64.2014-07-01_02-06-34.tar.gz
Adruino 1.5.6-r2

case 1 and case 2 display same error message.

I just create a empty sketch named "test" and not edit it yet.


thank you.


Add project file as attacment
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 01, 2014, 03:35 pm
funny
I just build win64.2014-07-01_02-06-34.tar.gz  because when testing the due build, I noticed there was a error introduced in the due build due to issue34.
But the error was at link time not at compile time (like in your case).

So win64.2014-07-01_02-06-34.tar.gz  should get you to a build due sketch.

Note that you are using the "nightly build" which means you are at the "bleeding edge" or "things have not been tested in depth"
If you want to be sure it works you should take the latest stable. In your case at the time of writing that is http://eclipse.baeyens.it/download/product/V2.2_win64.2014-01-19_15-16-30.tar.gz (http://eclipse.baeyens.it/download/product/V2.2_win64.2014-01-19_15-16-30.tar.gz)
If you are new to the tool please start using the latest stable version.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: ccko on Jul 02, 2014, 11:54 am
Thanks, stable version works fine for me.

when I use Serial.begin(9600)

it display error message as below

error: 'Serial' was not declared in this scope



Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 02, 2014, 12:06 pm
http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.html (http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.html)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: ccko on Jul 02, 2014, 04:49 pm

Thanks, stable version works fine for me.

when I use Serial.begin(9600)

it display error message as below

error: 'Serial' was not declared in this scope






If I don't run the batch file in the last of http://eclipse.baeyens.it/installAdvice.shtml.

Serial.begin(9600) will verify success.

is it necessary to run the batch file?

Thank you.

By the way, when declare
USBHost Usb; ( I add arduino libaraies path at C/C++ General ->Paths and Symbols)

Eclipse will display warning
->undefined reference to `USBHost::USBHost()'

then cause the Serial.print("some text") not work.

It means serial monitor view not print the message.

if mark "USBHost usb;" everything works fine.

Any idea how to resolve this?
Thanks for your help.

Finally, I create a libraries folder in my project and move the UsbHost related *.cpp *.h to this folder.
it works fine.
But I want to know is there any other solution?

thanks

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 02, 2014, 08:00 pm


If I don't run the batch file in the last of http://eclipse.baeyens.it/installAdvice.shtml.


The batch file i only needed with some  libraries. Depending on the arduino IDE version it can be nearly all libraries or none.

I'm sorry but I can't make sense out of the other comments.

Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: ccko on Jul 03, 2014, 05:28 pm
I include Google ADK 2012 library in the project

when verify project. it display following error message.

please give me some advices. thank you.

E:/myProgram/Arduino/hardware/arduino/sam/variants/arduino_due_x/libsam_sam3x8e_gcc_rel.a(uotghs.o): In function `UOTGHS_Handler':
uotghs.c:(.text.UOTGHS_Handler+0x0): multiple definition of `UOTGHS_Handler'
./libraries/ADK2/usbh.c.o:E:\myProgram\eclipseArduino\workspace\test\Release/../libraries/ADK2/usbh.c:684: first defined here

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: goranj on Jul 13, 2014, 05:37 pm
Hi,
I try to install Eclipse IDE for Arduino Due (ARM Cortex ATSAM3X8E uC) on Windows Vista Business, I installed Sketch 1.5.7.
I followed your instructions and installed Indigo Reliease 2.
I am stacked at step 3.6, I cannot unzipp any of the files for Windows 32 bit from this site, I tried 6 different files, and received error message
*.gz file is corrupt, CRC failure for each one.

I located Arduino plugin on 'Eclipse market' but the installation doe not work:
Error message
Cannot complete the install because one or more required items could not be found.
  Software being installed: Arduino eclipse extensions 2.2.0.1 (it.baeyens.arduino.feature.feature.group 2.2.0.1)
  Missing requirement: Arduino eclipse plugin 2.2.0.1 (it.baeyens.arduino.core 2.2.0.1) requires 'package org.eclipse.cdt.core.language.settings.providers 0.0.0' but it could not be found
  Cannot satisfy dependency:
    From: Arduino eclipse extensions 2.2.0.1 (it.baeyens.arduino.feature.feature.group 2.2.0.1)
    To: it.baeyens.arduino.core [2.2.0.1]

Any idea? Thanks very much for your help.
Regards
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 13, 2014, 11:38 pm

Any idea? Thanks very much for your help.
Regards


Install the "Eclipse IDE for C/C++ Developers" version and try again with the marketplace.

Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: amx1 on Aug 04, 2014, 05:18 pm
I switched to Arduino 1.5.7 and encounter now a strange problem.

My configuration is:

OS: Ubuntu 14.04.1 32bit on VMware
Version: Luna Release (4.4.0)
Build id: 20140612-0600
latest eclipse plugin from git
Arduino Version 1.5.7

Everthing runs very nice on ArduinoMega2560 and Arduino Due. (thank you very much Jantje, the plugin is really awesome)

With the new version 1.5.7 the automatic dependency generation fails. If I modify a .cpp file everything will be recompiled and built, but if I change a header file (.h) only, it is not recognized. The systems things that nothing has to be done. I checked it within the some environment - but switching back to 1.5.6-r2 - and there works. So the dependency information must be missing somehow.

Comparing the output of the first compiler step shows that the generated "xxxx.d" files are different. With Version 1.5.6. (avr-gcc 4.3.2) the first line of the corresponding "xxx.d" file defines the dependency for "xxx.d" AND "xxx.o"  . But with the new Version 1.5.7 (avr-gcc 4.8.1)  this line contains only the "xxx.d" filename. That means that there is no definition of the dependency of the "xxxx.o" files with the new version.  I checked this manually by just typing the same commands a terminal. The output of 4.3.2. is different to 4.8.1 with identical parameters and flags!

I think the problem could be solved by editing the compiler options. The parameter of the -MT Flag should be changed from "xxxx.d" to "xxxx.o". The missing dependency of the "xxxx.d" file is not critical because it is generated automatically everytime.

I searched the source code, but did not find the corresponding code segment or parameter file to change.

Best

Axel



Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: amx1 on Aug 04, 2014, 05:52 pm
I solved it - google helped.

see: http://stackoverflow.com/questions/14845428/auto-dependencies-not-working-with-eclipse-cdt-c-project

for eclipse luna you have to add the settings in:

properties / c/c++ build / environment / A.COMPILER.C.EXTRA_FLAGS the string: -MT"$@"

and

properties / c/c++ build / environment / A.COMPILER.CPP.EXTRA_FLAGS the string: -MT"$@"

Now it works.

Best

Axel
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 04, 2014, 10:48 pm
thanks for the search.
I had this problem but I assumed my workspace was getting corrupted.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: amx1 on Aug 05, 2014, 12:04 am
Hi Jantje,

I have two further questions:

1) Is it possible to add these options to the default settings when generating new projects? Otherwise you have to edit the parameters each time individually.

2) Up to now I used the version from the marketplace. New projects are generated as cpp / h instead of ino files. I dont like the ino stuff very much. With larger projects it is really hard to work with. Is it possible to switch to the cpp / h generation?

Best

Axel
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 05, 2014, 12:42 pm
Axel
1)  I created a github issue https://github.com/jantje/arduino-eclipse-plugin/issues/186 (https://github.com/jantje/arduino-eclipse-plugin/issues/186)
It contains a work around that will survive changes to the project but need to be done for each new project.
2) I'm not sure I understand you. V2.2 (from the market place) does not support ino files. As you don't like .ino that should be ok, isn't it?

Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: amx1 on Aug 05, 2014, 04:38 pm
Jantje,

thank you!

With respect to point 2) Yes I am fine with the marketplace version. I will continue to use that. I was just wondering if this is a different version/branch and you will focus on the ino version in the future. But to be shure , I am not against ino and especially the Arduino IDE. Maybe I am an old fashion developer used to .cpp and .h structures ;-)

Best

Axel

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 05, 2014, 05:12 pm
ino support is a add on.
You can read my opinion on ino files here: http://blog.baeyens.it/#post13 (http://blog.baeyens.it/#post13)
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Aelindgard on Aug 08, 2014, 05:47 am
Apologies to all,

I believe that this had been solved somewhere but for some reason my searches doesn't show up anything. I seem to be still having the multiple definitions problem. I installed the latest version via git/maven on ubuntu 32bit and using Arduino 1.5.7.

Using the menu in the IDE to import the a library in this case the LiquidCrystal library adds the folders etc to the project. Once I try to verify/compile the compiler complains of the LiquidCrystal.h etc having been defined in the files in the libraries folder in the Arduino IDE folder.

The LiquidCrystal.h file does contain include guards.

Did I missed something while installing or setting the Eclipse Arduino IDE?

Thank you.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 08, 2014, 08:59 pm
can you provide a screenshot and the console output?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: wonglokat on Aug 16, 2014, 02:11 pm
Hi,

I'm trying to get the Eclipse plugin to work, but somehow I get an error when I build my code.
I'm using the Eclipse Arduino Package V2.3_win32.2014-07-12_02-06-35 from the Bayens page and the Arduino IDE 1.5.7. Since I'm using Windows 7 64Bit, I also use MinGW for the compiler.
Every time I try to build, I get this error:

14:04:02 **** Incremental Build of configuration Release for project test ****
make all
'Building file: ../.ino.cpp'
'Starting C++ compile'
"H:/arduino/arduino/hardware/tools/avr/bin/avr-g++" -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=157 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR     -I"H:\arduino\arduino\hardware\arduino\avr\cores\arduino" -I"H:\arduino\arduino\hardware\arduino\avr\variants\mega" -MMD -MP -MF".ino.cpp.d" -MT".ino.cpp.d" -D__IN_ECLIPSE__=1 -x c++ "../.ino.cpp"  -o  ".ino.cpp.o"   -Wall
subdir.mk:18: recipe for target '.ino.cpp.o' failed
make: *** [.ino.cpp.o] Error -1073741515


Other than setting the Arduino IDE path in Eclipse, I did not do anything.
The file I'm trying to compile looks like this:

#include <test.h>
void setup(){
}
void loop() {
}


Eclipse also shows 2 errors in my project:
- make: *** [test.cpp.o] Error -1073741515
- recipe for target 'test.cpp.o'failed
The second error points to the file ./Release/subdir.mk


Am I missing some imports or something like that? I really appreciate your support!

Best regards
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 16, 2014, 02:35 pm
@wonglokat
This is probably related to the fact arduino no longer delivers make with Arduino IDE 1.5.7
Did you install a make?
Can you try with Aduino IDE 1.5.7?
Best regards
Jante
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: wonglokat on Aug 16, 2014, 03:07 pm
Hello Jantje,

thanks for your quick reply. I installed make from MinGW and Eclipse does find it, when I remove make I get a different error.
With the Arduino IDE, I can compile fine.
What do you mean by "Can you try with Aduino IDE 1.5.7"?

Best regards

//Edit: I switched to Arduino IDE 1.5.6-r2 and with that everything seems to work fine so far. Thanks for this great plugin!
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 16, 2014, 04:25 pm
oeps that had to be duino IDE 1.5.6 as that one comes with the makefile.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: ankur6ue on Aug 29, 2014, 04:24 pm
Which AVR compiler (avr-g++, avg-gcc) does this plug-in use? The one in the WinAVR directory:

On my computer:
C:\WinAVR-20100110\bin

or the one that comes with the Arduino installation?
C:\Arduino\hardware\tools\avr\bin

It should use the one that comes with ARduino otherwise the binaries generated are different and more importantly, work differently. I verified this by spending a lot of time trying to debug the MPU6050 calibration program that was being compiled using the WINAVR compiler and was behaving erratically. The same code worked fine when compiled with the Arduino compiler.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 29, 2014, 06:12 pm
The plugin uses arduino provided stuff.
However if you have in your path programs with the same name those may be preferred.
In most cases the FQN is used but it may be there are cases that do not use FQN in which case program with teh same name in the path may take precedence.
You can always look at the console output to verify.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Dagger2 on Oct 09, 2014, 07:06 pm
Quote
This software sends non personalised activity data (build/upload/open serial monitor/open scope) to baeyens.it for statistical analyses of the usage of the plugin.


Where's the code that implements this? I wanted to take a look at it, but I'm not having much luck finding it.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: AndyTF on Oct 18, 2014, 12:24 am
Hi Jantje,

First off, I can't believe your the only person in the world who is providing software to be able to program the Duet/Due!
I found you whilst trying to follow instructions on the Duet forum about uploading configs to the board, needing to install eclipse, your plugin, etc.. so thankfully you exist and this software helps forward cutting edge hardware and software, well done!

I use MacOSX 10.9.5, downloaded Arduino IDE 1.5.8, Eclipse C/C++ Luna 4.4.1 (then finally realized I need Java SDK, not JRE, 7+!), and then from eclipse downloaded and installed the latest stable version of the arduino eclipse plugin V2 (2.2.0.1),... however when I tried to fill in the Arduino paths, the button was always greyed out and an error message came up saying it wasn't right (see attached screen captures)...  I tried installing a few different versions of Eclipse, and Java, and finally tried the nightly build of the plugin, 2.4.0.xxx, and it is finally working!

I'm not really a programmer, I know enough to find my way around the principal tabs of Marlin Fw for Arduino, to set up my 3D printers, so Duet is quite new for me (although I have a Smoothieboard too, very easy, and fast!), and the config files are so far a bit limited, I am needing to adjust varios settings in the FW Platform.h, but so far there is no easy way to upload those changes, so here I am!

Anyway, this is more of a FYI, especially seeing as the latest build does not show the issue, but I'll be making up a short Mac install post for ReprapPro (who made the Duet), so others can do it and hopefully not get stumped by this small issue as I was for a day or so!

Great work; Wish I could really take more advantage of it (although I do have a big interest in learning robotics and programming them will need something like this I'm sure!), and if you have a bitcoin address I'd love to send you the amount for an Arduino ;-)

Cheers!
Andy
:-)

PD If you prefer you could send me the address via PM, but I'd even go so far to say that maybe it would be a good idea for you to add it to your signature in your posts: if there are many others who realize that it if it wasn't for you, they wouldn't be able to connect to Arduino so easily from Eclipse, they might like to show you their appreciation that way too!
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Oct 20, 2014, 11:18 pm
Andy
Thanks for the nice words. Indeed it seems Duet is only compilable with the Arduino eclipse plugin. I made this plugin because I feel there is a need for more professional source code development tools with arduino that give flexibility that can not offered by the arduino IDE due to its target audience. I read up a bit on the install instructions and they proved my point.

The path issue in mac has been solved lately. It is due to a change in pathnames made by Arduino (in 1.5.7). The hard thing to fix for me was that now I needed 2 possible locations for a given platform. But it works now :-) More detailed info can be found here https://github.com/jantje/arduino-eclipse-plugin/issues/195

As to the mac install. I posted a comment on the blog and it got picked up in less than a hour :-) http://blog.think3dprint3d.com/2014/03/Setting-up-Eclipse-for-Arduino-Due-and-Duet.html

As to bitcoin. No, I do not have a bitcoin account nor do I plan to take one. I do have a paypal account and a donations page. http://www.eclipse.baeyens.it/donate.html

Enjoy your printing
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Headroom on Oct 26, 2014, 01:50 pm
I do have a paypal account and a donations page. http://www.eclipse.baeyens.it/donate.html


Jantje
I'd like to add to that I f you regularly work with the Arduino Eclipse IDE/plugin please donate. I wrote installation instructions and posted them on my blog http://trippylighting.com/teensy-arduino-ect/arduino-eclipse-plugin/arduino-eclipse-ide-and-plugin-v2-2-installation/ (http://trippylighting.com/teensy-arduino-ect/arduino-eclipse-plugin/arduino-eclipse-ide-and-plugin-v2-2-installation/) about a year ago and
based on post hits I'd assume there are hundreds of users by now that regularly use this plugin. Based on another conversation that I had with Jantje a while ago my estimate would be that 90% percent of users do not donate at all.
That indicates that there are a lot of people that gladly take from the open source community but are not willing to provide anything. If you have a paypal account, please use it ;-)
While open source is usually free for the user it never is free for the developer!!!
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: SK-Arduino on Nov 02, 2014, 11:20 pm
Hi,
i just downloaded the win64.2014-10-30_02-06-03 release. Unfortunately stuff like OUTPUT, pinMode(), etc. doesn't get recognized by Eclipse so it looks like the following:
(http://s8.postimg.org/4a0jc7uud/2014_11_02_23_08_48_Arduino_test_Blink_ino_E.png)
Rebuilding the Index doesn't help either. Building/Compiling works fine without any errors though. I'm using Java 1.8.0_20 and Win 7.

Thanks for your help,

Stefan
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: delateurj on Nov 09, 2014, 06:31 pm
Hi,

Is there a way to disable the verification step? I unchecked that option in the Arduino IDE that the plug in is pointing to but that did not seem to have any effect.

Thanks,
Joe.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rlogiacco on Nov 09, 2014, 07:57 pm
What verification step are you referring to? I usually build my sketch and then upload to the board... if you want to execute the two with one click only then I believe Jantje and his team would be happy to increase the priority of such feature if you would express your interest into the plugin with a little donation... :-)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: delateurj on Nov 09, 2014, 08:23 pm
Hi,

Thanks for the clarifying question.  I am referring to the verification step in the upload process where the code is read after writing and verified.  Happy to donate more to bump on a list of feature requests.

Regards,
Joe.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rlogiacco on Nov 10, 2014, 10:19 am
Ahh, I got you! Well, I know that almost doubles the upload time, I didn't ever thought about disabling it, but I guess it might speed up the process sensibly with big firmwares
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 18, 2014, 09:03 pm
Seems I'm no longer informed messages get added here  :o
@delateurj
As far as I understand your question: the behaviour you ask for is the only supported behaviour in the plugin right now.
The build before upload feature (which is the default arduino behaviour) is on the todo list.

@SK-Arduino
You have not specified your arduino IDE version. Assuming it is >1.5.6: This is indeed the behaviour on windows due to a change in the arduino delivered toolchain. See this issue https://github.com/arduino/Arduino/issues/2422 (https://github.com/arduino/Arduino/issues/2422)


@Headroom
Thanks, and well said

Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: jaruj9 on Dec 09, 2014, 10:06 am
Hello Guys, I am one of the satisfied user of this eclipse plugin. I am really happy you made it!

Well not completely satisfied, when I do not count, that on widows I am not able to build projects with v2.2 and arduino >1.5.6 what i read, that on windows there are still some bugs.
What bothers me more is, that on Linux mint 17 kernel:3.13.0-24-generic I can compile my project with 1.5.8 IDE but I can not upload it to arduino UNO or DUE. Error which I get is:

"No device on /dev/ttyACM0"

I chosen right tools/board and  tools/port I marked exactly this port but still does not work.

I would really like if you will give me some advice how to resolve it. I goggled a lot and I found some Solutions but non of those worked. Please some working fix!

Thank YOU!!!
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Dec 09, 2014, 11:48 am
Hi jaruj9
I'm using redhat enterprise edition as OS which is also a Linux.
There used to be a problem in linux http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.html#LinuxNoSerialPorts (http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.html#LinuxNoSerialPorts) but that was fixed a long time ago.
The DUE is a bit of a problem as I never got it to work on my system (not even with the Arduino IDE; the port is never recognized) but the uno works fine here and I know it works fine on any other linux systems.

As you may know we moved away from rxtx to someting new which is only in the nightly build for now.
Can you upgrade to the nightly and see wether that works?
Here is a link on how to upgrade http://eclipse.baeyens.it/rlogiacco/how_to.shtml (http://eclipse.baeyens.it/rlogiacco/how_to.shtml)

Please let us know how it worked.
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rockwallaby on Dec 09, 2014, 02:35 pm
jaruj9, with your error;
Quote
"No device on /dev/ttyACM0"
can you go into your command line, say in terminal and list your devices by typing;
Code: [Select]
ls /dev
to check if ttyACM0 does in fact exist?

If the operating system doesn't list the port, then it will fail to upload.

Unplug the cable to the Arduino, wait 5 seconds, plug it back in and do that command again and see if you can see it or any other new tty port since you pluged it back in.

Yes, this plugin by Jantje is wonderful, I wouldn't use Arduino's now if I wasn't able to use the Eclipse IDE.
____
Paul
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: jaruj9 on Dec 09, 2014, 05:16 pm
Thank you for all of your responses!! I am really happy for it.

@jatje I will have to stay on linux mint becuase I habe there already lot of stuff installed which are payed and I need exactly this one for my university.  I still did not have time to try my uno. But Teensy with hacket ide 1.5.8 works great I can update and upload my projects to teensy 3.1. But with due is not possible. I updated eclipse ide to 2.4 what I guess is the latest possible.

I reallysed that i can not upload project to due even in arduino ide as you said. SO probably there will be general problem in linux + due or?

@rockwallaby
Yes it it is seeable also in lsusb, maybe it can be someting with rules as teensy has that necessary?

Thank you so much guys for help!
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: jaruj9 on Dec 10, 2014, 12:20 am
UPDATE: after changing bound rate before uploading file on comport /dev/ttyACM0 to 1200 (automatically is 115200) I managed upload my project to arduino due but just ONCE what is kind of bad and good. Do you have some more ides?

Do you think it can be something with due hardware? Like here describes http://forum.arduino.cc/index.php?topic=167492.0 .

I am sure somebody already have done it. Nobody had similar problem?

I tried this tutorial here but on the part setting udev(for due) and setting permissions I have troubles. I do not understand it really properly + what i did, did not work for me. Maybe do you have some better explanation?
http://playground.arduino.cc/Linux/All

Juraj
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Dec 10, 2014, 01:34 pm
@jaruj9
I don't have a clue what you are talking about.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: jaruj9 on Dec 10, 2014, 02:01 pm
Ok sorry, I explained it wrong, so let me start again.

Actual configuration:  I am running Linux mint 17 with kernel: 3.13.0
I have  arduino IDE 1.5.8, teensyduino 1.20 and eclipseArduino v2.4. I added to arduino IDE 1.5.8 all necessary files to make it work for teensy. following this tutorial:

 http://trippylighting.com/teensy-arduino-ect/arduino-eclipse-plugin/installation-of-the-arduino-eclipse-ide-teensyduino-win-7/
 (http://trippylighting.com/teensy-arduino-ect/arduino-eclipse-plugin/installation-of-the-arduino-eclipse-ide-teensyduino-win-7/)

my actual state with  TEENSY: I am able compile and upload my projects in eclipseArduino to teensy with teensybootloader - works as it should. What does not work, is compile project in arduino IDE. It returns following error:

Arduino: 1.5.8 (Linux), Board: "Teensy 3.1, Serial, 96 MHz (overclock), US English"

Cannot run program "/opt/arduino-1.5.8/hardware/teensy/teensy/tools/linux/arm-none-eabi/bin/arm-none-eabi-g++": error=2, No such file or directory

As this error says it  searches a file /teensy/teensy which,ofc, does not exists! I tried already some combinations where to save /teensy folder, but I never reached  successful compilation. I have to say this error does not bothers me, because I will never use Arduino IDE for developing. I will always use eclipseArduino which works correctly. I am giving you just information that it does not work.

my actual state with  ARDUINO DUE:

I can not upload project to arduino due(eclipseArduino arduino IDE), it writes error:
No device found on ttyACM0

I followed this tutorial: http://forum.arduino.cc/index.php?topic=148613.0 (http://forum.arduino.cc/index.php?topic=148613.0)
where they explain that before uploading to arduino due you have to set bound-rate to 1200 with following command:
stty -F /dev/ttyACM0 speed 1200 cs8 -cstopb -parenb

After using this command, I am able to upload ONCE my project but after,even I run again this command in terminal, I get always error No device found on ttyACM0

after executing commang ls /dev/tty* in terminal, I see that Linux see arduino due on port /dev/ttyACM0. Even lsusb sees my DUE:
Bus 003 Device 011: ID 2341:003d Arduino SA

I tryed to follows this tutorial :
http://playground.arduino.cc/Linux/All
 (http://playground.arduino.cc/Linux/All)
I did not move with this error. I am not sure if I sated permissions correctly.


I hope after this explanation you will have more Ideas where is the problem on DUE + linux

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Dec 10, 2014, 02:24 pm
This makes more sense to me. Thanks for that.
I think you have 2 problems:
Problem 1: Teensy not working in Arduino IDE.
No one ever said that should or could work, it simply doesn't, it never has.

Problem 2:Due not uploading.
If I understood correctly it doesn't upload in the Arduino IDE and it doesn't upload in arduino eclipse plugin.
As it does not work in the Arduino IDE it won't work in the Arduino eclipse plugin.
The plugin doesn't work on my system (http://eclipse.baeyens.it/Arduino%20eclipse%20plugin%20FAQ.html#doesntwork)
So basically you're posting in the wrong location for this problem.

I'm sorry I can't help you out here.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Headroom on Jan 13, 2015, 11:29 pm
Ok sorry, I explained it wrong, so let me start again.

Actual configuration:  I am running Linux mint 17 with kernel: 3.13.0
I have  arduino IDE 1.5.8, teensyduino 1.20 and eclipseArduino v2.4. I added to arduino IDE 1.5.8 all necessary files to make it work for teensy. following this tutorial:

 http://trippylighting.com/teensy-arduino-ect/arduino-eclipse-plugin/installation-of-the-arduino-eclipse-ide-teensyduino-win-7/
 (http://trippylighting.com/teensy-arduino-ect/arduino-eclipse-plugin/installation-of-the-arduino-eclipse-ide-teensyduino-win-7/)

my actual state with  TEENSY: I am able compile and upload my projects in eclipseArduino to teensy with teensybootloader - works as it should. What does not work, is compile project in arduino IDE. It returns following error:

Arduino: 1.5.8 (Linux), Board: "Teensy 3.1, Serial, 96 MHz (overclock), US English"

Cannot run program "/opt/arduino-1.5.8/hardware/teensy/teensy/tools/linux/arm-none-eabi/bin/arm-none-eabi-g++": error=2, No such file or directory

As this error says it  searches a file /teensy/teensy which,ofc, does not exists! I tried already some combinations where to save /teensy folder, but I never reached  successful compilation. I have to say this error does not bothers me, because I will never use Arduino IDE for developing. I will always use eclipseArduino which works correctly. I am giving you just information that it does not work.

my actual state with  ARDUINO DUE:

I can not upload project to arduino due(eclipseArduino arduino IDE), it writes error:
No device found on ttyACM0

I followed this tutorial: http://forum.arduino.cc/index.php?topic=148613.0 (http://forum.arduino.cc/index.php?topic=148613.0)
where they explain that before uploading to arduino due you have to set bound-rate to 1200 with following command:
stty -F /dev/ttyACM0 speed 1200 cs8 -cstopb -parenb

After using this command, I am able to upload ONCE my project but after,even I run again this command in terminal, I get always error No device found on ttyACM0

after executing commang ls /dev/tty* in terminal, I see that Linux see arduino due on port /dev/ttyACM0. Even lsusb sees my DUE:
Bus 003 Device 011: ID 2341:003d Arduino SA

I tryed to follows this tutorial :
http://playground.arduino.cc/Linux/All
 (http://playground.arduino.cc/Linux/All)
I did not move with this error. I am not sure if I sated permissions correctly.


I hope after this explanation you will have more Ideas where is the problem on DUE + linux


Teensy/Teensyduino are not compatible with Arduino 1.5.8. You cannot even install  Teensyduino into Arduino 1.5.8 as it will not allow you to do it. If you want to use the Arduino IDE with Teensy, you need to install Teensyduino into Arduino IDE 1.0.6.
The Arduino 1.5.8 IDE is required for you to use Teensy with the Arduino Eclipse Plugin/IDE.

Also, the instructions you are referring to on my blog explain that the hardware folder can reside anywhere and does not have to be copied into the Arduino 1.5.x IDE. I personally actually avoid doing that so i don't have to redo all that when I want to test out a newer version of the Arduino 1.5.x IDE.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Headroom on Jan 13, 2015, 11:39 pm
I am working with the Arduino Eclipse 2.4 IDE. When I create a new project it automatically creates .ino files.

How do I turn this off in cases where I prefer to work with .cpp/.h files ?

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jan 14, 2015, 01:44 am
@headroom
In the sketch creation wizard after the page where you have selected the board you can select your "template" (cpp ino custom template or example sketch). There you can also select "use selection as default".

Note that when you have selected a example setting the default will not save the example sketches you have selected. Only that you want to start from an example.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Headroom on Jan 14, 2015, 11:43 pm
Aahh...cool. I've never seen that dialog as one step before you can already click "finish". Tanks for the tip!
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rohmer on Jan 30, 2015, 08:02 pm
Hello,

First of all very cool project! :-)

I have 2 questions:
1. The first pertains to the makefile created.  My project doesnt build correctly either from the command line or the IDE.  Looking at the makefile there are a couple of oddities:

  A) -include ../makefile.init <-- Doesnt exist
  B) I dont see an "all" target in the makefile

2. Second question, what is the way to create a library output from the build?

Thanks!
Ron
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jan 30, 2015, 08:33 pm
Hi Ron

The plugin does not make the makefile. It provides the "correct" info to CDT so it can make the makefile.
So I can't help you with yout first question.

I do not understand the second question.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rohmer on Jan 31, 2015, 01:08 am
Ok, this is really strange.

I ran make with logging on and got the following (Def not all of it its > 1m):

Reading makefile `makefile'...
Reading makefile `../makefile.init' (search path) (don't care) (no ~ expansion)...
Reading makefile `sources.mk' (search path) (don't care) (no ~ expansion)...
Reading makefile `subdir.mk' (search path) (don't care) (no ~ expansion)...
Reading makefile `arduino/core/avr-libc/subdir.mk' (search path) (don't care) (no ~ expansion)...
Reading makefile `arduino/core/subdir.mk' (search path) (don't care) (no ~ expansion)...
Reading makefile `Logger/Time/subdir.mk' (search path) (don't care) (no ~ expansion)...
Reading makefile `Logger/Appenders/subdir.mk' (search path) (don't care) (no ~ expansion)...
Reading makefile `Logger/subdir.mk' (search path) (don't care) (no ~ expansion)...
Reading makefile `Libraries/SPI/subdir.mk' (search path) (don't care) (no ~ expansion)...

So, its getting those subdirectories.

BUT..

Considering target file `Logger/Logger.cpp.d'.
  File `Logger/Logger.cpp.d' does not exist.
  Looking for an implicit rule for `Logger/Logger.cpp.d'.
  Trying pattern rule with stem `Logger.cpp.d'.
  Trying implicit prerequisite `Logger/Logger.cpp.d.o'.
  Trying pattern rule with stem `Logger.cpp.d'.
  Trying implicit prerequisite `Logger/Logger.cpp.d.c'.
  Trying pattern rule with stem `Logger.cpp.d'.
  Trying implicit prerequisite `Logger/Logger.cpp.d.cc'.
  Trying pattern rule with stem `Logger.cpp.d'.
  Trying implicit prerequisite `Logger/Logger.cpp.d.cpp'.
  Trying pattern rule with stem `Logger.cpp.d'.
  Trying implicit prerequisite `Logger/Logger.cpp.d.p'.
  Trying pattern rule with stem `Logger.cpp.d'.
  Trying implicit prerequisite `Logger/Logger.cpp.d.f'.
  Trying pattern rule with stem `Logger.cpp.d'.
  Trying implicit prerequisite `Logger/Logger.cpp.d.r'.
  Trying pattern rule with stem `Logger.cpp.d'.
  Trying implicit prerequisite `Logger/Logger.cpp.d.s'.
  Trying pattern rule with stem `Logger.cpp.d'.
  Trying implicit prerequisite `Logger/Logger.cpp.d.mod'.
  Trying pattern rule with stem `Logger.cpp.d'.
  Trying implicit prerequisite `Logger/Logger.cpp.d.sh'.
  Trying pattern rule with stem `Logger.cpp.d'.
  Trying implicit prerequisite `Logger/Logger.cpp.d,v'.

I havent a clue where that .d at the end is coming from, that seems to be what is causing it to not build.  Any ideas?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rohmer on Jan 31, 2015, 01:11 am
Said .d is the dependcies, which arent getting created :-(
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rohmer on Jan 31, 2015, 02:37 am
Ok, after messing about for quite a while I figured it out.  The errors were not propagating to the console, I got it to work.

Unfortunately with this current methodology I have to run my builds from the command line.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jan 31, 2015, 11:32 am
Are you running the nightly?
It looks like
https://github.com/jantje/arduino-eclipse-plugin/issues/186 (https://github.com/jantje/arduino-eclipse-plugin/issues/186)
Adding -MT"$@" to the command line fixes tis if you do not want to upgrade to the nightly.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rohmer on Jan 31, 2015, 07:57 pm
No, not running nightly.

Here is the primary symptom:

The Console:
10:55:08 **** Incremental Build of configuration Release for project QueueManager ****
make -k all
'Building target: QueueManager'
'Printing size:'
"C:/Arduino/ArduinoIDE/hardware/tools/avr/bin/avr-size" -A "C:/Arduino/ArduinoRailroad/QueueManager/Release/QueueManager.elf"
C:/Arduino/ArduinoIDE/hardware/tools/avr/bin/avr-size: 'C:/Arduino/ArduinoRailroad/QueueManager/Release/QueueManager.elf': No such file
make: *** [QueueManager] Error 1
make: Target `all' not remade because of errors.

10:55:08 Build Finished (took 269ms)


Command Line:
C:\Arduino\ArduinoRailroad\QueueManager\Release>make
Building file: ../QueueManager.cpp
Starting C++ compile
"C:/Arduino/ArduinoIDE/hardware/tools/avr/bin/avr-g++" -c -g -Os -fno-exceptions
 -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DA
RDUINO=155-r2 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR    -IC:/Arduino/ArduinoR
ailroad/QueueManager/stlport -I../QueueManager/stlport -I../QueueManager/stlport
/utility -I"C:\Users\rohmer\Arduino\libraries\stlport" -I"C:\Arduino\ArduinoIDE\
hardware\tools\avr\avr\include" -I"C:\Arduino\ArduinoIDE\hardware\arduino\avr\co
res\arduino" -I"C:\Arduino\ArduinoIDE\libraries\SD" -I"C:\Arduino\ArduinoIDE\lib
raries\SD\src" -I"C:\Arduino\ArduinoIDE\hardware\arduino\avr\variants\mega" -MMD
 -MP -MF"QueueManager.cpp.d" -MT"QueueManager.cpp.o" -D__IN_ECLIPSE__=1 -x c++ "
../QueueManager.cpp"  -o  "QueueManager.cpp.o"   -Wall  -MT"QueueManager.cpp.o"
In file included from ../QueueManager.h:12:0,
                 from ../QueueManager.cpp:9:
../Logger/Logger.hpp:12:20: fatal error: Common.h: No such file or directory
compilation terminated.
make: *** [QueueManager.cpp.o] Error 1


While I do have an error in the code, I wouldnt ever see that from the Console because it basically says the same thing regardless

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jan 31, 2015, 10:35 pm
have you tried
make -k all
on the command line?
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rohmer on Jan 31, 2015, 11:19 pm
I get the same thing with make -k all on the command line as I do in the Console window.  It seems the make file isnt building the dependent items before trying to see the size of the elf.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 01, 2015, 11:37 am
Default there is no -k in the compile command.
Code: [Select]
11:31:20 **** Incremental Build of configuration Release for project ewa ****
make all
Building file: ../Brains.cpp


I guess you have changed the build options in project properties->C/C++ build

I advice to create a new project and test http://eclipse.baeyens.it/how_to.shtml#/f (http://eclipse.baeyens.it/how_to.shtml#/f). If this works compare the settings between the 2 projects o fix your original project.

Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rohmer on Feb 01, 2015, 11:43 pm
That seems to have done it.  I am totally not sure how it got fubar, but I recreated the project, reimported the code and now it seems to be working.

One note:  My version of the Arduino Eclipse Extensions:

2.4.0.2201501240112 doesnt look at all like the version in http://eclipse.baeyens.it/how_to.shtml#/f



I dont have the target hardware or avrdude options in the create, but I assume thats normal because you call that out...

Thx for the timely help.  I am very used to Visual Studio, but I havent used eclpise in ages.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 02, 2015, 07:46 pm
Nice to hear it works.
Don't forget to visit http://eclipse.baeyens.it/donate.shtml (http://eclipse.baeyens.it/donate.shtml)
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: ThomasH-W on Feb 06, 2015, 09:15 pm
I recently started with arduino and this awesome plugin.
The help did not mention a way to utilize a programmer like USBtiny.
In eclipse the external tool is allowing to add support for external programmers.

http://www.hoeser-medien.de/2015/02/attiny-programming-using-eclipse-with-usbtiny/ (http://www.hoeser-medien.de/2015/02/attiny-programming-using-eclipse-with-usbtiny/)


If there is a better way to handle this, pleas let me know.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 06, 2015, 11:15 pm
sounds like a good way to do it.
The only improvement I can think of is to use the variable to specify the file to upload instead of the file prompt.
Not sure if it is possible though.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rodwsm on Feb 08, 2015, 05:31 pm
I've just started using the plugin and its very impressive.
I am trying to make a serial connection using the serial monitor via bluetooth to an HC05 (on Win7) but although the COM ports are listed (COM7 and COM8) the plugin complains that COM7 is in use by another program. If I then try to connect via putty it works fine. Any ideas?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 08, 2015, 05:56 pm
@rodwsm
Are you using the nightly? I ask because we changed from rxtx to something else (I keep on foregetting what)
If not, give te nightly a try.
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rodwsm on Feb 09, 2015, 09:01 am
That did it, 2.4.0 works fine. Thanks Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 09, 2015, 10:38 am
great
Do not forget to visit http://www.eclipse.baeyens.it/donate.shtml (http://www.eclipse.baeyens.it/donate.shtml)
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: BertVK on Feb 13, 2015, 09:10 pm
Hi Jan,

I can not get any sketch to compile due to dependency errors. I have read tons of docs, but can't find the cause, nor the solution.

Here's my setup:
- Linux Mint 17
- Arduino 1.5.2
- Arduino Eclipse cloned from Github today (20150213) and built without any problem.

I have configured the plugin so it knows where the Arduino install is. Is does recognise the version properly.

When I create a new sketch regular Arduino commands like pinMode can't be resolved. The Arduino libraries are not recognised.
Needles to say I can not compile the code.

I have checked the project properties and the arduino/core and arduino/variant directories are available in the included paths. I removed them and added them back, but that did not change anything.

Hope you can help.

Bert

P.S. How's Marvin doing?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 13, 2015, 09:31 pm
Hi Bert
As you can read on http://eclipse.baeyens.it/installAdvice.shtml (http://eclipse.baeyens.it/installAdvice.shtml) all os comments.
Quote
Arduino IDE 1.5.2 beta and 1.5.4 beta are not supported due to a change in the library system.
I haven't tried 1.6 yet -released a couple of days ago- but that should be fine and is no longer a Beta.
If that doesn't work give me a call so we can meet and I can see what is wrong.

Marvin is going slowly but ewa has made some progress. i hope to come to timelab in the comming weeks and I'll be at the arduino jam :-)

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: BertVK on Feb 13, 2015, 09:43 pm
I did find the remark about not using 1.5.4 but not the one about 1.5.2. DOH!!

What version do you recommend then? I just tried 1.5.3 but the plugin is saying 1.5.3 and 1.5.4 are not supported. On your site you just mention 1.5.2 and 1.5.4.
I did go over all the pages on your site but all you say is the versions NOT to use. :-/

I did try 1.6.0 and aparently it is working. I have not tried any libraries yet.
One interesting thing I found is that you get the same problem when not defining *.ino and *.pde files ad C++ source code files.

I'll stop by on the Arduino Jam, but participating is not possible. I can't get away from the family for a whole weekend.
See you then.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 13, 2015, 09:57 pm
Can you post the build error?

If the ino file does not have a include you need to help the indexer by including "arduino.h" in the ino file
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: BertVK on Feb 13, 2015, 10:37 pm
I found the problem. The *.ino and *.pde files were not recognised as C++ source files even though I had set them. For some reason the configuration did not get saved. Adding the configuration again solved the problem.

I must say I did a huge face plant when I did read the error in more detail. Yep, it told me exactly the problem above. DOH!

I was misled by the fact the dependencies were not working and I had set the file type already (which was not stored).

Stupid mistake due to a chronic lack of sleep.

I'm using 1.6.0 now and it seems to work fine on Linux Mint 17.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 14, 2015, 04:15 pm
@Bert
I had this sneaky suspicion  8)
Nice to hear all is working now  :smiley-grin:

Best regards
jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Losgar on Feb 14, 2015, 04:31 pm
Hi Jan,

Tanks for your nice Plugin :)


I have sucessfully compieled and uploades a small Sketch.

But now I have a larger Project and get some strange Errors...

I have a Project so send some Data to my Display.
so i have include the "Adafruit_GFX.h" and "Adafruit_TFTLCD.h" Headers.

In "ProjectProperties -> C/C++ Build -> Arduino C/C++ Compiler -> Include Folder" i have set the correct Include Paths.

If i Verify the Project I have tons of Warnings saying "undefined reference to XYZ".
XYZ are the Funktions in the Adafruit_GFX.cpp / Adafruit_TFTLCD.cpp files.
I uploades the Sketch once, but it didn`t work.
Normaly i would check the Linker settings but in the ProjectPropperties there are no Linker settings.

If i copy the Code into the Arduino IDE and Uploade it to my Due it works perfectly. :/


I`m using the Arduino IDE 1.5.5-r2 and the latest Version of your Plugin (from Eclipse Marktplace).

Would be greate if somebody could help me :)

Greetings


Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 14, 2015, 04:53 pm
@losgar
There is no need to mess wih the include paths yourself. See the how to on how to add a library here (at the end) http://eclipse.baeyens.it/how_to.shtml#/f (http://eclipse.baeyens.it/how_to.shtml#/f)
I'll make a different sections for it.
Simply select "arduino->add library to the selected project" and pick your library.
Good luck
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Losgar on Feb 14, 2015, 05:14 pm
@Jantje

Hey thank your for your quick reply!
and by the way it works :smiley-mr-green:


Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: mwahahaha on Feb 19, 2015, 04:03 pm
Hi,

I hope I haven't missed something but I can't figure out how to have the integrated plotter working? Compiling, uploading, serial monitor, everything runs fine except the plotter which doesn't show anything even though it says "Connected to blahblahblah" (I'm running OS X and the listed serial port is the right one).

Is there any documentation stating what kind of inputs the plotter is waiting for? I'm feeding it with integers separated by carriage return.

Additional, is there a public "Todo List" somewhere so that we can know when a feature has been added like the "compile before build" which I'd like to have ^_^ I've uploaded my project without compiling 5 times straight, not understanding why serial port speed didn't change...

Thanks a lot for your work, I'll donate for sure!

EDIT : I found the "todo list" and donated for both the good work and my feature on top of the list ;)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 19, 2015, 04:40 pm
mwahahaha
the donations have arrived :smiley-grin:
Thank you very much

I checked and there is indeed a -undocumented- todo to do some write up on the plotter functionality.
The plotter is based on the protocol used by simplot. So the sketches from simplot work with the plotter of the arduino eclipse plugin.
http://forum.arduino.cc/index.php?topic=58911.0 (http://forum.arduino.cc/index.php?topic=58911.0)
Use the left or right mouse button and dragging to change the vertical scale and the vertical offset of the plotting zone. One button does the scaling one button does the offset. I can't recall using both at the same time.
The horizontal scale is not scalable.

Have fun
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: mwahahaha on Feb 20, 2015, 09:45 am
Thanks I'll have a look at SimPlot then!
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: mwahahaha on Feb 20, 2015, 09:55 am
I have an issue with the Adafruit_BMP085_U library. It works fine when I import it but if I close and reopen Eclipse (after a shutdown for instance), I get an error message saying "Adafruit_BMP085_U.h" can't be found even though the library still appears in the tree !

If I reimport it, it works again for the session but I think it also disappered once in the session itself !
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 20, 2015, 10:37 am
@mwahahaha
I had that issue to. I added some extra logging in the error log to try to identify the root cause but I never even found an entry.
Weirdly enough the problem went away after some time on my system.
the work around is simply to reimport the library; it is annoying but harmless.
you can also enter the folder in the include path manually because that is where it disappears.
if you find any errors in the error log or hints on how to track the issue i'll be happy to fix it.

Best regards
Jantje

PS I have been suspecting it.baeyens.cdt.refactor which fixes a bug in cdt in regards to renaming/removing folders. If the problem is consistent on your system it would be great if you remove this plugin from your system to see wether the problem disappears. You can safely remove it as it only works around a problem with include paths in CDT when renaming folders.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: mwahahaha on Feb 20, 2015, 11:52 am
@mwahahaha
I had that issue to. I added some extra logging in the error log to try to identify the root cause but I never even found an entry.
Weirdly enough the problem went away after some time on my system.
the work around is simply to reimport the library; it is annoying but harmless.
you can also enter the folder in the include path manually because that is where it disappears.
if you find any errors in the error log or hints on how to track the issue i'll be happy to fix it.

Best regards
Jantje

PS I have been suspecting it.baeyens.cdt.refactor which fixes a bug in cdt in regards to renaming/removing folders. If the problem is consistent on your system it would be great if you remove this plugin from your system to see wether the problem disappears. You can safely remove it as it only works around a problem with include paths in CDT when renaming folders.
Thanks I'll try this ! Glad to hear I'm not the only one and it could be fixed by itself one day ^_^
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: DerTomm on Feb 22, 2015, 11:25 am
Hi Jantje,

the installation advises for the Windows version of Eclipse with Arduino IDE >1.5.7 states the following:

Quote
The second problem is not consistent and may or may not hit you. It deals wit the new toolchain delivered by arduino not 100% supporting a feature in windows that is used by the arduino eclipse plugin.
If the issue hit you the indexer will report bugs which do not cause issues during the compile. Even though it can be called "cosmetic" it does seriously reduce the benefit of using eclipse instead of the Arduino IDE.
I just installed the latest nightly build of your Arduino Eclipse together with Arduino 1.6.0 IDE. Now I'm facing exactly this problem. The indexer gives me a lot of "invalid arguments, candidates are..." errors. According to https://github.com/arduino/Arduino/issues/2422 the issue should be solved already - but as it seems it is not.

Do you think this problem could be solved in the future? Meanwhile I will keep using the vanilla Arduino IDE. But I keep my fingers crossed that Eclipse will be working with 1.6.0 eventually... :-)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 22, 2015, 12:46 pm
Arduino 1.6.0 IDE should no longer have this issue.
To confirm you are experiencing issue https://github.com/arduino/Arduino/issues/2422 (https://github.com/arduino/Arduino/issues/2422) you should run this command
Quote
To be concrete when Arduino IDE 1.5.5 is installed in r:/test/ and the following command is run from r:/test/
hardware\tools\avr\bin\avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=158 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -D__IN_ECLIPSE__=1 -E -P -v -dD R:/Test/Eclipse/workspace/.metadata/.plugins/org.eclipse.cdt.managedbuilder.core/spec.C
If you get
Quote
ignoring nonexistent directory "/ArduinoIDE/hardware/too
instead of
Code: [Select]
ignoring nonexistent directory "r:/test/arduinoide/hardware
it is issue 2422
Otherwise you are experiencing something else.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: DerTomm on Feb 22, 2015, 08:36 pm
Okay - then obviously the reference to this issue was a misunderstanding of me.

But the question stays: Can the indexer problem be solved in the future? Even with a completely fresh installation and a minimal "blink" example I get "Invalid arguments 'Candidates are: void pinMode(?, ?)'" errors after the binary is created.

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 22, 2015, 09:34 pm
This is a known limitation with an easy work around. See the faq for more details
http://eclipse.baeyens.it/faq.shtml#/troubleshooting (http://eclipse.baeyens.it/faq.shtml#/troubleshooting)
The entry "Eclipse tells me there are bugs in my code but it compiles ok."
Best regards
jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: mwahahaha on Feb 23, 2015, 11:23 pm
PS I have been suspecting it.baeyens.cdt.refactor which fixes a bug in cdt in regards to renaming/removing folders. If the problem is consistent on your system it would be great if you remove this plugin from your system to see wether the problem disappears. You can safely remove it as it only works around a problem with include paths in CDT when renaming folders.
OK I tried but I still have the issue :(
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 24, 2015, 12:01 am
OK I tried but I still have the issue :(
So we can exclude that one as the bad guy. This is a really hard to trace bug.

I created an issue in github for this one https://github.com/jantje/arduino-eclipse-plugin/issues/227 (https://github.com/jantje/arduino-eclipse-plugin/issues/227)

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: mwahahaha on Feb 24, 2015, 10:53 am
So we can exclude that one as the bad guy. This is a really hard to trace bug.
To try your solution, I just deleted the "it.baeyens.cdt.refactor" file from the ArduinoEclipse folder (on OS X) then emptied the trash. Was there something else to do about it?

Actually it happens every time I switch Eclipse off and on. Have you noticed any other library concerned by the issue?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 24, 2015, 11:08 am
Actually it happens every time I switch Eclipse off and on. Have you noticed any other library concerned by the issue?
I don't think it is related to the library. I had it with different libraries (2 if i recall correctly) and the library Adafruit_BMP085_U is not installed on my system.
It looks as if "something removes an item from the list"
As the problem seems to be persistent on your system ... do you see anything in your error log?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: mwahahaha on Feb 24, 2015, 12:30 pm
This is always "Adafruit_BMP085_U" which gets removed on my system but probably this is the one I added last !

Where can I check the error log on OS X ? I'm a beginner to Mac world...
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 24, 2015, 12:51 pm
I mean the error log of eclipse. You can add the view to your gui from the main menu
window->show view->error log
If you think it is the last one you added maybe it is a good idea to add another one and see wether that works around it?

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Kenjutsu on Mar 10, 2015, 01:16 pm
Good day,

I updated my installation via "Help -> Check for Updates" and after the update and restart, nothing related to Arduino is working anymore.

When I try to compile, I get the error:

Quote
eclipse.buildId=unknown
java.version=1.8.0_31
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -perspective it.baeyens.arduino.application.perspective -keyring /Users/aa/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -perspective it.baeyens.arduino.application.perspective -keyring /Users/aa/.eclipse_keyring -showlocation
When I go to "Preferences -> Arduino", I get:
Quote
An error has occurred. See error log for more details.
it.baeyens.arduino.common.Common.getArduinoIDEPathFromUserSelection(Ljava/lang/String;)Lorg/eclipse/core/runtime/IPath;
java.lang.NoSuchMethodError: it.baeyens.arduino.common.Common.getArduinoIDEPathFromUserSelection(Ljava/lang/String;)Lorg/eclipse/core/runtime/IPath;
:smiley-eek:
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 10, 2015, 03:07 pm
@kenjutsi
I havn't seen anything like this before.
Which version of eclipse are you using?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Kenjutsu on Mar 10, 2015, 05:36 pm
Code: [Select]
  Arduino Eclipse Extensions 2.4.0.201502260218 it.baeyens.arduino.feature.feature.group Jan Baeyens
  C/C++ Autotools support 8.6.0.201502131403 org.eclipse.cdt.autotools.feature.group Eclipse CDT
  C/C++ Common GDB Support 8.6.0.201502131403 org.eclipse.cdt.gdb.feature.group Eclipse CDT
  C/C++ Development Platform 8.6.0.201502131403 org.eclipse.cdt.platform.feature.group Eclipse CDT
  C/C++ Development Tools 8.6.0.201502131403 org.eclipse.cdt.feature.group Eclipse CDT
  C/C++ DSF GDB Debugger Integration 8.6.0.201502131403 org.eclipse.cdt.gnu.dsf.feature.group Eclipse CDT
  C/C++ GCC Cross Compiler Support 8.6.0.201502131403 org.eclipse.cdt.build.crossgcc.feature.group Eclipse CDT
  C/C++ GNU Toolchain Build Support 8.6.0.201502131403 org.eclipse.cdt.gnu.build.feature.group Eclipse CDT
  C/C++ GNU Toolchain Debug Support 8.6.0.201502131403 org.eclipse.cdt.gnu.debug.feature.group Eclipse CDT
  C/C++ Memory View Enhancements 8.6.0.201502131403 org.eclipse.cdt.debug.ui.memory.feature.group Eclipse CDT
  C/C++ Remote Launch (Requires RSE Remote System Explorer) 8.6.0.201502131403 org.eclipse.cdt.launch.remote.feature.group Eclipse CDT
  C/C++ Visual C++ Support 8.6.0.201502131403 org.eclipse.cdt.msw.feature.group Eclipse CDT
  ECF Core Feature 1.1.0.v20141221-2352 org.eclipse.ecf.core.feature.feature.group Eclipse.org - ECF
  ECF Core SSL Feature 1.0.0.v20141221-2352 org.eclipse.ecf.core.ssl.feature.feature.group Eclipse.org - ECF
  ECF Filetransfer Feature 3.9.2.v20141221-2352 org.eclipse.ecf.filetransfer.feature.feature.group Eclipse.org
  ECF Filetransfer SSL Feature 1.0.0.v20141221-2352 org.eclipse.ecf.filetransfer.ssl.feature.feature.group Eclipse.org - ECF
  ECF Httpclient4 Filetransfer Provider 3.9.2.v20141221-2352 org.eclipse.ecf.filetransfer.httpclient4.feature.feature.group Eclipse.org - ECF
  ECF Httpclient4 Filetransfer SSL Provider 1.0.0.v20141221-2352 org.eclipse.ecf.filetransfer.httpclient4.ssl.feature.feature.group Eclipse.org - ECF
  ECF Patch for Eclipse Kepler (4.3).  Not needed for Eclipse Luna (4.4). 3.9.0.v20140818-1747 org.eclipse.ecf.core.featurepatch.feature.group Eclipse.org - ECF
  Eclipse Arduino IDE 2.2.0 it.baeyens.arduino.product null
  Eclipse e4 Rich Client Platform 1.3.101.v20150204-1353 org.eclipse.e4.rcp.feature.group Eclipse.org
  Eclipse Git Team Provider 3.4.2.201412180340-r org.eclipse.egit.feature.group Eclipse EGit
  Eclipse Help System 2.0.103.v20150204-1700 org.eclipse.help.feature.group Eclipse.org
  Eclipse Java Development Tools 3.10.1.v20150204-1700 org.eclipse.jdt.feature.group Eclipse.org
  Eclipse Platform 4.4.2.v20150204-1700 org.eclipse.platform.feature.group Eclipse.org
  Eclipse Platform Launcher Executables 3.6.102.v20150204-1316 org.eclipse.equinox.executable.feature.group null
  Eclipse RCP 4.4.2.v20150204-1700 org.eclipse.rcp.feature.group Eclipse.org
  EMF - Eclipse Modeling Framework Core Runtime 2.10.2.v20150123-0348 org.eclipse.emf.ecore.feature.group Eclipse Modeling Project
  EMF Common 2.10.1.v20150123-0348 org.eclipse.emf.common.feature.group Eclipse Modeling Project
  EPP Common Package Feature 4.4.2.20150219-0708 org.eclipse.epp.package.common.feature.feature.group Eclipse Packaging Project
  Equinox Core Function 1.2.2.v20150203-1939 org.eclipse.equinox.core.feature.feature.group Eclipse Equinox Project
  Equinox p2, backward compatibility support 1.2.0.v20150129-0838 org.eclipse.equinox.p2.extras.feature.feature.group Eclipse.org - Equinox
  Equinox p2, Discovery UI support 1.0.200.v20140512-1802 org.eclipse.equinox.p2.discovery.feature.feature.group Eclipse.org - Equinox
  Equinox p2, headless functionalities 1.3.0.v20140523-0116 org.eclipse.equinox.p2.core.feature.feature.group Eclipse.org - Equinox
  Equinox p2, minimal support for RCP applications 1.2.0.v20140523-0116 org.eclipse.equinox.p2.rcp.feature.feature.group Eclipse.org - Equinox
  Equinox p2, Provisioning for IDEs. 2.2.0.v20150129-0838 org.eclipse.equinox.p2.user.ui.feature.group Eclipse.org - Equinox
  Java implementation of Git 3.4.2.201412180340-r org.eclipse.jgit.feature.group Eclipse JGit
  Marketplace Client 1.3.2.v20150218-2039 org.eclipse.epp.mpc.feature.group Eclipse Marketplace Client
  Mylyn Commons 3.14.2.v20150217-2244 org.eclipse.mylyn.commons.feature.group Eclipse Mylyn
  Mylyn Commons Connector: Discovery 3.14.2.v20150217-2244 org.eclipse.mylyn.discovery.feature.group Eclipse Mylyn
  Mylyn Commons Connector: Monitor 3.14.2.v20150217-2244 org.eclipse.mylyn.monitor.feature.group Eclipse Mylyn
  Mylyn Commons Identity 1.6.2.v20150217-2244 org.eclipse.mylyn.commons.identity.feature.group Eclipse Mylyn
  Mylyn Commons Notifications 1.6.2.v20150217-2244 org.eclipse.mylyn.commons.notifications.feature.group Eclipse Mylyn
  Mylyn Commons Repositories 1.6.2.v20150217-2244 org.eclipse.mylyn.commons.repositories.feature.group Eclipse Mylyn
  Mylyn Context Connector: C/C++ Development 5.10.2.v20150218-0125 org.eclipse.cdt.mylyn.feature.group Eclipse Mylyn
  Mylyn Context Connector: Eclipse IDE 3.14.2.v20150218-0125 org.eclipse.mylyn.ide_feature.feature.group Eclipse Mylyn
  Mylyn Context Connector: Team Support 3.14.2.v20150218-0125 org.eclipse.mylyn.team_feature.feature.group Eclipse Mylyn
  Mylyn Task List 3.14.2.v20150217-2341 org.eclipse.mylyn_feature.feature.group Eclipse Mylyn
  Mylyn Task-Focused Interface 3.14.2.v20150218-0125 org.eclipse.mylyn.context_feature.feature.group Eclipse Mylyn
  Mylyn Tasks Connector: Bugzilla 3.14.2.v20150217-2341 org.eclipse.mylyn.bugzilla_feature.feature.group Eclipse Mylyn
  Mylyn WikiText 2.3.2.v20150217-2315 org.eclipse.mylyn.wikitext_feature.feature.group Eclipse Mylyn
  Nebula Oscilloscope Widget 1.2.0.201406170952 org.eclipse.nebula.widgets.oscilloscope.feature.feature.group provider
  Remote System Explorer End-User Runtime 3.7.0.201502160819 org.eclipse.rse.feature.group Eclipse TM Project


 :)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 10, 2015, 09:04 pm
Seems ok to me.
Did only the arduino eclipse plugin update?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: lakid on Mar 11, 2015, 03:55 am
Hi Everyone
What is the correct way to add fuse settings in the Eclipse Arduino IDE ?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rockwallaby on Mar 17, 2015, 09:41 am
Well, after a nice long period of all working well with Eclipse and the Plug-In, I now have an issue I'm having trouble resolving.

Jan, first, you know I'm a long time user of your great plug-in and have run OSX 10.6.8 (Snow Leopard) for a long time.

OSX 10.6.8 uses Java 1.6 as the latest and only supported by Apple, not Oracle.
My Eclipse was Kepler with Arduino IDE 1.5.2 with V2 of the plug-in.

All worked well for a long time, like I mentioned, creating and compiling code for AVR.

Now, I am moving the code of my main personal project from ARV to ARM, (2560 Mega to DUE), and this is where I have the start of my problem, with trying to compile and getting the now famous 'can't find make' error.

So, in my attempts to find a solution I thought, 'ok, these applications are getting old, how about I update'.

Starting first with Arduino IDE, da daaa, 'Sorry, this application now requires Java 1.7+'.
So, I find to update my Java from 1.6, which was supported by Apple, to something newer I needed to go to Oracle site. Going to Oracle, they say, 'oh ohh, you need OSX 10.7+ before you can install Java 1.7+'.

So, having OSX Mountain Lion 10.8 on a USB drive, I thought, 'yes, easy, I will update my computer Operating System, which will be good', and so proceeded to do this with no problems. I'm happy so far.

Now, with a more up to date OS, I go back to Oracle to get up to date Java, 'yes, you can have the latest, 1.8 u40'. Totally fantastic, I'm really making progress here and will have this all sorted and back to programming really soon, with a nice newer system.

Things were looking even more wonderful now with Java 1.8, as could now download and run Eclipse Lunar (4.4.2). Abundance of awsomeness flows forth.

I read that I can now install the nightly build of Jan's great Eclipse Plug-In, and I do, even more wonderfulness abounds.

I now have updated the OS, updated Java and Eclipse to the latest and greatest together with the Plug-In, surely, I am now ready to make code?

I do then find that I can't compile AVR with Arduino 1.6.x, and read about using the AVR /bin files from an earlier version like Arduino 1.5.2 (my last working version). I do this but the compiler complains about the /bin-4 directory not being present. I try that and come to a point that I know it will be an never ending path of shifting th eold back over the new.

I then also try, again, to compile my new DUE project, and again find, the famous 'no make' found error.

I scoured through the issues on Github for the Plug-In in an attempt to find some sense of what the problem is and how I might get around it.

I tried various ideas for putting 'make' in the correct directory or links to it, nothing appeared to work.

The only thing that does work for me with this new setup is that I use Arduino 1.5.2 as the link in Eclipse, and that is only for AVR, not for SAM boards. I can't get anything to work for SAM presently. Essentially the same situation I had before all this abundance of awesomeness feelings.

I see on the home page of Jan's site he makes mention on Feb 20th;
Quote
#Arduino ide 1.6 is out and it is supported by the nightly build of the #arduinoEclipseplugin
It might well be, but I'm pretty well at a loss right now to see how I can compile AVR or SAM8XE boards as I have not found documentation that clearly describes how this can be done.

I have also tried the nightly product for OSX, this one 'arduino-nightly-macosx-java-latest-1.6.2.zip', which I found also not to work any better for me.

I notice there seems to be an increase in users who are and who are going to have problems with setting up new installs.

Jan, the Plug-In is great, you know I think that, and your new site is a wonderful improvement in terms of layout, but, the content is quite confusing in many sections and I fear, fast becoming out of date.

If it is indeed possible to use Arduino 1.6.x with the nightly plug-in, I would really appreciate it if you were able to write up the procedure and configuration you have for doing this.

Can you cover both AVR and SAM based setups please.
I'll be very happy to donate again.
______
Paultje  :)

EDIT: I can use Arduino-1.5.6-r2 to compile AVR, not DUE
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 17, 2015, 01:45 pm
@Paul
Thanks for the write-up, nice words and thrust. Basically I fully follow your story about the upgrade.
Indeed we (The Arduino eclipse plugin team) decided to upgrade to java 1.7 (some people are asking to upgrade to 1.8 already) so in your case an OS and java upgrade was required.

I also know about the fact the Arduino IDE no longer comes with a make utility. However IMHO most mac instances have a make in their path somewhere (like most linuxes) so this is mostly a windows issue. IMHO if you don't have make somewhere installing xcode should do the trick. If make is somewhere in the path it does not have to be under the arduino folder.

 I'm however lost when you write:
Quote
I do then find that I can't compile AVR with Arduino 1.6.x,
How did you find so? I guess you missed the combobox to select the boards.txt file. Selecting the boards.txt allows you to switch between AVR, SAM, Teensy (if you installed the latest teensy) or any other hardware you have availabe on your system. This works like a charm here (and with many others). So unless something is terribly wrong for mac or on your system it should work for SAM and AVR with Arduino IDE 1.6.x.
 
Quote
and read about using the AVR /bin files from an earlier version like Arduino 1.5.2 (my last working version). I do this but the compiler complains about the /bin-4 directory not being present. I try that and come to a point that I know it will be an never ending path of shifting the old back over the new.
Where did you read that you should be using the AVR/bin files from an earlier version to get AVR running? The only time I can remember I advised to copy parts of older arduino versions is to fix the make issue.

Another reason for the burden you are experience is that; when you upgrade(be it the plugin or the arduino IDE) you should always go to project properties arduino check your settings and press apply and then ok(ok will only work if you changed something so always press apply if there is a problem) This will force all the settings to be reset and the project to be cleaned.

As you can see from this chart (https://pbs.twimg.com/media/B6_9T63CUAEpgEI.png:large) there is indeed a huge increase in the user base of the plugin. I have been working on making things easier to get started; tips for improvements are welcomed.

You state the content of the new web site is confusing. Please point out what comes as confusing to you so we can improve.

Have a new look on the plugin with the information above and post as soon as something goes wrong.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 17, 2015, 07:59 pm
I just found out that if you have a space in the path of the workspace you get
Quote
make: *** No rule to make target `/home/....
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rockwallaby on Mar 17, 2015, 11:18 pm
Jan, many thanks for your reply.
I do appreciate how you addressed each one of my points and questions and gave time to answer them.

I'll write this post in two parts, first in reply to your post and second what I have done late last night.

Section 1:
Yes, GNU/Linux systems, as far as I am aware, all have the 'make' facility as part of their distribution, and OSX has it if you install XCode. I have XCode installed and have had it since the day the Mac landed on my desk, but it is an old version, 'Xcode 3.1.3 developer tools'.
Yes, it does have 'make' in there, and that is something I did check for while I was searching for answers, and is located at folder '/Developer/usr/bin' as file 'gnumake' with an alias link file named 'make' in the same folder.

It seems any Arduino-1.x.x appilcation I have without the included 'make' was not able to locate this other 'make' executable and this must be down to not having a PATH to it.

You ask me how did I find it not possible to compile AVR with Arduino 1.6.x with Eclipse setup. Simply because no 'make' was found. On my system, this has been the whole problem for any version of Arduino IDE that ships without 'make' and Arduino-1.6.x is no different.

Quote
I guess you missed the combobox to select the boards.txt file
No, not at all, it is something that I specifically check and set each time as a matter of habit. There are many times I have seen this reset to a SAM board when the project is for AVR, mostly when I change the main Eclipse preference setup for which Arduino version the tool-chain is based on. Apart from that odd thing I notice, yes, you are correct, it does work like a charm.

Quote
Where did you read that you should be using the AVR/bin files from an earlier version to get AVR running? The only time I can remember I advised to copy parts of older arduino versions is to fix the make issue.
From your comment here on GitHub (https://github.com/jantje/arduino-eclipse-plugin/issues/183), where youy say at comment #4;
Quote
you can copy the C:/Arduino/hardware/tools/avr/utils/bin folder from an older arduino folder.
Or use 1.5.6.
Or install make from somewhere else.
I'll need some time to come up with a good solution.
The apply button,
Quote
you should always go to project properties arduino check your settings and press apply and then ok(ok will only work if you changed something so always press apply if there is a problem)
Again, yes, it is part of my habbit and do this each time, and always have. It is a very good point you raised here for other people to take note of.

Also, as part of my work ethic, I have always made sure I 'clean' the project very often, re-index, and make sure all includes are correct, essentially giving a nice clean project for the compiler and linker to work with.

Lastly,
Quote
You state the content of the new web site is confusing. Please point out what comes as confusing to you so we can improve
Yes, can I look over it later and make notes about specific areas I found to be of concern and also many many spelling errors. My main concern is the clarity of content, being absolutely clear about what is being said or detailed is of utmost importance, especially with what can be a complex setup for many people who are wanting to setup their system to use Eclipse with your Eclipse plug-in.

I will email you at a later date about this as I would like to be able to help in sme way.

Lastly, lastly;
Quote
I just found out that if you have a space in the path of the workspace you get
Yes, I never use spaces in any filename that is specifically to do with any form of code. Again, my work practice would seem good on this point.

Section 2:
Staying up late last night and past the time of your initial reply I wanted to solve this.
And, I did, for both AVR and SAM boards.
At this point in time, I now have the latest Eclipse installed from the Eclipse site, I have the latest nightly plug-in installed and I have downloaded the latest Arduino-1.6.2 IDE.

I simply copied the 'gnumake' executable from Arduino-1.5.6-r2 '/avr/bin' directory and copied this file to the latest Arduino-1.6.2 'avr/bin' directory and renamed it from 'gnumake' to 'make', as it seemed an alias link file did not work.

This then allowed me to compile an AVR project successfully.

Next, I copied the same 'gnumake' file and placed it in the '/gcc-arm-none-eabi-4.8.3-2014q1/bin' directory and again, renamed it to 'make'

With this, I am now able to compile a project based on a SAM board such as the DUE.

All is good, and happy feeling are abounding in abundance again.

One thing I have noticed is that using the latest Arduino-1.6.2 is that an error is found if any header file has the following code;
Code: [Select]
#if defined(ARDUINO) && ARDUINO >= 100
 #include <Arduino.h>
#else
 #include <WProgram.h>
#endif

Where 'WProgram' is no longer found as there is no header file of that name in the latest Arduino IDE that the compiler can find. This means updating any project that has has any file, project header or library header that has this to just have '#include <Arduino.h>'.

Jan, thank you again for you ongoing support, I for one do appreciate it, and would like to rob a bank of large amounts to give you a bigger donation. I will look to donating what I am able.

Nice graph, very impressive uptake.
I think the high number of builds must be from me, and I never use the serial monitor, hence why it is such a low value on the graph.  :)
____
Paul
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 18, 2015, 12:13 am
Paul
Good to see you got it to work.
If I understood correctly: after "normal installation" on a mac following actions are needed:
Simply copy the 'gnumake' executable from Arduino-1.5.6-r2 '/avr/bin' directory and copied this file to the latest Arduino-1.6.x 'avr/bin' directory and renamed it from 'gnumake' to 'make'.
Simply copy the same 'gnumake' file and place it in the '/gcc-arm-none-eabi-4.8.3-2014q1/bin' directory, again rename it to 'make'.

I wonder whether adding xcode to the path would work.

I'm not sure where you got your Arduino IDE 1.6.2 (in my book the latest release is 1.6.1)
In Arduino IDE 1.6.1 ARDUINO is defined as 10601.
My plugin using Arduino IDE 1.6.1 defines ARDUINO as 161
with the code
Code: [Select]
#if defined(ARDUINO) && ARDUINO >= 100
 #include <Arduino.h>
#else
 #include <WProgram.h>
#endif

Both end up including Arduino.h

For the fun of it I modified the content of the file [arduino]/lib/version.txt from 1.6.1 to 10.60.1.
After reselecting the arduino version in preferences and doing apply on the project for the arduino settings the ADUINO define is 10601 as in the arduino IDE.

best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rockwallaby on Mar 18, 2015, 12:50 am
Jan,
Quote
If I understood correctly: after "normal installation" on a mac following actions are needed:
Simply copy the 'gnumake' executable from Arduino-1.5.6-r2 '/avr/bin' directory and copied this file to the latest Arduino-1.6.x 'avr/bin' directory and renamed it from 'gnumake' to 'make'.
Simply copy the same 'gnumake' file and place it in the '/gcc-arm-none-eabi-4.8.3-2014q1/bin' directory, again rename it to 'make'.
Yes, that appears to me to be the case.
I think if I set the PATH to the 'make' in XCode, it should also work, and I will check this later.

But for those who do not have XCode installed, then the 'make' utility needs to be present, either by copying to those directories or setting the PATH to it if it is elsewhere.

Without 'make' present, I get the following error and describing the PATH where it is looking:
Quote
Error: Program "make" not found in PATH
PATH=[
/Applications/Arduino-1.6.2.app/Contents/Java/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin/:
/Applications/Arduino-1.6.2.app/Contents/Java/hardware/tools/g++_arm_none_eabi/arm-none-eabi/bin:
/usr/bin:
/bin:
/usr/sbin:
/sbin]
So, with default PATH settings, the 'make' utility should be able to reside in any one of those.

On my Mac, I checked the system directories of '/usr/bin', '/usr/sbin', '/bin' and '/sbin' and there is no 'make' utility in any of them.

With Arduino IDE version, I downloaded the nightly and it does say it is 1.6.2.
Even when I look inside the info.plist, it is listed there as
Quote
Bundle versions string, short : nightly
Bundle version : 1.6.2
In revisions.txt is has:
Quote
ARDUINO 1.6.2

[ide]
* In platform.txt, pre and post build hooks can now be specified. Example: recipe.hooks.prebuild.0.pattern=echo "Hello {build.source.path}". Thanks @Wackerbarth
* Windows and MacOSX JVM Xmx halved to 512M
* Introduced starting splashscreen with progress status: will be used for notifying user of long running startup tasks
With '#include <WProgram.h>', if it is present anywhere, I found will get errors as that header is no longer present, even if it is wrapped in a '#if define' statement.
____
Paul
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rockwallaby on Mar 18, 2015, 01:21 am
To fix this better, I have copied the 'make' utility to my system '/usr/bin' directory, after setting write permissions to this location for this operation. I selected this as being the more appropriate location over the others.

I then removed the 'make' utility from both the locations in Arduino-1.6.2 IDE as mentioned above and tested for both AVR and SAM projects and all compiles fine with this setting.

This will mean there will be no need for me to copy a 'make' utility to newer versions of Arduino IDE in the furture.

Regards,
____
Paul
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rockwallaby on Mar 18, 2015, 10:32 am
Today I wanted to finalise my setup and test it with a Taijuino DUE board.
I am able to compile my code fine now, but am not able to upload.

The compiler compiles to 'project.elf' code and bossac is looking for a 'project.bin' to upload.

Looking at the project properties 'C/C++ Build | Settings', I see the toolchain is setup, but no mention that I can see of generating a project.bin file.

What do I need to change here?
____
Paul
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 18, 2015, 11:41 am
Hi Paul
Thanks for the input and the donation. :-)
I updated the we site based on your comments. They should be released around 3 am CET.
As to your bin issue.
I'm not sure how to phrase it .... the problem is caused by "unexpected names" in the platform.txt file.
I can't fix this quickly in the plugin; so I have looked for a "workaround". On my system I now have a bin file but I have not uploaded and tested it. Conceptually it should work.
Open the platform.txt of your sam folder.
look for "recipe.objcopy.bin.pattern" rename the bin to hex. Save the file.
No need to open and close eclipse. Go to project properties->arduino aplly-close ; should work.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rockwallaby on Mar 18, 2015, 11:46 am
Further to my tests:

Going into a terminal screen and going into the Arduino-1.6.2.app to where bossac executable is located.

Next, from this location I run objcopy to convert the elf file to bin file format:
Code: [Select]
cc-arm-none-eabi-4.8.3-2014q1/bin/arm-none-eabi-objcopy -O binary /project/Release/project.elf /project/Release/project.cpp.bin
A file of type bin is successfuly produced.

Next I want to upload this and use bossac like this:
Code: [Select]
./bossac --port=tty.usbmodem471 -U false -e -w -v -b /project/Release/project.cpp.bin -R

It uploads successfully and resets the DUE.
I test that the DUE has been successfully programed by viewing the serial data coming from the device.

What I need to find out is how to have this compile option is correctly placed within Eclipse?

Jan, your email just hit my inbox as I hit send  :)
Many thanks
____
Paul
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rockwallaby on Mar 18, 2015, 11:58 am
Jantje,

Magic, that does the trick nicely, thank you  :D
I was wondering where I could fine those compile patterns.

I'll do a few more tests to re-confirm, but this is looking very good now.
____
Paul
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: edgarsanti1 on Mar 18, 2015, 03:28 pm
Hi Jantje,
This is awesome! (I just sent you a donation) Do you know if this plugin would  work with Intel's version of the Arduino IDE?
I tried to make it work last night but wasn't successful. Is there any inherent issues you see trying to use the Intel-Arduino IDE with your eclipse plugin?
I'll try a few more things tonight to see if I can get it to work.
Let me know.
Thanks!
-E
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 18, 2015, 03:43 pm
Do you know if this plugin would  work with Intel's version of the Arduino IDE?
I have never looked at the intel version of the arduino IDE. I don't understand why they have a special version.
If there is a special reason it probably won't work.
If there is no special reason it might work and it should be possible to make it work.
Making it work involves fidling around with the platform.txt and boards.txt.

First thing is: give it a try and what works and what not.

Best regards
Jantje

PS I tried to download the intel arduino ide 64 bit version for linux and got an error page. I only got that far :-(
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: edgarsanti1 on Mar 19, 2015, 04:15 am
Thanks Jantje!
I did have to change the name of their "platform.win.txt" to "platform.txt" and it got me further than before. Now I got an
"Error: Program "make" not found in PATH"
I know this is an issue with Arduinos IDE 1.5.7 and higher. This Intel-Arduino IDE is a version 1.5.3. But that's no guarantee that it is the same as the standard Arduino IDE V1.5.3
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 19, 2015, 01:54 pm
I know this is an issue with Arduinos IDE 1.5.7 and higher.
Actually it is not an issue in Arduino IDE. Arduino IDE does not use make but make came bundled with IDE. In order to reduce the package size it is 100% valid to remove unused files (like make) from the installation package.
The Arduino core team took the opportunity to reduce the size when changing the toolchain.
For more indepth understanding look at the components page here http://eclipse.baeyens.it/getting-started.shtml (http://eclipse.baeyens.it/getting-started.shtml)

The intel people probably need another toolchain as well (intel instead of AVR or SAM) so it makes sense not to add make there.

IMHO it is a eclipse CDT issue. Basically CDT needs make but can not bundle it due to licence issues.

On windows easiest is probably to install http://www.mingw.org/ (http://www.mingw.org/) but I never did so.

I'm considering to add make to the arduino eclipse plugin but I'm a bit scared it will cause more issues than solve.

Best regards
Jantje
 


Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 20, 2015, 11:41 am
Installig cygwin may be a good option to.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: DerTomm on Mar 21, 2015, 01:35 pm
Hi Jantje,

the most recent nightly warns that Arduino IDE 1.6.0 is not supported (with a lot of exclamation marks  ;) ). What do you think - will ArduinoEclipse ever be able to support the recent releases of the IDE out of the box? Or at least after copying the missing make binary?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 21, 2015, 05:58 pm
you are probably on windows so you need 1.6.1
best regards
jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: DerTomm on Mar 22, 2015, 11:12 am
Ah, okay. Using the Arduino 1.6.1 IDE the warning disappeared. Very good  :)

But the known issue "Eclipse tells me there are bugs in my code but it compiles ok." stays. The troubleshooting advises

"Setting the preference windows->preferences->C/C++->indexer->Files to index upfront . Add arduino.h and or WProgram.h including the full path. With me it currently states "D:/arduino-1.0.1/hardware/arduino/cores/arduino/Arduino.h,cstdarg, stdarg.h, stddef.h, sys/resource.h, ctime, sys/types.h, signal.h, cstdio"."

The little problem: In Eclipse Luna this "Files to index" tab is not available anymore. Can you tell me how to add these header files in Luna?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 23, 2015, 12:40 am
in luna a build solves the issue. If not rebuild the index.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Celeritous on Mar 25, 2015, 11:24 pm
Jantje, or anyone

This looks like it can be a great tool..... once I get it working.   I am doing DUE development on a PC/Win7 platform.

1. I downloaded the nightly 1.6.2 Arduino Build
2. I downloaded the nightly Eclipse build win32.2015-03-25_02-06-02.tar.gz
3. I created a separate tools folder with no spaces
     C:\
          \Arduino_Tools
             \Arduino 
             \eclipse_Arduino
             \Hardware
             \Libraries   
             \Workspace
4. Installed Arduino 1.6.2 and verified it worked stand-alone
5. Installed eclipse_Arduino
6. Set Workspace to tools workspace folder
7. Set Arduino file locations in Eclipse
8. Set .ino and .pde file extensions
9. Moved a copy of make.exe into the  Arduino\hardware\tools\gcc-arm-none-eabi-4.8.3-2014q1\bin
   folder
10  Added the gcc bin tools folder to my environment path
11. Created a simple blink.ino project from scratch - no external libraries
12. Added an #include "Arduino.h" to .ino file
13. When I do a build I get the following message:

17:15:09 **** Incremental Build of configuration Release for project blink ****
make all

17:15:10 Build Finished (took 348ms)

but it does not generate any object files or a .bin file.

I saw an update on GitHub under " The build for due in Arduino IDE 1.6.1 should work now."

should that fix have been in the nightly build I downloaded?

Otherwise I would appreciate guidance on anything I may have missed.

Best Regards,
Allen
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rockwallaby on Mar 26, 2015, 11:20 am
Allen,
Your point 10;
Quote
10  Added the gcc bin tools folder to my environment path
This is not something I recall you need to do. What gcc bin folder are you setting?

Everything else looks in order to me.

First, do a project 'Clean' to set the complier to do a complete project build.
Then perform a 'Build'

See what results you get from that and then post your results here.
____
Paul
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 26, 2015, 12:39 pm
@Celeritous
First of all thanks for the extensive explanation. That makes discussion easier.

I fully agree with Paul his comment. Point 10 is not needed and may have a negative effect.
Further on all looks ok so there must be something really obviously wrong.
As to the due. The due problem was with the "compile" so at least there should be some compile commands. It should be fixed.

Here are my thoughts
1) I do not support nightly builds of arduino IDE. The due problem was introduced in 1.6.1 https://github.com/arduino/Arduino/commits/master/hardware/arduino/sam/platform.txt (https://github.com/arduino/Arduino/commits/master/hardware/arduino/sam/platform.txt) Maybe something else was changed that causes your problem.
2) That is the one you need.
3) Why do you need a hardware and libraries folder?
4) I assume in  C:\Arduino_Tools\Arduino 
5) I assume in C:\Arduino_Tools\eclipse_Arduino
9) Where did you get he make.exe? I updated the windows section with how to get it working with cygwin. http://eclipse.baeyens.it/installAdvice.shtml (http://eclipse.baeyens.it/installAdvice.shtml)
10) not needed.
11) how did you do so? Dit you use the new sketch button in the toolbar? See more detail here http://eclipse.baeyens.it/how_to.shtml#/f (http://eclipse.baeyens.it/how_to.shtml#/f)

My guess is that step 9 or 11 were wrong.

Let us know
Jantje



Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rockwallaby on Mar 26, 2015, 12:57 pm
Other thought is that Allen has not set the project properties section for board type for SAM and and then set the port. Select project on left side, right mouse and 'properties', go to Arduino and check your board type and port connection.

Another thought is something I may have noticed last week when updating my setup, was with the project.ino or project.pde extensions. I tried one of the Arduino IDE examples when setting up, which do have that extension and do recall problems, but I don't recall what it was as I don't use that extension with any of my projects, rather just use standard project.cpp and I always have a project.h header file.
____
Paul
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Celeritous on Mar 26, 2015, 04:49 pm
Paul, Jante,

Thanks for the quick replies and suggestions.

Let me address things in order they were addressed.

I added the environment path to the sam gcc tools folder after I tried it without it. I read somewhere in the past discussions of previous versions this had helped. I have tried it with and without the environment path set and the behavior is the same. I will remove it.

I will download the Arduino 1.6.1 and see if there is any difference in behavior and report back.

I added the /Hardware and /Libraries as the Arduino custom hardware and library paths as well as set both the arduino IDE and eclipse to use the /Workspace folder as the default workspace folders.

the make.exe actually came from the Arduino distribution where it is still located in
\Arduino\hardware\arduino\sam\system\CMSIS\Examples\cmsis_example\gcc_arm\make.exe

This may not be a correct one. I will look at installing cygwin to see if it's make is different.

I do have the board type set to the sam due and the port set. I did an upload even without the .bin present and it did connect to the port and erase the chip, then errored out when it couldn't find the .bin file.

I'll also try using the cpp extensions as Paul suggested and see if that makes a difference

I'll give these things a try today and let you know what happens.

Thanks again
Allen
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 26, 2015, 05:45 pm
@Celeritous
Can you also open the error view and see whether you get any errors in there?
Can you use the wizard to create the blink example sketch with uno? and see whether this one compiles?
I'm actually really puzzled about what is ongoing on our system as your description is the good way so it should work.
Have you omitted part of the build output? I ask because my system builds a ino file, links,hex,size ..... in 281ms where your log states 348ms for doing nothing.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Celeritous on Mar 26, 2015, 11:44 pm
Jante,

There are no errors being reported and the build log has no omissions. That is all that is being generated. I looked into the build log at Workspace\.metadata\.plugins\org.eclipse.cdt.ui\blink.build.log and there is no additional info being generated.

I removed the environment path to the gcc tools directory.

FWIW Looking at the project properties under C/C++ Build -> Tool Chain Editor Current Toolchain is Arduino Toolchain and Current Builder is Arduino Sketch Builder.

I did try setting up a new sketch for the Uno and I am seeing the same behavior.

I did download the Arduino 1.6.1 release and re-set the Arduino paths in Eclipse. Same behavior for both AVR and DUE sketches.

I downloaded Arduino Rev 1.5.2 and copied the make from its gcc tools directory to the 1.6.1 gcc tools directory.  No change.

I also tried pointing the Eclipse Arduino paths to the 1.5.2 folder and was seeing the same thing, even after a restart of Ecdlipse. It looks like its going through the motions but doesn't ever generate any intermediate object files or a binary file.


At this point I am
1. downloading cygwin with dev tools
2. flushing the setup and starting over with a clean Arduino 1.6.1 and clean eclipse bundle install.

Is there a particular bundle build I should try? Cygwin will probably take a while to complete downloading so I won't be back at it until tomorrow.

Would I have better luck doing this in Linux? I have a couple of dual boot Kubuntu and Lubuntu machines around.

Allen

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 27, 2015, 10:19 am
@Celeritous
I really do not have a clue what is going on on your system. I really would like to know as someone else may experience the same issue so I'd like at least "to know what is going on".
Another OS will make a difference because I think it is a local system related issue. So even another win7 system may help.
To progress the issue I think we need a remote access to your system or screenshots.
I have the very latest version of the plugin on my system. I created a project called dddd with the sample blink (using mega), I did a build and I made a screenshot. I'd like you to do the same.
http://iloapp.baeyens.it/data/_gallery/public/6/142744777832010400_resized.png (http://iloapp.baeyens.it/data/_gallery/public/6/142744777832010400_resized.png)
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Celeritous on Mar 27, 2015, 10:38 pm
Jantje,

OK.

1. Clean re-install of Arduino 1.6.1
2. Clean re-install of eclipse_Arduino
3. Eclipse paths to Arduino set
4. .ino, .pde file extensions set
5. Arduino tested
6. Created a project -> arduino sketch and used 01Basic -> Blink
7. Screencap of first instance of Build attached.

The only thing I did different this time was the account on the machine I was using was the Administrator account and I've had problems in the past with permission and security on the resulting folders created during installs causing problems. I created a normal user account and where necessary during installation gave Administrator permission so all of the directories should be writable by the normal user account.

I use Logmein on this machine and if necessary can send you an invite for remote control.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 27, 2015, 11:38 pm
The image puzzles me a bit.;
The outline view shows that ino files have not been parsed. Thought the .ino.cpp has been identified (the .ino.cpp file is created by the plugin)
The blink.ino is tagged as a c file.
but the editor has an icon unknown to me.

Please do send me a logmein invitation eclipse@baeyens.it

Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: DerTomm on Mar 29, 2015, 04:00 pm
Hi Jantje,

I finally got the latest nightly of ArduinoEclipse working in combination with Arduino IDE 1.6.1 now. Thanks again for the great support here.

But I'm afraid I have to ask you again for help :-)

I encountered the following problem:
Compiling sketches for default hardware (which is descibed by the config file located at $ARDUINO_IDE_PATH\hardware\arduino\avr) works fine.
But custom hardware like breadboard Arduinos which is described by a boards.txt under $USER_HOME\Documents\Arduino\hardware\breadboard\avr compiling fails with a lot of such messages:

make all
Building file: ../.ino.cpp
Starting C++ compile
I"D:\Programme\arduino-1.6.1\hardware\arduino\avr\cores\arduino" -I"C:\Users\Thomas\Documents\Arduino\hardware\breadboard\avr\variants\standard" -I"D:\Programme\arduino-1.6.1\libraries\01.Basics" -MMD -MP -MF".ino.cpp.d" -MT".ino.cpp.o" -D__IN_ECLIPSE__=1 -x c++ "../.ino.cpp"  ".ino.cpp.o"   -Wall
/bin/sh: ID:\Programme\arduino-1.6.1\hardware\arduino\avr\cores\arduino: No such file or directory
make: [.ino.cpp.o] Error 127 (ignored)
Finished building: ../.ino.cpp

Is it possible that the first include parameter is malformed? Looks like a "-" is missing...?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 29, 2015, 04:41 pm
@dertomm
I'm not supporting the full functionality of the boards.txt and platform.txt specification.
For instance there is a specification which states "use arduino stuff" which is not supported in the plugin. I fear your boards.txt uses one or more features that I do not support.
Basically I see the compile command is missing. So IMHO there is far more than only the "-" missing

Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: DerTomm on Mar 29, 2015, 05:42 pm
Okay - would putting my custom boards stuff into the regular boards.txt file of Arduino IDE help or does this mean that I can only use default targets like Arduino Uno?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 29, 2015, 05:53 pm
It is hard for me to tell what is failing. As such I don't feel confident on giving advice.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: DerTomm on Mar 29, 2015, 06:13 pm
I'll try it in the next days and then we'll see what happens.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: DerTomm on Mar 30, 2015, 06:20 pm
Success: After merging the custom hardware definitions into the global boards.txt ArduinoEclipse compiles the binary without problems. Now finally I can use a proper IDE for my projects development. Thanks Jantje :-)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 30, 2015, 06:47 pm
Good. write a tutorial on how you did it and share :-)
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: jipp on Mar 31, 2015, 05:43 pm
Hi

I ran into the same problem.
My favorite is the eclipse using Jantjes' plugin - its much more convenient for projects. I try to use ATtiny84 together with the plugin.

Using the Arduino IDE 1.6.1 it works fine. The personal platform.txt is quite minimalistic, the boards.txt refers to some variants inside the personal hardware folder. All this is fine with the arduino ide.

Now I would like to use this together with the eclipse env.
Like described above all definitions inside the platform.txt coming with the arduino ide are not in at all. Looks like that the plugin is not adding them additional and only loading what is in the personal platform.txt.
OK - so its a not supported feature.

I have now two choices:
-wait till the support is added to the plugin, so that it will be simple to add other hardware to the development
or
-please tell me how you have got it up and running (tutorial)

thanks a lot



below the error message I see after adding the definitions to the board.txt:

17:40:37 **** Incremental Build of configuration Release for project Tropfenfalle ****
make all
Building file: ../Tropfenfalle.cpp
Starting C++ compile
"/Users/wolfgang.keller/Downloads/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=attiny25 -DF_CPU=1000000L -DARDUINO=161 -DARDUINO_attiny -DARDUINO_ARCH_AVR     -I"/Users/wolfgang.keller/Downloads/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino::arduino" -I"/Users/wolfgang.keller/Documents/Arduino/libraries/Streaming" -I"/Users/wolfgang.keller/Downloads/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/variants/tinyx5" -MMD -MP -MF"Tropfenfalle.cpp.d" -MT"Tropfenfalle.cpp.d" -D__IN_ECLIPSE__=1 -x c++ "../Tropfenfalle.cpp"  -o  "Tropfenfalle.cpp.o"
In file included from ../Tropfenfalle.cpp:6:0:
../Tropfenfalle.h:9:21: fatal error: Arduino.h: No such file or directory
 #include "Arduino.h"
                     ^
compilation terminated.
make: *** [Tropfenfalle.cpp.o] Error 1

17:40:37 Build Finished (took 86ms)


Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 31, 2015, 06:40 pm
The third option is to add the functionality yourself :-) It is open source after all.
jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 31, 2015, 11:58 pm
@Celeritous
With the remote login I fixed the issue. The problem was the make.exe you copied. Apparently this make.exe didn't work.
As cygwin was on your system I added the bin directory of cygwin to the system path and I removed the make.exe.
That fixed the issue.

@all users that do not have make on their system
I strongly advice to install make on your system and add the folder containing make to your system path.. For windows users that will be the make module of cygwin or mingw. or linux users there should be a make package. For mac users that should be xcode.
From the command promp the command make should be found. Then you are ok.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Celeritous on Apr 01, 2015, 12:35 am
Jantje,

Thanks much for the assist. I tested with the projects set for ARM and they worked as well. That beer is on its way!

Celeritous
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Efcis on Apr 02, 2015, 03:01 am
Hi

I'm returning to Arduino dvpt after a (long) pause. I'm currently using Arduino IDE 1-5.6r2, Eclipse Kepler and the Plugin v2.2.0.1

I'm trying to compile a projet from GitHub using an .ino file (I converted to .cpp and created the function prototypes) which is using the EEPROM and Wire libraries. I tried to import these libraries in the project with Import... /  Hardware provided Libraries / EEPROM checked, but I get :

Failed to import library
Cannot create linked resource '/k3ng_rotator_controller/Libraries/EEPROM'.  The parent resource is not accessible.

The same error occurs for Wire.

1/ Is there a way to import these lib in this project ?
2/ If I want to upgrade my Arduino IDE to a more recent version, how to set the Eclipse / Plugin paths to the new IDE, and use it by default ?

Thanks for your time !
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 02, 2015, 12:34 pm
@Efcis
Have you configured the plugin? See the howto's in this link
http://eclipse.baeyens.it/how_to.shtml (http://eclipse.baeyens.it/how_to.shtml)
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Efcis on Apr 02, 2015, 03:36 pm
Hi Jantje

Thanks for the reply.

Considering the libraries, I found the issue : A "libraries" (not "Libraries" - check the case) directory was already present in my project (coming from the GitHub project download). I had to move that directory to let the plugin create its own "libraries" directory.

Rgds
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 02, 2015, 04:46 pm
@Efcis
Wierd. Can you make a issue at github for this? https://github.com/jantje/arduino-eclipse-plugin/issues (https://github.com/jantje/arduino-eclipse-plugin/issues)
Add the github repository and how you added it to your workspace.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: wilderbuchanan on Apr 03, 2015, 09:41 am
Hi everyone,
I spent the better half of the day trying to get eclipse running with my Arduino.  I tried different languages and just could get it to work.  Then i came across this plug in and i think i am pretty close to running the Arduino.  However, I have these 2 errors and my code for the simple Blink example won't run.  Any suggestions?
Thanks,
Wilder
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 03, 2015, 10:13 am
@wilderbuchanan
I see several things that seem wrong to me.
Please read through the http://eclipse.baeyens.it/how_to.shtml (http://eclipse.baeyens.it/how_to.shtml) section of my web page.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: lakid on Apr 04, 2015, 07:27 am
Is there a way to set a project back to the default 'arduino' as opposed to 'cpp' settings ?
I've upgraded to the latest nightly and it seems to have borked my environment.
In trying to fix the problem my arduino project trys to compile using

/bin/sh: /bin/avr-g++: No such file or directory

instead of looking inside the arduino app bundle.
I can't for the life of me figure out where it's picking up that setting from.

On a different topic, the latest nightly keeps putting a /Resources/ into all of it's paths which I think comes from a much older version of the IDE. I'm using 1.6.1
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 04, 2015, 10:56 am
Is there a way to set a project back to the default 'arduino' as opposed to 'cpp' settings ?
I don't understand what you mean by this.

I've upgraded to the latest nightly and it seems to have borked my environment.
In trying to fix the problem my arduino project trys to compile using
Have you read http://eclipse.baeyens.it/how_to.shtml#/n (http://eclipse.baeyens.it/how_to.shtml#/n)


On a different topic, the latest nightly keeps putting a /Resources/ into all of it's paths which I think comes from a much older version of the IDE. I'm using 1.6.1
As I do not have this problem can you be a bit more explicit about this problem? Can you provide a screen shot?

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: lakid on Apr 04, 2015, 12:49 pm
Hi Jante
So, newly created projects would complie fine, existing projects would not.
I managed to fix it buy going into the project properties, under the Arduino properties I changed the Boards.txt to the /sam/boards.txt and then back to the /avr/boards.txt
This prompted my to reselect which arduino, port and processor I was using.
I could then recompile and all of the environment variables were being honoured.

"I don't understand what you mean by this."...sorry I was being very unclear. From what I could see, it seemed that eclipse was trying to compile the .ino file as a c file...it was using the standard system c compiler rather than the one in the Arduino app bundle

"Have you read http://eclipse.baeyens.it/how_to.shtml#/n"..I have...and it looks like what I did above caused things to get back on track. Just clicking 'apply' without toggling the boards.txt setting above didn't help.

"As I do not have this problem can you be a bit more explicit about this problem? Can you provide a screen shot?" This is a project that I haven't 'fixed up' as per above. When I hit the tick icon for compile, I get...

21:47:57 **** Incremental Build of configuration Release for project power_down ****
make all
Building file: ../.ino.cpp
/bin/sh: /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++: No such file or directory
Starting C++ compile
"/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=160 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR     -I"/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino" -I"/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/variants/eightanaloginputs" -I"/Users/lakidd1/Documents/Arduino/libraries/LowPower" -MMD -MP -MF".ino.cpp.d" -MT".ino.cpp.o" -D__IN_ECLIPSE__=1 -x c++ "../.ino.cpp"  -o  ".ino.cpp.o"   -Wall
make: *** [.ino.cpp.o] Error 127

21:47:57 Build Finished (took 65ms)


Now if I look in the app bundle for arduino there is no path that matches the above, the /Resources/ is not needed. But my comments above have fixed it...thanks for your help..a great plugin
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: lakid on Apr 04, 2015, 12:51 pm
Ah scratch that...sorry...if I just click apply (which I was sure I did) on the arduino property pages, it all comes good and project compiles properly !
There's an afternoon wasted..thanks again.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 04, 2015, 02:55 pm
good to see all is fine now.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: leikoilja on Apr 05, 2015, 02:35 pm
Jantje, could you please tell me, what my error might mean? :/
Arduino IDE 1.5.7; night plugin v2.4... "Arduino.h" is included. :/
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 05, 2015, 11:29 pm
@leikoilja
I think you have a wrong library. Does it compile in the arduino ide?
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: leikoilja on Apr 06, 2015, 03:48 pm
@leikoilja
I think you have a wrong library. Does it compile in the arduino ide?
Jantje
Yes, it works fine in arduino ide. This code was written in eclipse, using your plugin from scratch. But then i reinstalled system and now i can not configure it, so it would work :(

i have tried creating new sketch in eclipse, wrote simple led blink program and it works. I should check, maybe something is wrong with additional libraries :/
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: leikoilja on Apr 06, 2015, 05:34 pm
@Jantje,
I have tried removing all attached libraries from my project and importing them again - didn't helped.
The same file opened in Arduino ide 1.5.7 compiles and works fine :/

Also checked and in your eclipse plugin the directory of private libraries is set correctly.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 06, 2015, 06:20 pm
@leikoilja
I think you have a wrong library.
Jantje
As it compiles in the arudino IDE you probably link to a different library. You may also have to set defines.
The console output can help you investigate the problem.
But what you are experiencing is a coding problem not a arduino eclipse plugin problem.

Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: VeitS on Apr 08, 2015, 08:32 pm
Hi,

I want to use Arduino Eclipse for OS X to develop my sketches. But I have issues setting the correct path for Arduino IDE in plug in settings.

I have tried



but no success.

What is the correct path? I have Arduino IDE 1.6.3 installed.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 08, 2015, 08:39 pm
I thought it was /Applications/Arduino
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: VeitS on Apr 08, 2015, 11:29 pm
I thought it was /Applications/Arduino
This also gives me the error "Value must be an existing file"  :smiley-sad:
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 08, 2015, 11:34 pm
do you use the nightly?
If not that is probably the problem.
more info at https://github.com/jantje/arduino-eclipse-plugin/issues/189 (https://github.com/jantje/arduino-eclipse-plugin/issues/189)

Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: VeitS on Apr 10, 2015, 07:59 am
Thanks, that was the issue.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Transistorfips on Apr 20, 2015, 05:46 pm
Hi there,
I have a prob with the Java runtime environment.

My configuration:
Linuxmint 17.1 64-bit
Eclipse with Arduino plugin
Target: Arduino Due via /dev/ttyACM0


Flashing the Arduino Due work fine.
But when I try to use the serial monitor view Java crashes and shutdown Eclipse.
Any idea?

the Error log states:


#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fbf9901c733, pid=2833, tid=140462208886528
#
# JRE version: Java(TM) SE Runtime Environment (7.0_76-b13) (build 1.7.0_76-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.76-b04 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [librxtxSerialx86_64.so+0x7733]  Java_gnu_io_RXTXPort_nativeDrain+0xc3
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

 .
 . a shi(t)pload of register settings
 .

---------------  S Y S T E M  ---------------

OS:jessie/sid

uname:Linux 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64
libc:glibc 2.19 NPTL 2.19
rlimit: STACK 8192k, CORE 0k, NPROC 30603, NOFILE 4096, AS infinity
load average:0,37 0,24 0,29

/proc/meminfo:
MemTotal:        3948356 kB
MemFree:          626512 kB
Buffers:          210156 kB
Cached:           954812 kB
SwapCached:         9000 kB
Active:          1877648 kB
Inactive:        1097944 kB
Active(anon):    1327660 kB
Inactive(anon):   724520 kB
Active(file):     549988 kB
Inactive(file):   373424 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       1996796 kB
SwapFree:        1944292 kB
Dirty:               448 kB
Writeback:             0 kB
AnonPages:       1802584 kB
Mapped:           193692 kB
Shmem:            241428 kB
Slab:             267664 kB
SReclaimable:     238048 kB
SUnreclaim:        29616 kB
KernelStack:        3440 kB
PageTables:        24068 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3970972 kB
Committed_AS:    3838792 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      348672 kB
VmallocChunk:   34359374012 kB
HardwareCorrupted:     0 kB
AnonHugePages:    305152 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:       78348 kB
DirectMap2M:     4018176 kB


CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 42 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, tsc, tscinvbit

/proc/cpuinfo:
processor  : 0
vendor_id  : GenuineIntel
cpu family  : 6
model    : 42
model name  : Intel(R) Pentium(R) CPU B950 @ 2.10GHz
stepping  : 7
microcode  : 0x1a
cpu MHz    : 2100.000
cache size  : 2048 KB
physical id  : 0
siblings  : 2
core id    : 0
cpu cores  : 2
apicid    : 0
initial apicid  : 0
fpu    : yes
fpu_exception  : yes
cpuid level  : 13
wp    : yes
flags    : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer xsave lahf_lm arat epb xsaveopt pln pts dtherm
bogomips  : 4190.82
clflush size  : 64
cache_alignment  : 64
address sizes  : 36 bits physical, 48 bits virtual
power management:

processor  : 1
vendor_id  : GenuineIntel
cpu family  : 6
model    : 42
model name  : Intel(R) Pentium(R) CPU B950 @ 2.10GHz
stepping  : 7
microcode  : 0x1a
cpu MHz    : 2100.000
cache size  : 2048 KB
physical id  : 0
siblings  : 2
core id    : 1
cpu cores  : 2
apicid    : 2
initial apicid  : 2
fpu    : yes
fpu_exception  : yes
cpuid level  : 13
wp    : yes
flags    : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer xsave lahf_lm arat epb xsaveopt pln pts dtherm
bogomips  : 4190.82
clflush size  : 64
cache_alignment  : 64
address sizes  : 36 bits physical, 48 bits virtual
power management:



Memory: 4k page, physical 3948356k(626512k free), swap 1996796k(1944292k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (24.76-b04) for linux-amd64 JRE (1.7.0_76-b13), built on Dec 18 2014 16:58:39 by "java_re" with gcc 4.3.0 20080428 (Red Hat 4.3.0-8)

time: Sun Apr 19 20:08:51 2015
elapsed time: 124277 seconds





Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 20, 2015, 07:46 pm
I'm sorry I have no clue what is wrong.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Skyviper on Apr 29, 2015, 03:47 am
I installed plug-in V2.2 for windows and having trouble compiling. I have seen similar posts for older versions but no real solution to the issue. Here is what I see:
19:10:29 **** Incremental Build of configuration Release for project My_Sketch ****
make all
Building file: ../My_Sketch.cpp
Starting C++ compile
"/bin/avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega168 -DF_CPU=16000000L -DARDUINO=163 -DARDUINO_AVR_DUEMILANOVE -DARDUINO_ARCH_AVR     -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" -MMD -MP -MF"My_Sketch.cpp.d" -MT"My_Sketch.cpp.d" -D__IN_ECLIPSE__=1 -x c++ "../My_Sketch.cpp"  -o  "My_Sketch.cpp.o"
/usr/bin/sh: /bin/avr-g++: No such file or directory
make: *** [My_Sketch.cpp.o] Error 127

19:10:29 Build Finished (took 218ms)

The Eclipse log is complaining about conflicts. See below:

!SESSION 2015-04-28 19:10:12.727 -----------------------------------------------
eclipse.buildId=4.3.0.M20130911-1000
java.version=1.7.0_55
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.cpp.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.cpp.product

!ENTRY org.eclipse.ui 4 4 2015-04-28 19:10:16.799
!MESSAGE Conflicting handlers for it.baeyens.arduino.actions.ArduinoBuildAction: {it.baeyens.arduino.actions.BuildHandler} vs {it.baeyens.arduino.actions.BuildHandler}

!ENTRY org.eclipse.cdt.core 4 0 2015-04-28 19:10:18.765
!MESSAGE Error: Cannot run program "\bin\avr-gcc": Launching failed
!STACK 0
java.io.IOException: Cannot run program "\bin\avr-gcc": Launching failed
   at org.eclipse.cdt.utils.spawner.Spawner.exec(Spawner.java:347)
   at org.eclipse.cdt.utils.spawner.Spawner.<init>(Spawner.java:89)
   at org.eclipse.cdt.utils.spawner.ProcessFactory.exec(ProcessFactory.java:89)
   at org.eclipse.cdt.core.CommandLauncher.execute(CommandLauncher.java:194)
   at org.eclipse.cdt.internal.core.BuildRunnerHelper.build(BuildRunnerHelper.java:238)
   at org.eclipse.cdt.managedbuilder.language.settings.providers.AbstractBuiltinSpecsDetector.runProgramForLanguage(AbstractBuiltinSpecsDetector.java:704)
   at org.eclipse.cdt.managedbuilder.language.settings.providers.AbstractBuiltinSpecsDetector.runForLanguage(AbstractBuiltinSpecsDetector.java:634)
   at org.eclipse.cdt.managedbuilder.language.settings.providers.AbstractBuiltinSpecsDetector.runForEachLanguage(AbstractBuiltinSpecsDetector.java:507)
   at org.eclipse.cdt.managedbuilder.language.settings.providers.AbstractBuiltinSpecsDetector$1.runInWorkspace(AbstractBuiltinSpecsDetector.java:441)
   at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
   at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

!ENTRY org.eclipse.cdt.core 4 0 2015-04-28 19:10:18.858
!MESSAGE Error: Cannot run program "\bin\avr-g++": Launching failed
!STACK 0
java.io.IOException: Cannot run program "\bin\avr-g++": Launching failed
   at org.eclipse.cdt.utils.spawner.Spawner.exec(Spawner.java:347)
   at org.eclipse.cdt.utils.spawner.Spawner.<init>(Spawner.java:89)
   at org.eclipse.cdt.utils.spawner.ProcessFactory.exec(ProcessFactory.java:89)
   at org.eclipse.cdt.core.CommandLauncher.execute(CommandLauncher.java:194)
   at org.eclipse.cdt.internal.core.BuildRunnerHelper.build(BuildRunnerHelper.java:238)
   at org.eclipse.cdt.managedbuilder.language.settings.providers.AbstractBuiltinSpecsDetector.runProgramForLanguage(AbstractBuiltinSpecsDetector.java:704)
   at org.eclipse.cdt.managedbuilder.language.settings.providers.AbstractBuiltinSpecsDetector.runForLanguage(AbstractBuiltinSpecsDetector.java:634)
   at org.eclipse.cdt.managedbuilder.language.settings.providers.AbstractBuiltinSpecsDetector.runForEachLanguage(AbstractBuiltinSpecsDetector.java:507)
   at org.eclipse.cdt.managedbuilder.language.settings.providers.AbstractBuiltinSpecsDetector$1.runInWorkspace(AbstractBuiltinSpecsDetector.java:441)
   at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
   at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

!ENTRY org.eclipse.ui 4 4 2015-04-28 19:10:19.654
!MESSAGE Conflicting handlers for it.baeyens.arduino.actions.ArduinoBuildAction: {it.baeyens.arduino.actions.BuildHandler} vs {it.baeyens.arduino.actions.BuildHandler}

!ENTRY org.eclipse.egit.ui 2 0 2015-04-28 19:10:20.122
!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level
Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory.
The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in
this system level configuration. The Git installation location can be configured on the
Team > Git > Configuration preference page's 'System Settings' tab.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.

!ENTRY org.eclipse.egit.ui 2 0 2015-04-28 19:10:20.122
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Yourarmsoff'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.

!ENTRY org.eclipse.ui 4 4 2015-04-28 19:10:24.256
!MESSAGE Conflicting handlers for it.baeyens.arduino.actions.ArduinoBuildAction: {it.baeyens.arduino.actions.BuildHandler@1765f2b} vs {it.baeyens.arduino.actions.BuildHandler}

!ENTRY org.eclipse.ui 4 4 2015-04-28 19:10:27.563
!MESSAGE Conflicting handlers for it.baeyens.arduino.actions.ArduinoBuildAction: {it.baeyens.arduino.actions.BuildHandler@1765f2b} vs {it.baeyens.arduino.actions.BuildHandler}

!ENTRY org.eclipse.ui 4 4 2015-04-28 19:17:36.611
!MESSAGE Conflicting handlers for it.baeyens.arduino.actions.ArduinoBuildAction: {it.baeyens.arduino.actions.BuildHandler@1765f2b} vs {it.baeyens.arduino.actions.BuildHandler}

!ENTRY org.eclipse.ui 4 4 2015-04-28 19:17:38.795
!MESSAGE Conflicting handlers for it.baeyens.arduino.actions.ArduinoBuildAction: {it.baeyens.arduino.actions.BuildHandler@1765f2b} vs {it.baeyens.arduino.actions.BuildHandler}

!ENTRY org.eclipse.ui 4 4 2015-04-28 19:17:38.841
!MESSAGE Conflicting handlers for it.baeyens.arduino.actions.ArduinoBuildAction: {it.baeyens.arduino.actions.BuildHandler@1765f2b} vs {it.baeyens.arduino.actions.BuildHandler}

!ENTRY org.eclipse.ui 4 4 2015-04-28 19:17:39.855
!MESSAGE Conflicting handlers for it.baeyens.arduino.actions.ArduinoBuildAction: {it.baeyens.arduino.actions.BuildHandler@1765f2b} vs {it.baeyens.arduino.actions.BuildHandler}

!ENTRY org.eclipse.ui 4 4 2015-04-28 19:17:40.058
!MESSAGE Conflicting handlers for it.baeyens.arduino.actions.ArduinoBuildAction: {it.baeyens.arduino.actions.BuildHandler@1765f2b} vs {it.baeyens.arduino.actions.BuildHandler}

Can you tell me what is causing this issue?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 29, 2015, 11:40 am
@Skyviper
Please don't cross-post.

Arduio IDE 1.6.3 and 1.6.2 are not supported. See https://github.com/arduino/Arduino/issues/2982 (https://github.com/arduino/Arduino/issues/2982) for why.

Please use 1.6.1

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Skyviper on Apr 29, 2015, 07:28 pm
Sorry Jantje,
Confusing on how or where to get issues resolved, even after going to your contact us page. This issue shows up on many different threads on this website and the FAQ area is a bit lite on solutions. I think it might be more effective for everyone to post problem and solution for frequently asked question from the threads to the FAQ website. Not sure what you mean by PM'ing you.
Using IDE version 1.6.1 did work and I was able to use it eclipse (Kepler) with spaces in the path name.

Thanks,
Tony
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 29, 2015, 07:44 pm
The nightly build warns about these (and many other) versions.
I should make a new release but donations have not yet given me an intensive to do so.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Skyviper on May 12, 2015, 03:48 am
I have the eclipse plug-in version 2.2 installed and it compiles but I am unable to upload the compiled sketch to my DUE board. I see the  USB LEDs light momentary but not even close to the same duration as it does when I'm using the Arduino IDE. Here is what I see when I attempt to upload:

Starting upload
using arduino loader


Launching C:/Program Files (x86)/Arduino/hardware/tools/bossac.exe --port=COM11 -U false -e -w -v -b C:\workspace\Example_blink/Release/Example_blink.bin -R
Output:
Erase flash

No such file or directory
C:/Program Files (x86)/Arduino/hardware/tools/bossac.exe finished
upload done

Eclipse is generating a Example_blink.elf file

Can you help with this issue?

Thanks,

Tony
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on May 12, 2015, 12:50 pm
Lots of fixes have been done to the upload since V2.2
Please upgrade to the nightly.
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: RTTST on May 15, 2015, 09:28 pm
Can someone help me get Eclispe (Luna), Fedora (21), avr-gcc and the Arduino IDE (1.6.4) libraries working?  I have followed the Playground posted instructions quite closely, but I am getting nowhere.  I have reinstalled all of the above at least three times now to no avail.  Likewise, I am on my fifth walk through of the Playground instructions.  There is always some dumb make:*** error or an undefined reference when it comes to building the Second Project with a Basic example like Blink.  The static library and First Project work fine. 

Does the AVR Plugin with Eclipse really still work????  Or, has everyone given up on it as well and moved to the Baeyens version?

The one successful time I was able to get everything to compile it did everything except build the .hex file to upload to the device.  I think I blitzed the include folders out of frustration by copying all the libraries into it.

Likewise, I know I have avrdude working and uploading processor information properly through USB.  I am not sure that it is related, but it seems every step is followed, but something fundamental is being left out of the instructions.  Please read over the instructions and let me know if you see a "gotcha" anywhere within:

http://playground.arduino.cc/code/eclipse

Thank you, in advance.

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on May 15, 2015, 11:04 pm
Setting up with the AVR Plugin is a pain. That is why I made the plugin.
I know dough Schaefer is working on something basic directly from cdt. I'm not sure how this will relate to my plugin.
As this is a thread on my plugin I fear the most common answer here is "moved to the Baeyens version"
Note that from V2 there arduino eclipse plugin is no longer a version of AVR plugin.

Best regards
Jantje
Title: [Eclips Luna]+[Skech 1.5.5r]+[Arduino Eclipse version 2] attachinterrupt() error
Post by: kshok1 on May 17, 2015, 04:34 am

I have tried to compile in the [Eclipse Luna] and using [Arduino Eclipse version V2]
and  [CAN_BUS_Shield > receive_interrupt.ino] .
(CAN_BUS_Shield liblary and sample code here : https://github.com/Seeed-Studio/CAN_BUS_Shield)

but, results in error msg !! :

'MCP2515_ISR' was not declared in this scope receive_interrupt.cpp /receive_interrupt line 38 C/C++ Problem

Here is capture :
(http://smartsheet.co.kr/web/20150515_eclipseErr.jpg)

Thank you very much for your answers  :smiley-lol:
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on May 17, 2015, 10:56 am
put warnings on "all" and look at the console output.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rockwallaby on May 17, 2015, 04:14 pm
kshok1, you are cross posting, having created the same post in this same forum section, and like I mentioned to you, the image is useless as it is unreadable.

Your problem has nothing to do with the plugin of Jan, it is an error in the way you code.

Please do as I suggested in your other cross post and present your code as well as your errors, not a screen shot.
____
Paul
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: FredericG on May 31, 2015, 10:43 pm
I have installed the stable package V2.3_win32.2014-07-12_02-06-35 and generated a sketch called "testing".

The generated testing.ino contains a setup() and a loop(). The generated .ino.cpp also contains a setup() and loop() and includes testing.ino The compiler complains both functions are defined twice.


What am I doing wrong?

Thanks!


testing.ino:

//The setup function is called once at startup of the sketch
void setup()
{
// Add your initialization code here
}

// The loop function is called in an endless loop
void loop()
{
//Add your repeated code here
}



.ino.cpp:

//This is a automatic generated file
//Please do not modify this file
//If you touch this file your change will be overwritten during the next build
//This file has been generated on 2015-05-31 22:39:03

#include "Arduino.h"
void setup()
 {
  };
void loop()
 {
  };


#include "testing.ino"
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 01, 2015, 12:34 am
This is a bug related to windows file format.
https://github.com/jantje/arduino-eclipse-plugin/issues/191 (https://github.com/jantje/arduino-eclipse-plugin/issues/191)
to work around it you have following options
1) use linux
2) upgrade the arduino eclipse plugin to the nightly http://eclipse.baeyens.it/how_to.shtml#/n (http://eclipse.baeyens.it/how_to.shtml#/n)
3) go to preferences->general->workspace and set the new text file line delimiter to unix. (note that will not fix your current project)

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rockwallaby on Jun 01, 2015, 01:47 am
First, welcome to the forum FredericG

What about if you do the following;

In left side pane, delete testing.ino and testing.h if they exist.

Remove the #include "testing.ino" from the testing.ino.cpp file.
Then rename testing.ino.cpp to testing.cpp
Rename also testing.ino.h to testing.h

In left side pane, right click, select 'Clean'
Then select 'Build'

I don't use Microsoft anything, so I can't test the above, but from what I understand, the above should be a work around for your exising project.

But I like Jantje's first choice, use Linux, and I would add to that OSX :)
____
Paul
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: jsaven on Jun 01, 2015, 02:22 pm
Hi, I just wanted to report an issue with the V2 plugin download. The links given for installing through eclipse (Help->Install New Software...) seem to be broken - it just reports "There are no categorized items".


P.S. Thanks Jantje for all the hard work!
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: FredericG on Jun 01, 2015, 02:34 pm
Thanks for the help guys! More solutions than problems :)

I opted to install the nightly build. Compiling works now :)

Thanks again
Frederic
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 01, 2015, 02:47 pm
@jsaven
Check step 9 of the installation instructions here http://baeyens.it/eclipse/how_to.shtml#/c (http://baeyens.it/eclipse/how_to.shtml#/c)

@FredericG
Txs for the feedback

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: jsaven on Jun 02, 2015, 01:11 am
Thanks for the quick response Jantje. I thought I had followed those instructions, but obviously I'd missed step 9!
Working fine now. Thanks again.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: FredericG on Jun 02, 2015, 08:51 am
I have another question: is there a way to disable the verification (reading back) of the flash while uploading a sketch? On the project i am working now writing takes 20s and reading back 15s.

Thanks!
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 02, 2015, 12:33 pm
I have another question: is there a way to disable the verification (reading back) of the flash while uploading a sketch? On the project i am working now writing takes 20s and reading back 15s.

Thanks!
This is not a arduino eclipse related question.
but ...
If you know how to modify the avr-dude command you can modify the platform.txt (or boards.txt if you want to add a board that does not do the verification) file.
For the arduino IDE to take this in effect you need to restart the ide.
For the plugin to take this in effect you need to go to project properties->arduino and select apply.

Best regards
Jantje

PS thanks for getting me drunk ;-)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: FredericG on Jun 03, 2015, 09:32 am
Quote
This is not a arduino eclipse related question.
but ...
Sorry, was not aware of this, thanks for the pointer

Quote
PS thanks for getting me drunk ;-)
Gezondheid  :D
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: FredericG on Jun 03, 2015, 09:50 pm
if you know how to modify the avr-dude command you can modify the platform.txt (or boards.txt if you want to add a board that does not do the verification) file.
it seems to be an addtional -V

tools.avrdude.upload.pattern="{cmd.path}" "-C{config.path}" {upload.verbose} -p{build.mcu} -c{upload.protocol} -P{serial.port} -b{upload.speed} -V -D "-U ....

Thanks!
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 04, 2015, 12:26 pm
Thanks!
You are welcome
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: stuartw on Jun 09, 2015, 12:10 pm
I wonder if any thought has been put into supporting external Arduino projects? this would be a fantastic addition if possible.

Specifically the stm32duino work being done by Roger Clark.
http://stm32duino.com

This allows building of Arduino sketches on a range of stm32fxxx boards, and is very very useful.
One of the major challenges with it is the need for debugging, which of course is next to non existant in the normal Arduino systems.

In eclipse the debugging is much easier (using segger j-link, ST-Link, etc hardware probes), however having a nice way to manage the Arduino sketches is missing..

Together these two projects would be amazing.

Roger has done a huge amount of work integrating seamlessly with Arduino 1.6.4+, which works well, however does not seem to be picked up by this project yet, for whatever reason. Simply put the new hardware that is included does not show as available, which is not really a big surprise.

Any thoughts on looking at this perhaps?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 09, 2015, 12:32 pm
hi stuartw
I don't really understand what you are trying to say.
Currently Arduino 1.6.2 till 1.6.4 is unsupported due to issue https://github.com/arduino/Arduino/issues/2982#issuecomment-110252640 (https://github.com/arduino/Arduino/issues/2982#issuecomment-110252640)
As you can see from the discussion there I'm actively working on it.
Basically arduino made another environment variable but now it can not be "defaulted to a fixed value" which makes I'm dependent on arduino core team to get the values.

As to debugging.
I'm using debugging with my plugin for arduino projects. I made 2 posts on my blog about this. http://blog.baeyens.it/#post19 (http://blog.baeyens.it/#post19)
I use local debugging but there is a possibility to debug remotely if you have the hardware. You can read this in my faq here http://eclipse.baeyens.it/faq.shtml#/general (http://eclipse.baeyens.it/faq.shtml#/general)
The zero coming out in july will have the hardware on board to do debugging and that is one of the main reasons for me to try to keep this plugin going.

Note that Arduino IDE uses a new hardware location with the boards manager (and a new file structure) and this is the reason I had to reopen issue 2982. So I'm working on it. After all the zero will be there to.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Headroom on Jun 11, 2015, 01:20 am
Given that the issue was closed today, how soon can we expect Arduino 1.6.4 to be supported ?

Thanks for your continued work on the Plugin. It has been an absolute pleasure to work with over the last 2 years and due to Teensyduinos compatibility with Arduino 1.6.x now installation for the Teensy boards
is also dead simple.
The only downside on Windows machines is that you need to install a make utility ( preferably fromArduino 1.5.6) But for Linux and Mac it's straight forward.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 11, 2015, 02:10 pm
@Headroom
Arduino IDE 1.6.4 will never be supported. As you can read from the github issue the arduino core team changed the command line interface in such a way that I can extract the needed information from the IDE.  :)

Therefore we will have to wait for Arduino IDE 1.6.5 to be published or use the nightly (which I'm currently using for implementation)
Normally however teensy boards should work. (Unless Paul released a new teensyduino that uses the new environment vars)

I'm not setting a target date for finishing (to avoid stress on my side) but it is on the top of my todo list.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Ewoodster on Jun 12, 2015, 09:41 am
Hello,

my apologies first for not reading through every page of this 43 page long thread, but by using the search function I couldn't find the answer to my question. Maybe the answer is burried somewhere in here, but it definitively is very hard to find.

I want to develope code for Arduino Due in Eclipse Arduino IDE.
My current setup is Arduino IDE 1.6.4 (whis is not supported, I know) with the additional SAM3X plugin for adding Due support.
Yesterday I managed to install the latest stable build of with the Arduino Plugin and set it up.

Now when I create a new project and chose the Board Type, it basically shows every Arduino available but the Due. Since my project totally relies on the speed of the Due, is there any chance to include this board in a convenient way?

If I go back to an older Version of the Arduino IDE, I still guess that the Due will not be included in the board list?!?

Thank you very much in advance.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 12, 2015, 11:41 am
With arduino ide 1.6.1 you should see the due after selecting the correct boards.txt file
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Ewoodster on Jun 12, 2015, 08:28 pm
Thank you, now I managed to take that hurdle. But boy oh boy, it is a way bigger task to get this tool running than debugging complex code with the Arduino IDE itself.

So now I got the Due board in the board list and can upload code to the DUE, but I am facing the next issue...the serial monitor is not giving me anything to chose from. I can't pick COM port, BAUD rate or do anything.  :smiley-confuse:
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 12, 2015, 09:30 pm
Thank you, now I managed to take that hurdle. But boy oh boy, it is a way bigger task to get this tool running than debugging complex code with the Arduino IDE itself.
Can you explain this? Most people set it up in less than 15 minutes the first time. If you know how it is less than a minute.
I don't even kow how to do debugging in Arduio IDE.
So things don't add up for me.

So now I got the Due board in the board list and can upload code to the DUE, but I am facing the next issue...the serial monitor is not giving me anything to chose from. I can't pick COM port, BAUD rate or do anything.  :smiley-confuse:
Could you pick the com port when selecting the board?
I'd appreciate a hint on the OS you are using.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 12, 2015, 09:43 pm
I pushed the first shot for support for the boardsmanager to the github repository.
People willing to test with the nightly build (from tomorrow or later) and the nightly build of arduino IDE: please report success or failure at https://github.com/jantje/arduino-eclipse-plugin/issues/272 (https://github.com/jantje/arduino-eclipse-plugin/issues/272)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Ewoodster on Jun 13, 2015, 08:43 am
Can you explain this? Most people set it up in less than 15 minutes the first time. If you know how it is less than a minute.
I don't even kow how to do debugging in Arduio IDE.
So things don't add up for me.
Hi Jantje,
I have both Mac and Win Computers, but right now I use my MacBook to run Eclipse. My biggest issue is, that 90 % of the tutorials are very old (2011 and 2012) and a lot has changed in the meantime. The second issue is that the instructions say something like: "copy file X from usr/bin to ...." but they don't mention where usr/bin is located. I figured everything out myself, but it took two whole evenings to do so.

Debugging in Arduino IDE is only possible with serial communication. I just send all sorts of information to the serial monitor to see what is going on in my code. It is very tedious and the reason why I want to switch to Eclipse to have a lot more powerful tool at hand.


Could you pick the com port when selecting the board?
I'd appreciate a hint on the OS you are using.

Best regards
Jantje
As mentioned above I run Eclipse on a Mac. And yes, it shows the COM port: /dev/tty.usbmodemfd121. Programming works fine and the serial monitor of the Arduino IDE works on the same COM port.

In Eclipse however, I only see three empty bars, two of which are drop down menues with nothing inside.

Thank you so much for your help so far :)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 13, 2015, 11:42 am
I have both Mac and Win Computers, but right now I use my MacBook to run Eclipse. My biggest issue is, that 90 % of the tutorials are very old (2011 and 2012) and a lot has changed in the meantime. The second issue is that the instructions say something like: "copy file X from usr/bin to ...." but they don't mention where usr/bin is located. I figured everything out myself, but it took two whole evenings to do so.
Yes that is a pain. On the one hand I'm pleased people write about the plugin but on the other hand I notice they do not update their sites (except for Headroom who I'm referring to from my website as he uses mac and is better in documentation than I am http://trippylighting.com/teensy-arduino-ect/arduino-eclipse-plugin/ (http://trippylighting.com/teensy-arduino-ect/arduino-eclipse-plugin/).
My website is/(should be) 100% up to date. http://eclipse.baeyens.it/ (http://eclipse.baeyens.it/)
as to "usr/bin" my mac installation specific web page http://eclipse.baeyens.it/installAdvice.shtml (http://eclipse.baeyens.it/installAdvice.shtml) (click mac comments on the right) says " /usr/bin" which is 100% deterministic on mac an linux. Not sure where you found "usr/bin"

As mentioned above I run Eclipse on a Mac. And yes, it shows the COM port: /dev/tty.usbmodemfd121. Programming works fine and the serial monitor of the Arduino IDE works on the same COM port.

In Eclipse however, I only see three empty bars, two of which are drop down menus with nothing inside.
I'm wondering: Can you see somewhere in the serial monitor following text?
Quote
Currently there are no serial ports registered - please use the + button to add a port to the monitor.
If not please provide a screen shot.

Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 14, 2015, 01:00 pm
I'm looking for testers for the Arduino boards manager fix. Read more at http://blog.baeyens.it/#post21 (http://blog.baeyens.it/#post21)
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: lakid on Jun 17, 2015, 06:15 am
So would this mean that if we had esp8266 support installed in the IDE we could use it from the eclipse IDE ? That would be so very cool !
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 17, 2015, 06:09 pm
@lakid
Test and we'll see. :-D
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: eecharlie on Jun 21, 2015, 06:15 pm
A question from someone with minimal eclipse familiarity after a few hours of trying to compile controlino.cpp using the Eclipse project definition from GitHub. I'm using the Eclipse Product nightly build 2015-06-21 (after trying a few other variations) with Arduino IDE 1.6.1 on Mac OSX 10.10.3

The error I'm getting when I try to build is that '__guard' was not declared in this scope
for new.cpp. In a total hack without knowing what I'm doing (unfamiliar with all __... keywords), I pasted into new.h:

__extension__ typedef int __guard __attribute__((mode(__DI__)));

And then found a new error, that "compiler.h" did not exist as referenced by debug.c

My intuition is that something basic involving build paths is wrong. Any hints?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 21, 2015, 08:01 pm
@eecharlie
a link to the github repository would be nice
jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: keesbakker on Jun 24, 2015, 11:17 pm
How can I add my own board config to the Eclipse Arduino IDE?


Background.
In the preferences of the new Arduino IDE (1.6.2+) you can set an URL for additional boards. It is a JSON file with some details and a URL to the actual tar file. This tar file is downloaded and installed in $HOME/.arduino15/packages

Right now the plugin only sees the "arduino" subdirectory in $HOME/.arduino15/packages. But it should look in all subdirectories. The boards from, for example, Adafruit and SparkFun are not visible. And neither are the boards from us (SODAQ).

Any hint is appreciated.

-- Kees
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 25, 2015, 12:06 am
use the nightly build which is 1.6.5 compatible but still in debug.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: keesbakker on Jun 25, 2015, 10:44 pm
Well, I should have mentioned that I _am_ using the nightly build (linux64.2015-06-23_02-06-05.tar.gz).

I see that the plugin uses the --board and --get-pref options to query Arduino about the board. But how does it know what boards exist?

BTW Running this from the command line gives output (no error).
  /usr/local/arduino-1.6.5/arduino --board SODAQ:avr:sodaq_mbili --get-pref

In my Arduino preferences.txt I have this additional URL for the boards manager:
  boardsmanager.additional.urls=http://downloads.sodaq.net/package_sodaq_index.json
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 27, 2015, 01:16 am
didn't test it but should be fixed
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: jsaven on Jun 27, 2015, 01:34 pm
Hi,
Just wanted to share a problem and workaround for an issue I had using the plugin on Mac:
I installed the plugin and accidentally selected the Arduino IDE 1.6.4 (which I'd forgotten was not supported).
I then created a new project but the build couldn't find the avr-g++ command because the Arduino.app path was missing.
I changed the plugin settings to use Arduino IDE 1.6.1 but the old paths were still being used to Arduino IDE 1.6.4 in the org.eclipse.cdt.core.prefs file (which I believe is used to generate the makefile).
To fix this and get the paths sorted out I opened the .settings/org.eclipse.cdt.core.prefs file and manually edited the paths to point to the correct Arduino version.
I then deleted the makefile and subdir.mk files and rebuilt the project in eclipse and it compiled successfully.

To be honest I only partially understand what I was doing here, so I may have done something stupid - is there a better way to force a project to regenerate its build file with the correct paths?

As always, thanks for all the hard work.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 27, 2015, 04:34 pm
@jsaven
Which version of the plugin did you use?
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: keesbakker on Jun 27, 2015, 09:57 pm
@jantje Thanks. That seems to be working.

New question.
In ArduinoHelpers.java, line 521. Why are ENV_KEY_ARCHITECTURE and ENV_KEY_BUILD_ARCH stored in uppercase?

My compiler options are show shown as:
Code: [Select]
-I"/usr/local/arduino-1.6.5/hardware/arduino/AVR/cores/arduino" -I"/home/kees/.arduino15/packages/SODAQ/hardware/avr/1.0.0/variants/mbili"

Notice the "AVR" instead of the expected "avr"
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 28, 2015, 12:39 am
@keesbakker
I do not have a architecture capitalisation problem.
Can you explain what you do and what you see as a problem.
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: jsaven on Jun 28, 2015, 01:10 am
@Jantje, I'm using a fresh install of the nightly build in Juno.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: keesbakker on Jun 28, 2015, 02:13 pm
@jantje

Let me first explain where I'm coming from and what my setup is.


I saw your blog about the support of the boards manager, so I thought it was time to try your plugin. I started with the nightly build. And then git-cloned the complete source. I followed you setup instructions. I run Eclipse with the plugin from the fresh build, and from the debugger. Not being a Java developer, I barely manage to find my way through.

We (SODAQ) have our own board configuration and in the latest Arduino IDE (1.6.5) it all shows up nicely.

But in the ArduinoEclipseIDE (i.e. your plugin) I haven't yet succeeded to use our own boards.txt. With your latest fix I can now choose one of the SODAQ boards. But I see two problems.


If I select one of the standard Arduino boards, the options are:
-I"/usr/local/arduino-1.6.5/hardware/arduino/avr/cores/arduino" -I"/usr/local/arduino-1.6.5/hardware/arduino/avr/variants/standard"

If I select one of our own boards, the options are:
-I"/usr/local/arduino-1.6.5/hardware/arduino/AVR/cores/arduino" -I"/home/kees/.arduino15/packages/SODAQ/hardware/avr/1.0.0/variants/mbili"
And in the command shell from where I started Eclipse (build_then_launch.sh) it reports:
Unable to find full path for "-D__IN_ECLIPSE__=1"

To reproduce all this it should be sufficient to start Arduino IDE, in preferences add http://downloads.sodaq.net/package_sodaq_index.json in Additional Boards Manager, then Tools -> Boards Manager, select SODAQ and "install". Now you have ~/.arduino15/packages/SODAQ

Thanks for reading all this :-)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: kolban on Jun 28, 2015, 07:58 pm
I am new to the Eclipse plugin and got it running with Eclipse Mars, Arduino IDE 1.6.5 and Windows 7.  As I perform tasks, I write them down.  Here is a link to my notes on what I had to do to get the solution going.

http://neilkolban.com/tech/building-arduino-apps-in-eclipse/ (http://neilkolban.com/tech/building-arduino-apps-in-eclipse/)

Neil
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: keesbakker on Jun 28, 2015, 09:13 pm
@jantje The following makes a difference. In my boards.txt I have:

sodaq_mbili.build.core=arduino:arduino

With that the plugin goes to the code at line 436 in ArduinoHelpers.java, and then you'll get the "AVR" instead of the "avr".

We have this colon syntax because I was reading Arduino-IDE-1.5-3rd-party-Hardware-specification (https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5-3rd-party-Hardware-specification). At the end it talks about how to
Quote
use the "arduino" core from the "arduino" vendor
. And notice the
Quote
Using this syntax allow us to reduce the minimum set of files needed to define a new "hardware" to just the boards.txt file.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 28, 2015, 10:16 pm
have a Linux environment, and I need an IDE which is more professional than Arduino IDE
Similar to my situation.

took over maintenance of the AVR Eclipse plugin (without indepth knowledge of Java or plugins, but it turned out to be a cumbersome environment
Do you know I started from the avr eclipse plugin. I have been talking to thomas (if i recall the name correctly) theavr eclipse plugin developer in those days.
Then I decided that it was easier to drop the avr eclipse plugin. The argument was not the quality of the code but there are plenty of features in the avr eclipse plugin simply not needed for Arduino development.
The "without avr eclipse plugin included" version is V2 and can be run next to avr eclipse plugin. This makes you have kind of best of both worlds.

developer of the SODAQ libraries and board configs
I had a look at the SODAQ boards. Looks nice. I don't have any.

professional embedded software developer (35+ year, an old fart so to speak :-)
rofl. I beat you here.... by far.

Anyways arduino:arduino is not supported by the plugin see this github issue https://github.com/jantje/arduino-eclipse-plugin/issues/158 (https://github.com/jantje/arduino-eclipse-plugin/issues/158)

For something else and with the change for the boardsmanager I considered to implement it but it turned out that even with the changes for the boards manager, it is not that easy. So I stopped searched for an easier way found it and deleted the code.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 28, 2015, 10:18 pm
@niel
You documented how to make 1.6.4 compatible with the plugin.  :)
Just wondering ... why didn't you use the nightly?
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 28, 2015, 10:24 pm
@Jantje, I'm using a fresh install of the nightly build in Juno.
The latest nightly was reported as working on the mac.

Just wanted to share a problem and workaround for an issue I had using the plugin on Mac:
I installed the plugin and accidentally selected the Arduino IDE 1.6.4 (which I'd forgotten was not supported).
I'm nit sure how you can forget 1.6.4 is not supported as the plugin tells you so  :o

I then created a new project but the build couldn't find the avr-g++ command because the Arduino.app path was missing.
This was an issue but has been fixed. Are you sure you have the latest version of the nightly?

I changed the plugin settings to use Arduino IDE 1.6.1 but the old paths were still being used to Arduino IDE 1.6.4 in the org.eclipse.cdt.core.prefs file (which I believe is used to generate the makefile).
To fix this and get the paths .....
You need to go into project properties->arduino and select apply. This should fix this.
As described here http://eclipse.baeyens.it/how_to.shtml#/n (http://eclipse.baeyens.it/how_to.shtml#/n)

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: kolban on Jun 28, 2015, 11:09 pm
@Jantje,
I'm a newbie but I wanted to get the thing running on the new Eclipse Mars.  Do the "nightlys" come as plugins into a bare Eclipse shell?  Is there a tutorial for getting them going?

I think I used the latest version of the plugins that were able to be found at the Eclipse repository at:

http://www.baeyens.it/eclipse/stable-win.html

Is there a repository URL for nightlys?

My primary goal is not to learn Eclipse plugin development but rather to exploit the power of the Eclipse framework.

Your project is awesome and my goal was to push the ball forward in what ever small way I could ... hence the time spent on the docs for the benefit of others.  If there are improvements I can make to the docs or web sites ... I'll be delighted to continue to donate time to that end.  Just let me know what I might be able to contribute and I'll jump right in.

Neil
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 29, 2015, 12:06 am
@neil
There is a build engine that builds the product and the plugin every night. if there has been a change the nightly update site and the product page get updated and the website. For linux the info of the nightly is here http://eclipse.baeyens.it/nightly-linux.html (http://eclipse.baeyens.it/nightly-linux.html)

Please read through the web site. There is already plenty of information but there is always room for more or for better.

Note that the website itself is also in the github repository. So improvements can be brought by simple pull requests.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: jsaven on Jun 29, 2015, 02:47 am
@Jantje
Quote
I'm nit sure how you can forget 1.6.4 is not supported as the plugin tells you so
I've installed the plugin a few times now and, well, I've become a little lazy in ready dialog boxes... I know, my fault.

Quote
This was an issue but has been fixed. Are you sure you have the latest version of the nightly?
This is the first time I've installed it in Juno, and I used this URL:
Code: [Select]
http://www.baeyens.it/eclipse/nightly.

Quote
You need to go into project properties->arduino and select apply. This should fix this.
Thanks for pointing that out, I'll be more careful to make sure I do that next time.

Everything seems to be working fine now anyway.
Thanks heaps.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: keesbakker on Jun 29, 2015, 11:23 pm
Anyways arduino:arduino is not supported by the plugin see this github issue https://github.com/jantje/arduino-eclipse-plugin/issues/158 (https://github.com/jantje/arduino-eclipse-plugin/issues/158)

For something else and with the change for the boardsmanager I considered to implement it but it turned out that even with the changes for the boards manager, it is not that easy. So I stopped searched for an easier way found it and deleted the code.
Ah, thanks for point to issue #158.

Hmm, too bad that you have given up on it, because it makes the plugin unusable for me :-(
Well, OK, I can find a work-around for myself. But it will be a hard to explain work-around for other SODAQ users. And Sparkfun, and Adafruit, etc.

But hey, this is open source. If you want something you can do it yourself. :-) The only(!) problem is to find time.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: DerTomm on Jul 19, 2015, 09:47 pm
Hi Jantje,

I am using the latest Win64 nightly together with Arduino 1.6.5. Everything working fine so far except for one thing: If I am compiling against a standard board (like Uno, Nano, etc.) the program gets compiled, linked and uploaded  without problems.
As soon as I choose a non-standard board from a custom boards.txt (a breadboard Arduino in my case) the uploading does not work. This is the console output:

Starting upload
using arduino loader
Starting reset using DTR toggle process
Flushing buffer
Toggling DTR
Continuing to use COM7
Ending reset using DTR toggle process


Launching 
Output:
upload failed

It seems as EclipseArduino does not know where to look for avrdude...
Is uploading for non-standard boards supported by the plugin?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 19, 2015, 10:52 pm
Is the board is using the arduino:arduino reference for upload?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: DerTomm on Jul 20, 2015, 07:25 pm
Is the board is using the arduino:arduino reference for upload?
These are the current settings in the boards.txt:

Code: [Select]


atmega168bb.name=ATmega168P on Breadboard, 8MHz internal clock (3,3V)

atmega168bb.upload.tool=avrdude
atmega168bb.upload.protocol=arduino
atmega168bb.upload.maximum_size=14336
atmega168bb.upload.speed=19200

atmega168bb.bootloader.tool=avrdude
atmega168bb.bootloader.low_fuses=0xE2
atmega168bb.bootloader.high_fuses=0xDD
atmega168bb.bootloader.extended_fuses=0x00
atmega168bb.bootloader.path=arduino:atmega
atmega168bb.bootloader.file=ATmegaBOOT_168_pro_8MHz.hex
atmega168bb.bootloader.unlock_bits=0x3F
atmega168bb.bootloader.lock_bits=0x0F

atmega168bb.build.mcu=atmega168
atmega168bb.build.f_cpu=8000000L
atmega168bb.build.core=arduino
atmega168bb.build.variant=standard


The described behaviour stays also if I add "arduino:" prefix to upload tool and protocol.

As soon as I transfer these entries from C:\Users\$user\Documents\Arduino\hardware\breadboard\avr\boards.txt into the Arduino IDE boards.txt the upload works without any problems. Compiling on the other hand also works with my custom boards.txt.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 21, 2015, 01:57 pm
Quote
myboard.upload.tool=arduino:avrdude
myboard.bootloader.tool=arduino:avrdude
Are not (yet) supported by the arduino eclipse plugin.

As soon as I transfer these entries from C:\Users\$user\Documents\Arduino\hardware\breadboard\avr\boards.txt into the Arduino IDE boards.txt the upload works without any problems. Compiling on the other hand also works with my custom boards.txt.

Not sure I understand this correctly. I assume that if you merge your "custom boards.txt" with the "arduino avr delivered boards.txt" the upload works fine.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: DerTomm on Jul 21, 2015, 02:55 pm
Are not (yet) supported by the arduino eclipse plugin.
Good to know.

Not sure I understand this correctly. I assume that if you merge your "custom boards.txt" with the "arduino avr delivered boards.txt" the upload works fine.
Correct. That's my way. Just appending the settings above into default delivered boards.txt and compiling and uploading works.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 21, 2015, 03:45 pm
Correct. That's my way. Just appending the settings above into default delivered boards.txt and compiling and uploading works.
does core reference arduino:arduino ?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: DerTomm on Jul 21, 2015, 05:23 pm
Nope
does core reference arduino:arduino ?
Nope:

atmega168bb.build.mcu=atmega168
atmega168bb.build.f_cpu=8000000L
atmega168bb.build.core=arduino
atmega168bb.build.variant=standard

Obviously it also works without the arduino: prefix...
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 21, 2015, 05:56 pm
Then you must have a platform.txt and someting is incompatible.
This blog post should get you to understand a bit what is wrong. http://blog.baeyens.it/#post22
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: DerTomm on Jul 21, 2015, 06:02 pm
Then you must have a platform.txt and someting is incompatible.
This blog post should get you to understand a bit what is wrong. http://blog.baeyens.it/#post22
Yes - there is the default platform.txt which comes with the Arduino IDE.

What I do not understand: Why is something is incompatible if it works? The only thing I did is modifying some Arduino UNO entries to get the "Breadboard Arduino" running with some modified fuse settings and similar stuff...
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 21, 2015, 06:15 pm
Yes - there is the default platform.txt which comes with the Arduino IDE.

What I do not understand: Why is something is incompatible if it works? The only thing I did is modifying some Arduino UNO entries to get the "Breadboard Arduino" running with some modified fuse settings and similar stuff...
Well you say the upload doesn't work. So something is incompatible. I have no clue what exactly it is.
The process to go through is look at the environment settings->see what is wrong->look at platform.txt and boards.txt->understand why->fix
This is why I referred to the blogpost http://blog.baeyens.it/#post22 (http://blog.baeyens.it/#post22) explaining the parsing process.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: DerTomm on Jul 21, 2015, 06:45 pm
I guess I know why the upload does not work in the C:\users\$user\Documents\Arduino\hardware\breadboard folder.
The contained platform.txt (which I took over from some example) does only contain these two lines:

Code: [Select]

name=ATmega and ATtiny on breadboard
version=1.6.0
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 21, 2015, 07:04 pm
How could it ever compile fine with this platform.txt?  :o
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: DerTomm on Jul 21, 2015, 07:51 pm
Good question :-)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: clearwa on Jul 23, 2015, 06:30 pm
I have a number of projects developed under the Arduino plugin.  Some were uploaded sketches, others were developed entirely in eclipse.  I am currently pointing at the Arduino 1.6.1 software release, I want to upgrade to 1.6.5.  If I make the changes in the preferences pane (1.6.1->1.6.5) my projects seem to loose any notion of where the compiler and other tools are.  If I switch back to 1.6.1 the situation persists.  Is this supposed to work?  How can one switch extant projects to a new arduino software release?

Thanx,
Allan
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 23, 2015, 10:07 pm
@clearwa
you need the nightly build for 1.6.5 to work
How to upgrade/downgrade can be found here http://eclipse.baeyens.it/how_to.shtml#/n (http://eclipse.baeyens.it/how_to.shtml#/n)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: kyled on Jul 25, 2015, 08:55 pm
File -> New -> New Arduino Sketch produces error "The folder hardware does not contain any files."

Any ideas?
Thanks
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: CyberReefGuru on Aug 09, 2015, 12:46 am
I've been using this plugin for a long time now, but I have not been keeping up to date with the latest code.  I've recently downloaded the nightly for the plugin and the latest arduino.  

I've imported my previous projects, compiled them, but I get an error when trying to upload.  It says the protocol is not defined:

Starting upload
using arduino loader
Starting reset using DTR toggle process
Flushing buffer
Toggling DTR
Continuing to use /dev/tty.usbmodem1411
Ending reset using DTR toggle process


Launching /Applications/Arduino-1.6.5.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino-1.6.5.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf false -patmega328p -carduino -P/dev/tty.usbmodem1411 -b115200 -D -Uflash:w:/Users/username/Development/arduino/NeoPixelString/Release/NeoPixelString.hex:i
Output:

avrdude: no programmer has been specified on the command line or the config file
         Specify a programmer using the -c option and try again

avrdude finished
upload done


I've googled the sh*t out of the error with no luck.  I clearly see the -c option on the command line and I also see the programmer option in the config file.

I tried to roll back to the previous version and now it doesn't work properly either.  I'm completely unable to upload anything at the moment.  What am I missing?

-Tom
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 09, 2015, 11:37 am
Have you followed these instructions?
http://eclipse.baeyens.it/how_to.shtml#/n (http://eclipse.baeyens.it/how_to.shtml#/n)

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 09, 2015, 11:39 am
Also
As you say the latest: Do not use the hourly from Arduino use 1.6.5 https://github.com/jantje/arduino-eclipse-plugin/issues/294 (https://github.com/jantje/arduino-eclipse-plugin/issues/294)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: CyberReefGuru on Aug 09, 2015, 04:02 pm
@jante - I guess I should included my platform details:

Mac OSX 10.10
Arduino 1.6.5
Arduino Eclipse  2.4.0.201508050214
C/C++ Autotools support 8.6.0.201502131403
C/C++ Development Platform 8.6.0.201502131403
C/C++ Development Tools 8.6.0.201502131403
C/C++ GNU Toolchain Build Support   8.6.0.201502131403
C/C++ GNU Toolchain Debug Support   8.6.0.201502131403
Eclipse IDE for Java Developers 4.4.2.20150219-0708

I also tried :

Eclipse Arduino IDE 2.4.0
Arduino Eclipse Extensions 2.4.0.201507090212
(and ton of other extensions I don't need)

and it behaves the same way (described below):

Yes, I've done the post install steps.

I have narrowed the problem down to following recipe in the environment variables:

A.TOOLS.AVRDUDE.UPLOAD.PATTERN

"${A.CMD.PATH}" "-C${A.CONFIG.PATH}" ${A.UPLOAD.VERBOSE} -p${A.BUILD.MCU} -c${A.UPLOAD.PROTOCOL} -P${A.SERIAL.PORT} -b${A.UPLOAD.SPEED} -D "-Uflash:w:${A.BUILD.PATH}/${A.BUILD.PROJECT_NAME}.hex:i"

The variable ${A.PROGRAM.VERBOSE} is set to "false", causing avrdude to fail. The recipe puts "false" directly after the avrdude.config declaration before the mcu definition.


I've tried repeatedly to edit the patterns but for some reason eclipse will not save them or use them during the next upload.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: CyberReefGuru on Aug 09, 2015, 05:09 pm
Ok, so I found the root of the problem.  {upload.verbose} is in the platforms.txt file.  As near as I can tell, without diving into the arduino app code, it is a computed value that is substituted at runtime.  I cannot find any provision for this in the arduino eclipse plugin.  I deleted {upload.verbose}  from the platforms file (which may fubar the app, but I don't use it anyway) and now the plugin works for uploads. 

I'm not sure what {program.verbose} is used for, but I suspect it will experience the same problem.

I don't know why others do not have the problem; it might be a Mac only thing?

Should I open ticket or should it just be added to the FAQ?

-Tom
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 09, 2015, 10:56 pm
Whether this needs to be added to the FAQ or is a bug is not relevant for whether an issue should be made or not. The because both the web pages as the code is in github.

Indeed it is the false that gives problems in your case.
You will not find all this stuff in the plugin because I simply hate hard coding so I process files. Read this blog if you want to know more about how it is done http://blog.baeyens.it/#post22 (http://blog.baeyens.it/#post22)

Anyway I looked deeper into the issue and this is a bug and I know why. Basically upload.verbose is defined in the DUMP file. So it got introduced when implementing the boards manager.
I don't have this problem because I'm nearly exclusively using yun (shields) lately.

So please do create an issue.
As work around remove the upload.verbose=false from the DUMP file(s).
I need to think about a good solution as I hate hard coding things.

Best regards
Jantje

PS good work :-)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 09, 2015, 11:34 pm
I actually found a acceptable way to fix this and I pushed a fix to the repository.
Tomorrow the fix should be available.
So no need to make an issue.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Johndue on Aug 13, 2015, 06:48 pm
Hi,

I have a small irritating problem, the code is marked as "Invalid arguments" even if it's correct.
(http://s14.postimg.org/xxd3xef29/Untitled.png)
Bigger (http://postimg.org/image/kt7jkpn0d/)

I have eclipse mars with Arduino Eclipse Extensions 2.4.0.201508110214 on Windows 10. The Arduino software verision is 1.6.1

Btw great job on the plugin!
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 14, 2015, 09:08 pm
@Johndue
You should not have these warnings.
Refreshing the indexer normally fixes this.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: lakid on Aug 20, 2015, 11:19 am
What is the best way to 'import' an existing multi file esp8266/arduino project into an eclipsearduino project ?
I've tried creating an empty sketch with the same name as the 'main' ino file of the project but i seem to run into problems with the order that the files are compiled in.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 20, 2015, 12:13 pm
.. i seem to run into problems with the order that the files are compiled in.
The way you add files to a project should not impact the compile order. The compile/link order is based on the folder location in Eclipse (which can be different from your folder system). For files in the same folder there is no order.
So can you elaborate on your problems with the compile order? Can you provide the console output that shows the problem?

As to your question:
There are many good ways and it depends on how you want to work. So with the little info you provide there is no best answer.
Note that using the import function allows you to copy and to link to the files.
Also note that drag and drop works again allowing you to copy or link.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: lakid on Aug 21, 2015, 01:53 am
Thanks Jantje
Apologies for the lack of info..but here is an example..
Take this project for example..

https://github.com/ardyesp/WeatherDisplay/ (https://github.com/ardyesp/WeatherDisplay/)

I open up WeatherDisplay.ino in the arduino IDE. Set my board to be an esp8266 and it compiles fine. So the source code is good..

Here is the same project I created in eclipse..

http://i.imgur.com/746M9MG.png (http://i.imgur.com/746M9MG.png)

So from the errors below, it looks like it starts to compile AP.ino followed by Config.ino etc so alphabetically.
Things that are defined in WeatherDisplay.ino cause an error because the compiler hasn't found them yet (I think ?).
Apologies if this is total noob material or i'm missing something basic.



09:46:04 **** Incremental Build of configuration Release for project WeatherDisplay ****
make all
Building file: ../.ino.cpp
Starting C++ compile
"/Users/lakidd1/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-I/Users/lakidd1/Library/Arduino15/packages/esp8266/hardware/esp8266/1.6.5-990-gc8a63ce/tools/sdk//include" -c -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -DF_CPU=80000000L -DARDUINO=10605 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266  -DESP8266   -I"/Users/lakidd1/Library/Arduino15/packages/esp8266/hardware/esp8266/1.6.5-990-gc8a63ce/cores/esp8266" -I"/Users/lakidd1/Library/Arduino15/packages/esp8266/hardware/esp8266/1.6.5-990-gc8a63ce/variants/generic" -I"/Users/lakidd1/Library/Arduino15/packages/esp8266/hardware/esp8266/1.6.5-990-gc8a63ce/libraries/EEPROM" -I"/Users/lakidd1/Library/Arduino15/packages/esp8266/hardware/esp8266/1.6.5-990-gc8a63ce/libraries/ESP8266WebServer" -I"/Users/lakidd1/Library/Arduino15/packages/esp8266/hardware/esp8266/1.6.5-990-gc8a63ce/libraries/ESP8266WebServer/src" -I"/Users/lakidd1/Library/Arduino15/packages/esp8266/hardware/esp8266/1.6.5-990-gc8a63ce/libraries/ESP8266WiFi" -I"/Users/lakidd1/Library/Arduino15/packages/esp8266/hardware/esp8266/1.6.5-990-gc8a63ce/libraries/ESP8266WiFi/src" -I"/Users/lakidd1/Documents/Arduino/libraries/ESP_SSD1306" -I"/Users/lakidd1/Library/Arduino15/packages/esp8266/hardware/esp8266/1.6.5-990-gc8a63ce/libraries/SPI" -I"/Users/lakidd1/Library/Arduino15/packages/esp8266/hardware/esp8266/1.6.5-990-gc8a63ce/libraries/Ticker" -I"/Users/lakidd1/Library/Arduino15/packages/esp8266/hardware/esp8266/1.6.5-990-gc8a63ce/libraries/Wire" -I"/Users/lakidd1/Documents/Arduino/libraries/AdafruitGFX" -MMD -MP -MF".ino.cpp.d" -MT".ino.cpp.o" -D__IN_ECLIPSE__=1 -x c++ "../.ino.cpp"  -o  ".ino.cpp.o"   -Wall
In file included from ../.ino.cpp:75:0:
../AP.ino: In function 'void onSave()':
../AP.ino:156:21: error: 'config' was not declared in this scope
s_ssid.toCharArray(config.ssid, 20);
                  ^
../AP.ino:170:17: error: 'CELSIUS' was not declared in this scope
config.unit = CELSIUS;
              ^
../AP.ino:172:17: error: 'FAHRENHEIT' was not declared in this scope
config.unit = FAHRENHEIT;
              ^
In file included from ../.ino.cpp:76:0:
../Config.ino: In function 'boolean readConfig()':
../Config.ino:16:25: error: 'config' was not declared in this scope
EEPROM.get(eeAddress, config.ssid);
                      ^
../Config.ino: In function 'void writeConfig()':
../Config.ino:65:24: error: 'config' was not declared in this scope
EEPROM.put(eeAddress, config.ssid);
 <snip>
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 21, 2015, 10:55 am
seems like something is wrong in regards to the includes.
Have a look at the generated .ino.cpp file and see which includes are missing.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: lakid on Aug 21, 2015, 12:20 pm
ah that's it...
Code: [Select]
/This is a automatic generated file
//Please do not modify this file
//If you touch this file your change will be overwritten during the next build
//This file has been generated on 2015-08-21 20:17:13

#include "Arduino.h"
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <ESP_SSD1306.h>
#include <EEPROM.h>
#include <Ticker.h>
#include "Helv32.h"
#include "TPSS8.h"
#include "Unifont16.h"
#include "Weather32.h"
#include "Splash.h"
#include "helper.h"
void setup()   ;
void loop() ;
void handleTasks() ;
void handleSwitches() ;
void log(String msg) ;


#include "WeatherDisplay.ino"


it's including itself..why is it doing that ?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 21, 2015, 12:35 pm
Code: [Select]
#include "WeatherDisplay.ino"
This is the intention.
.ino files are not compiled in the plugin but all included in the .ino.cpp file which is compiled.
The .ino.cpp file seems fine to me given the jpg file you have posted.
The question you have to ask is: Where is config defined and is this file included.
You can click on config to find out where it is defined and together with the include viewer you should be able to find the root cause.
I currently see no problems in the eclipse plugin.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: lakid on Aug 21, 2015, 12:40 pm
Sorry was editing the response when you replied..too many things going on :-)
So the errors I can see all relate to things that are defined in WeatherDisplay.ino (config, CELCIUS, FARENEHIT etc) which is odd

The actual .ino.cpp

Code: [Select]
//This is a automatic generated file
//Please do not modify this file
//If you touch this file your change will be overwritten during the next build
//This file has been generated on 2015-08-21 20:32:26

#include "Arduino.h"
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <ESP_SSD1306.h>
#include <EEPROM.h>
#include <Ticker.h>
#include "Helv32.h"
#include "TPSS8.h"
#include "Unifont16.h"
#include "Weather32.h"
#include "Splash.h"
#include "helper.h"
void setupAP() ;
void startConfigServer() ;
void scanServeConfigClient() ;
void onRoot() ;
void onSave() ;
String scanNetworks() ;
void drawLogo() ;
boolean readConfig() ;
void writeConfig() ;
void initStructure() ;
boolean getWeatherData() ;
boolean getScrapeOWData() ;
int mapIcon(String iconStr) ;
float extractFloat(String fieldName) ;
int extractInt(String fieldName) ;
int extractOptionalInt(String fieldName) ;
int extractValue(String fieldName, String &dest, boolean optional) ;
int extractValue(String fieldName, String &dest, boolean optional, int start) ;
void setError(String fieldName) ;
boolean getScrapeECData() ;
void setTextColor(uint16_t txtClr) ;
void setCursor(int16_t cursorX, int16_t cursorY) ;
void setCursorX(int16_t cursorX) ;
void setCursorY(int16_t cursorY) ;
void setFont(const uint8_t *font) ;
uint8_t drawChar(char ch) ;
uint8_t getWidth(char ch) ;
uint8_t getHeight(char ch) ;
uint8_t getOffsetTop(char ch) ;
uint8_t findLSB(uint8_t *orPilexArr) ;
uint8_t findMSB(uint8_t *orPilexArr) ;
int getStringWidth(const char *str) ;
void drawString(const char *str) ;
void drawString(int16_t cursorX, int16_t cursorY, const char *str) ;
uint8_t getFontHeight() ;
void initDisplay() ;
void draw() ;
void showConsole() ;
void drawLandscape() ;
void drawPortrait() ;
void scrollMessage() ;
void formatInfo()   ;
void formatPortraitInfo() ;
void formatLandscapeInfo()   ;
void setupSTA() ;
boolean getOWData(boolean forecast) ;
boolean postProcess() ;
void setup()   ;
void loop() ;
void handleTasks() ;
void handleSwitches() ;
void log(String msg) ;


#include "AP.ino"
#include "Config.ino"
#include "DataOperations.ino"
#include "FontOperations.ino"
#include "Graphics.ino"
#include "STA.ino"
#include "WeatherDisplay.ino"
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 21, 2015, 12:53 pm
it is not odd.
if config is defined in WeatherDisplay.ino it is normal that you get an error in AP.ino as it is included (and as such processed) before WeatherDisplay.ino.
It is possible that arduino includes WeatherDisplay.ino first as it is the "project name" which explains the different behaviour.

as a test. rename WeatherDisplay.ino to aaWeatherDisplay.ino. (if I remember correctly I include in alphabetical order)
If that fixes the issue you have a work around.
In this case: please also make an issue on github https://github.com/jantje/arduino-eclipse-plugin/issues (https://github.com/jantje/arduino-eclipse-plugin/issues) with the name "the include order of ino files should have the project ino first" and point to this thread as explanation.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: lakid on Aug 21, 2015, 01:03 pm
thanks Jantje
so I renamed the file (and it moved in eclipse to the top of the tree) but it had no effect on the .ino.cpp
Code: [Select]

<snip>
#include "AP.ino"
#include "Config.ino"
#include "DataOperations.ino"
#include "FontOperations.ino"
#include "Graphics.ino"
#include "STA.ino"
#include "aaWeatherDisplay.ino"
<snip>


What I will do is start another project...and from the begining rename the main source file before i start adding others and see how that goes.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: lakid on Aug 21, 2015, 01:58 pm
ok created the issue. No matter what I call the file or when I add it to the project, for some reason the first file always ends up at the bottom of the list.
Thanks for your help..
Update: ah..needed to rename the WeatherDisplay.ino to AAWeatherDisplay.ino (AA comes before aa)

Finally got it to compile with the addition of some header guards to the various header files.
Thanks again
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 21, 2015, 05:43 pm
oeps case sensitivity. My bad.
txs for the issue.
Will fix it shortly.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 22, 2015, 08:06 pm
Alllll
I'm thinking of making a new release based on the nightly.

If you do not have any issues with the nightly please report in this thread: OS(+version), Arduino IDE version and boards used.if If you have an issue with the nightly this may be a good time to learn to create a github issue https://github.com/jantje/arduino-eclipse-plugin/issues (https://github.com/jantje/arduino-eclipse-plugin/issues).

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: christianhgross on Sep 05, 2015, 11:49 pm
I am trying to create a project and when I press the finish button I get a uri error. This happens on Linux and OSX. I have configured the arduino Eclipse IDE to reference the installed Arduino IDE.

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 06, 2015, 01:33 pm
Thanks for the input.
The issue has been reported on github
https://github.com/jantje/arduino-eclipse-plugin/issues/301 (http://https://github.com/jantje/arduino-eclipse-plugin/issues/301)
I guess it has to do with the fact that no boards have been added to the arduino ide installation in arduino IDE 1.6.5
Are you using 1.6.5?
Have you installed boards?
If not can you install a board and try again?
Have you tried 1.6.1?
Can you feed back on the github issue?

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: 4xy_ on Sep 08, 2015, 04:46 pm
Hi Jantje,

Thank you for your work and time.

I use the plugin and encountered the necesserity to change the boards.txt path after arduino IDE location changed. After I moved the ide the path to boards.txt has fallen to ....avr/boards.txt. You can see it in the picture. I tried to find entries in .metadata, .settings folders and in .cproject, .project files, but there is no such pathes or even "/avr/boards.txt" part. I need to change it to .../sam/boards.txt.

I can recreate project, but this is the last thing I want to do.

Thanx in advance.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 08, 2015, 05:24 pm
have you reconfigured the plugin?
You should have done these actions: http://eclipse.baeyens.it/how_to.shtml#/n (http://eclipse.baeyens.it/how_to.shtml#/n)
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: 4xy_ on Sep 13, 2015, 04:14 pm
What exactly should I do? Perform instructions on the "Update my plugin" page?
But there is only nightly build update. Should I apply this?

On nightly build page I see "use only if you feel confident", but I don't.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: joshmosh on Sep 19, 2015, 05:01 pm
Hi,
I am new to this Arduino plugin. After quite some googling for answers to my questions, I hope that some kind soul here can help me. I am running Arduino 1.6.5-r2 on Windows 7 (64bit) and have the latest Arduino Eclipse plugin installed. My Arduino sketches compile fine with the plugin, but I cannot get the F macro in Serial.print to work. The is an error message telling me that the "function F is not defined in this scope". What am I missing ?
In addition, I want to load the compiled hex-file to an ATMega328p chip using my hardware (not avr dude). Where do I find the .hex file ? I thought that it is put in my workspace directory, but I did not find it there.

Sorry for those stupid questions, but as I already said in the beginning, Google did not give hints.

Thank you very much in advance
Josh
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 19, 2015, 07:07 pm
The hex file is located in a folder in your project with the configuration name. By default the configuration is called "Release".
Note that eclipse filters the view. You can change the filter. Look for that in the default cdt/eclipse documentation.

For your first question you say "latest Arduino Eclipse plugin" do you mean the nightly? You need the nightly for Arduino IDE 1.6.5-r2.
The F macro is it the indexer or the compiler complaining See "Eclipse tells me there are bugs in my code but it compiles ok" on this page http://eclipse.baeyens.it/faq.shtml#/troubleshooting (http://eclipse.baeyens.it/faq.shtml#/troubleshooting)

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: joshmosh on Sep 19, 2015, 09:27 pm
Jantje,
thank you so much !

Have a nice day/evening and all the best
Josh
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: joshmosh on Sep 20, 2015, 07:26 am
@Jantje
I am using the latest nightly: win64.2015-09-08_02-06-02.tar.gz and Arduino 1.6.5-r2.
The errorlog shows me: Malformed Arduino IDE version expected X.Y.Z got 1.6.5-r2

(sorry, I did not check the error log before  :smiley-sad: )
Perhaps this could be the reason that there is no .hex file ?

Seems, that the learning curve is pretty steep for me. I thought that using standard preset values of the plugin could give me results soon, but this does not seem to work for me.

Sorry for bothering you and thank you for your help.

Best regards
Josh
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 20, 2015, 12:06 pm
Hi Josh
First thing to keep in mind: If it costs you more than 15 minutes to get up and running: something is wrong.
From what I can see:
1) You have a good set of Arudino IDE and eclipse version.
2) In regards of the F Macro (which I use very intensively -so it works fine-)  you did not respond on my comment on indexer and compiler. (Which makes me think you didn't understand my comment fully)
3) The "Malformed Arduino IDE version expected X.Y.Z got 1.6.5-r2" is a warning -as such should not give any problems- and is about the -r2. I made an issue for this one
https://github.com/jantje/arduino-eclipse-plugin/issues/308 (https://github.com/jantje/arduino-eclipse-plugin/issues/308)
4) you seem to have done a good effort to get it going but feel like you failed.

This makes me conclude you are probably missing some basic CDT/eclipse knowledge. Therefore I think that this -a bit outdate- 2 year old video can help you
https://www.youtube.com/watch?v=iKEiwZoH7bE (https://www.youtube.com/watch?v=iKEiwZoH7bE)
 because the basic stuff is still the same.

Please let share us your progress.

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: joshmosh on Sep 20, 2015, 04:21 pm
Hi Jantje,
thank you for your patience. Your are right, I have not understood your remark towards indexer and compiler. I know what a compiler is and does, but the purpose of the indexer is currently beyond me.
Anyway, I had a look at the video as you have suggested. From the video I learned that arduino.h needs to be put in at some place in the project preferences. OK, I did that and now the bug symbol at the line with the F() macro has gone - great. But still: when I click on verify, all I get in the console window is "Nothing to build". My expectation was that verify starts the compiler and gives me syntax errors etc.
This takes place in the video, but not in my case. In this respect, the video did not help, because the look and feel of the user interface has changed significantly.

So, a minor success, but still no real result :-(
Anyway, thank you so much and all the best
Josh
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 20, 2015, 06:40 pm
Hi Josh
You can only get nothing to build when there is no source code in your project.
Can you try to make a new sketch with the new sketch wizard using the default cpp code or the blink example?
jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: joshmosh on Sep 20, 2015, 08:16 pm
Jantje,
I am truly amazed that I am not able to stop you answering my stupid questions ;-)
Your last post rings a bell: you explicitly mention a default cpp code. What I did was using the wizard to create a new sketch with a name similar to my existing Arduino sketch, using the default ino template. Then I simply replaced the default .ino file with my Arduino sktech (.ino). Is it mandatory that the skteches need to have .cpp ending ? Your last post seems to point in that direction ...

At the moment I cannot try it out, but I will check first thing tomorrow morning.

Thank you so much
Josh
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 20, 2015, 08:26 pm
.ino is supported but you need to do some configuration and you need to use the verify button from the plugin (not the standard build from eclipse)
The configuration you need to do is in the console if you have not configured.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: joshmosh on Sep 21, 2015, 07:25 am
Hi,
thanks again, but now this starts to get weird and I will ruefully return to use the Arduino IDE (after having wasted many hours of my time and some of yours). Don't get me wrong: I fully appreciate your trying to help, but obviously my perception of this plugin was wrong. I thought that the plugin is meant to help people who have used the Arduino IDE and recognised that it is not really good for developing more than some small sketch from time to time. But now I have learned that if you want to use it as a replacement for the Arduino IDE, you cannot simply install it, make required adjustments for the local environment (location of the Arduino IDE for example), copy your existing .ino sketches into it and start using it. This did not work (at least for me - perhaps my stupidity) - far from it. I had to enter a filename at some place (Arduino.h - this is an Arduino plugin, so why have I to place an Arduino related filename somewhere ? Why is this not a preset ?). I had to google quite a bit to find out that some other preset (external builder) gives error messages (make not found or something like that) and that a change to internal builder is required.


.ino is supported but you need to do some configuration and you need to use the verify button from the plugin (not the standard build from eclipse)
The configuration you need to do is in the console if you have not configured.
Now I learn that .ino is supported (but not really, because I have to do "some" (which ?) configuration).
Why is the standard sketch not supported out of the box ? This plugin claims to be an Arduino plugin ! Why again some additional (and obviously undocumented) configuration.


Which configuration is required ? Of course I have expected to use the verify button, since this is standard in Arduino - and not build from eclipse.

"The configuration you need to do is in the console if you have not configured." Of course I have not configured, because how should I know that (and what !) I have to ?
What to configure in the console ? The console window is empty.

Then I made a sketch not using .ino (which by the way is the first selection when you start  a new sketch, but cannot be used because "some configuration" is required), but .cpp.

Same result as before: nothing to build.

So again, thank you so much, but my frustration level is now sky high and I will continue to look for a replacement of the Arduino IDE that will work for me as well.

I am fully aware that you are offering this plugin to the community for free and as is, and me and many others are appreciating it. Perhaps you take my rant as constructive criticism - at least I hope so.

Have a nice day
Josh
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 21, 2015, 11:17 am
i'm really sorry you fail to use the arduino eclipse plugin.
I thought that the plugin is meant to help people who have used the Arduino IDE and recognised that it is not really good for developing more than some small sketch from time to time. But now I have learned that if you want to use it as a replacement for the Arduino IDE, you cannot simply install it, make required adjustments for the local environment (location of the Arduino IDE for example), copy your existing .ino sketches into it and start using it. This did not work (at least for me - perhaps my stupidity) - far from it. I had to enter a filename at some place (Arduino.h - this is an Arduino plugin, so why have I to place an Arduino related filename somewhere ? Why is this not a preset ?). I had to google quite a bit to find out that some other preset (external builder) gives error messages (make not found or something like that) and that a change to internal builder is required.
This is exactly what we are trying to achieve. But it is a step up and depending on your background there may be lots to learn. Maybe it was just to early for you.
Roberto recently launched the idea of making a "ready out of the box version". There is lots of enthusiasm around it but it will take some time to get there. And even then it will be a step up. Maybe you can join the discussion and explain why it didn't work for you. https://github.com/jantje/arduino-eclipse-plugin/issues/306 (https://github.com/jantje/arduino-eclipse-plugin/issues/306)
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: 4xy_ on Sep 28, 2015, 05:18 pm
Jantje, thanx man! It works! http://forum.arduino.cc/index.php?topic=79595.msg2388854#msg2388854
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 28, 2015, 05:39 pm
@4xy_
Thanks for letting us know.
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: 4xy_ on Sep 28, 2015, 10:35 pm
Hi Jantje,

The plugin builds sources and this is cool! But now, unfortunately, it doesn't upload the firmware(

I see in eclipse console:

---
Launching /home/q/apps/devel/arduino/arduino-1.5.7/hardware/tools/bossac --port=ttyACM0 -U false -e -w -v -b /home/q/work/gk/j-v2/embedded/smib/Release/smib.bin -R
Output:
No device found on ttyACM0
bossac finished
---

Actually ttyACM0 appears when I plugged the Arduino to programming USB port. Also "test RXTX" button in Window->Preferences->Arduino reports success about loading librxtxSerial.so. Arduino RX/TX leds starts blinking and after about one second I get the "no device found" message.

Is it possible to somehow repair the tools?

Thanx.

-- update --

I also memorized a detail (I don't know would it be essential but). Before I changed the location of arduino ide folder the upload worked from only eclipse, if I tried to execute the above 'bossac' command from terminal I got "no device found".
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 28, 2015, 11:02 pm
What does ardiuino IDE say when you upload in verbose mode?
The difference is the root cause.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: 4xy_ on Sep 29, 2015, 11:35 am
I was able to upload a sketch by using Arduino IDE.
Do you mean verbose mode in Arduino IDE (File->Preferences->Show verbose output during: upload)?
If yes, it produces a huge amount of stuff. I skipped most of it:

-----
Sketch uses 10,784 bytes (2%) of program storage space. Maximum is 524,288 bytes.
Forcing reset using 1200bps open/close on port /dev/ttyACM0
/home/q/apps/devel/arduino/arduino-1.5.7/hardware/tools/bossac -i -d --port=ttyACM0 -U false -e -w -v -b /tmp/build284932498643061106.tmp/Blink.cpp.bin -R
Send auto-baud
Set binary mode
readWord(addr=0)=0x20001000
readWord(addr=0x400e0740)=0
readWord(addr=0x400e0940)=0x285e0a60
chipId=0x285e0a60
Connected at 115200 baud
readWord(addr=0)=0x20001000
readWord(addr=0x400e0740)=0
readWord(addr=0x400e0940)=0x285e0a60
write(addr=0x20001000,size=0x34)
writeWord(addr=0x20001030,value=0x40)
writeWord(addr=0x20001020,value=0x20010000)
writeWord(addr=0x400e0a00,value=0x600)
writeWord(addr=0x400e0c00,value=0x600)
Erase flash
readWord(addr=0x400e0a08)=0x1
readWord(addr=0x400e0c08)=0x1
writeWord(addr=0x400e0a04,value=0x5a000005)
readWord(addr=0x400e0a08)=0
readWord(addr=0x400e0c08)=0x1
readWord(addr=0x400e0a08)=0
readWord(addr=0x400e0c08)=0x1
readWord(addr=0x400e0a08)=0x1
readWord(addr=0x400e0c08)=0x1
writeWord(addr=0x400e0c04,value=0x5a000005)
Write 11920 bytes to flash

[                              ] 0% (0/47 pages)write(addr=0x20001034,size=0x100)
writeWord(addr=0x20001028,value=0x80000)
writeWord(addr=0x2000102c,value=0x20001034)
...
...
writeWord(addr=0x20001028,value=0x82e00)
writeWord(addr=0x2000102c,value=0x20001034)
readWord(addr=0x400e0a08)=0x1
readWord(addr=0x400e0c08)=0x1
writeWord(addr=0x20001024,value=0x20001001)
go(addr=0x20001020)
writeWord(addr=0x400e0a04,value=0x5a002e01)

[==============================] 100% (47/47 pages)
Verify 11920 bytes of flash
...
...
readWord(addr=0x400e0a08)=0x1
readWord(addr=0x400e0c08)=0x1
writeWord(addr=0x400e0a04,value=0x5a00000d)
readWord(addr=0x400e0a08)=0x1
readWord(addr=0x400e0c08)=0x1
readWord(addr=0x400e0a0c)=0x2
Security     : false
readWord(addr=0x400e0a08)=0x1
readWord(addr=0x400e0c08)=0x1
writeWord(addr=0x400e0a04,value=0x5a00000d)
readWord(addr=0x400e0a08)=0x1
readWord(addr=0x400e0c08)=0x1
readWord(addr=0x400e0a0c)=0x2
Boot Flash   : true
readWord(addr=0)=0x20088000
readWord(addr=0x400e0740)=0
readWord(addr=0x400e0940)=0x285e0a60
CPU reset.
writeWord(addr=0x400e1a00,value=0xa500000d)
-----

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: 4xy_ on Sep 29, 2015, 01:10 pm
Eventually I found the solution on the web. It requires to put /dev/ttyACM0 to 1200 baud rate before run bossac: http://forum.arduino.cc/index.php?topic=148613.0

It a bit ugly due to before upload the firmware I should execute from terminal
stty -F /dev/ttyACM0 speed 1200 cs8 -cstopb -parenb

But it works!)

It seems that is the reason why it worked from Eclipse, but didn't from terminal.
Anyway, if it's possible to make Arduino Eclipse works as it should, it would be very cool!

Thank you for support and the stuff provided.



Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 29, 2015, 01:32 pm
@4xy_
This should work in the nightly. We have fixed lots of bugs in regards with upload.
Arduino IDE 1.5.7 beta is getting old as well.
We are working on a release. But don't hold your breath.
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: nimbusgb on Oct 14, 2015, 06:09 pm
Tried to install the V2 build ( as per the instructions on the http://eclipse.baeyens.it/ website. )

The repository does not return anything installable. The nightly build however does.

Installed that into eclipse and followed the instructions again on the site.

There is an extra line of config ( Private hardware path ) which is not covered in the instructions.

There is no explanation of how and where or why these paths should point.

Loaded up some pre-existing code ( I'm trying to do a fix on something )

Code cant 'see' Arduino.h and can't interpret any standard definitions like uint8_t, init(); etc

any help anyone? ( the search on this forum is abominable! )
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Oct 14, 2015, 06:55 pm
The private hardware and library are the places where you place your downloaded libraries and harware.
It is best to do a build. If that doesn't fix your issue rebuild the index (right click project)
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: nimbusgb on Oct 14, 2015, 11:30 pm
Hardware in a directory? Sorry hardware what? is that some files from somewhere?

Rebuilding indexes does not fix anything.

Still can't find Arduino.h and there's about a dozen Arduino.h's scattered across my disk.

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: hexafyre on Oct 15, 2015, 12:43 am
I might be missing something obvious, but it seems like the linker options are missing from the C++ build settings. I want to add some linker flags to my project but I can't find the linker command settings. The closest I came is "arduino combiner" which might actually just be avr-ld. The Arduino Eclipse plugin does use avr-ld right?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Oct 15, 2015, 01:07 pm
@nimbusgb
If you use a .ino file you  may need add #include "Arduino.h" at the top of the file.

@hexafyre
The eclipse plugin uses the exact same commands as the arudino ide as described in the platform.txt. The linker is indeed the combiner.

Jantje
Title: eclipseArduino Cannot Find avr IDE 1.6.5-r5
Post by: rmerriam on Oct 17, 2015, 06:24 am
Just updated Arduino IDE to current: 1.6.5-r5

Just installed eclipseArduino from the web site.

Eclipse preferences -> arduino -> dialog saying to use 1.6.5 but doesn't like the -r5 version. Guessing this is a string comparison problem not real. Or is it?

Click through with 'yes'.

Cannot compile for Uno because avr-g++ not found. This is the old error I thought was fixed with 1.6.5. Maybe not recognizing it is 1.6.5 and using older parsing for path?

Compiled okay for Due but I can't upload to it. Can't get that to work from IDE so probably something wrong on my end.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Oct 17, 2015, 11:29 am
I'm downloading 1.6.5 right now
Which os are you using?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Oct 17, 2015, 01:35 pm
I tried 1.6.5-r5 o my system.
I got a warning which states it is newer than the arduino eclipse plugin (which is as designed) but further on no issues.
Have you performed the update instructions?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rmerriam on Oct 17, 2015, 06:56 pm
I'm on Ubuntu 14.04.

Not sure what you mean by update instructions. I've run the Eclipse software update.

Thanks for checking on this.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Oct 17, 2015, 07:15 pm
I mean this for the update instructions : http://eclipse.baeyens.it/how_to.shtml#/n (http://eclipse.baeyens.it/how_to.shtml#/n)
More specific: For each and every project go to the project properties->arduino. Verify your settings. Select apply and close.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rmerriam on Oct 17, 2015, 08:14 pm
I followed all the update steps but no change. I also did a complete unpacking of 1.6.5r5 to a new directory and ran the eclipseArduino update. No change.

I switched to the Pro Mini since it is a similar board and it compiled fine. I tried a couple others and they work. It's only the Uno that won't, of the ones I tried.

The last one I tried is the Arduino Ethernet because it looked like a Uno with network capability. It compiled fine, uploaded, and ran my code.

Just in case here are the build console logs for the Uno and Ethernet (just the first lines):

Code: [Select]

13:02:57 **** Incremental Build of configuration Release for project TimingTest ****
make all
Building file: ../.ino.cpp
Starting C++ compile
"/home/rmerriam/Apps/arduino-1.6.5-r5/hardware/tools/avr/bin/avr-g++" -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_ETHERNET -DARDUINO_ARCH_AVR     -I"/home/rmerriam/Apps/arduino-1.6.5-r5/hardware/arduino/avr/cores/arduino" -I"/home/rmerriam/Apps/arduino-1.6.5-r5/hardware/arduino/avr/variants/ethernet" -MMD -MP -MF".ino.cpp.d" -MT".ino.cpp.o" -D__IN_ECLIPSE__=1 -x c++ "../.ino.cpp"  -o  ".ino.cpp.o"   -Wall
Finished building: ../.ino.cpp


13:11:22 **** Incremental Build of configuration Release for project TimingTest ****
make all
Building file: ../.ino.cpp
Starting C++ compile
"/bin/avr-g++" -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR     -I"/home/rmerriam/Apps/arduino-1.6.5-r5/hardware/arduino/avr/cores/arduino" -I"/home/rmerriam/Apps/arduino-1.6.5-r5/hardware/arduino/avr/variants/standard" -MMD -MP -MF".ino.cpp.d" -MT".ino.cpp.o" -D__IN_ECLIPSE__=1 -x c++ "../.ino.cpp"  -o  ".ino.cpp.o"   -Wall
/bin/sh: 1: /bin/avr-g++: not found
make: *** [.ino.cpp.o] Error 127

13:11:22 Build Finished (took 77ms)


Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Oct 17, 2015, 08:48 pm
That is strange.
In the root of your workspace there should be a file called DUMP_arduino_avr_uno_ArduinoIDE.tmp
Can you compare with the attached file?
If it is different; delete the file and redo the arduino board selection for the uno -selecting apply- (that should rebuild the file)
And check again for differences
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Oct 17, 2015, 08:50 pm
As I can not attache tmp here is the content of the file


#This file has been generated automatically.
#Please do not change.
#PREFDUMP#
last.sketch.count=0
#Ignoring this line : update.check=true
#Ignoring this line : platform.auto_file_type_associations=true
editor.window.width.default=500
editor.window.height.default=600
editor.window.width.min=400
editor.window.height.min=290
#Ignoring this line : editor.code_folding=false
editor.font=Monospaced,plain,12
#Ignoring this line : editor.antialias=true
#Ignoring this line : editor.external=false
#Ignoring this line : editor.caret.blink=true
#Ignoring this line : editor.invalid=false
#Ignoring this line : editor.linenumbers=false
#Ignoring this line : editor.keys.alternative_cut_copy_paste=true
#Ignoring this line : editor.keys.shift_backspace_is_delete=true
#Ignoring this line : editor.keys.home_and_end_travel_far=false
#Ignoring this line : console=true
console.output.file=stdout.txt
console.error.file=stderr.txt
console.lines=4
#Ignoring this line : console.auto_clear=true
console.length=500
#Ignoring this line : editor.tabs.expand=true
editor.tabs.size=2
#Ignoring this line : editor.indent=true
editor.divider.size=0
#Ignoring this line : editor.save_on_verify=true
run.options=
#Ignoring this line : run.options.memory=false
run.options.memory.initial=64
run.options.memory.maximum=256
run.display=1
#Ignoring this line : export.application.platform=true
#Ignoring this line : export.application.fullscreen=false
#Ignoring this line : export.application.stop=true
#Ignoring this line : export.applet.separate_jar_files=false
#Ignoring this line : export.delete_target_folder=true
#Ignoring this line : preproc.save_build_files=false
#Ignoring this line : preproc.color_datatype=true
#Ignoring this line : preproc.web_colors=true
#Ignoring this line : preproc.enhanced_casting=true
#Ignoring this line : preproc.substitute_floats=true
#Ignoring this line : preproc.substitute_unicode=true
#Ignoring this line : preproc.output_parse_tree=false
preproc.imports.list=java.applet.*,java.awt.Dimension,java.awt.Frame,java.awt.event.MouseEvent,java.awt.event.KeyEvent,java.awt.event.FocusEvent,java.awt.Image,java.io.*,java.net.*,java.text.*,java.util.*,java.util.zip.*,java.util.regex.*
browser=mozilla
run.present.bgcolor=#666666
run.present.stop.color=#cccccc
#Ignoring this line : run.present.exclusive=false
target_package=arduino
target_platform=avr
board=uno
software=ARDUINO
build.warn_data_percentage=75
programmer=arduino:avrispmkii
upload.using=bootloader
#Ignoring this line : upload.verify=true
serial.port=COM1
serial.databits=8
serial.stopbits=1
serial.parity=N
serial.debug_rate=9600
editor.languages.current=
runtime.ide.path=/home/jan/programs/Arduino/arduino-1.6.5-r5
runtime.ide.version=10605
boardsmanager.additional.urls=http://arduino.esp8266.com/stable/package_esp8266com_index.json
#Ignoring this line : build.verbose=true
compiler.warning_level=none
custom_CpuFrequency=thing_80
custom_UploadSpeed=thing_115200
custom_cpu=mega_atmega2560
custom_type=mega_debug
#Ignoring this line : editor.update_extension=true
last.ide.1.5.5.daterun=1442759448
last.ide.1.5.5.hardwarepath=/home/jan/programs/Arduino/arduino-1.5.5/hardware
last.ide.1.5.6-r2.daterun=1442759517
last.ide.1.5.6-r2.hardwarepath=/home/jan/programs/Arduino/arduino-1.5.6-r2/hardware
last.ide.1.6.0.daterun=1442759637
last.ide.1.6.0.hardwarepath=/home/jan/programs/Arduino/arduino-1.6.0/hardware
last.ide.1.6.1.daterun=1442759684
last.ide.1.6.1.hardwarepath=/home/jan/programs/Arduino/arduino-1.6.1/hardware
last.ide.1.6.3.daterun=1442759717
last.ide.1.6.3.hardwarepath=/home/jan/programs/Arduino/arduino-1.6.3/hardware
last.ide.1.6.5.daterun=1445107191
last.ide.1.6.5.hardwarepath=/home/jan/programs/Arduino/arduino-1.6.5-r5/hardware
last.screen.height=900
last.screen.width=1440
last.sketch0.location=520,200,500,600,425
last.sketch0.path=/home/jan/programs/Arduino/arduino-1.6.5/libraries/Servo/examples/Sweep/Sweep.ino
launcher=xdg-open
recent.sketches=/home/jan/programs/Arduino/arduino-1.6.5/libraries/Servo/examples/Sweep/Sweep.ino,
run.window.bgcolor=#DFDFDF
sketchbook.path=/home/jan/Arduino
update.id=4949753759568753314
#Ignoring this line : upload.verbose=false
runtime.os=linux
runtime.tools.esptool.path=/home/jan/.arduino15/packages/esp8266/tools/esptool/0.4.5
runtime.tools.esptool-0.4.5.path=/home/jan/.arduino15/packages/esp8266/tools/esptool/0.4.5
runtime.tools.xtensa-lx106-elf-gcc.path=/home/jan/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9
runtime.tools.xtensa-lx106-elf-gcc-1.20.0-26-gb404fb9.path=/home/jan/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9
runtime.tools.avr-gcc.path=/home/jan/programs/Arduino/arduino-1.6.5-r5/hardware/tools/avr
runtime.tools.avr-gcc-4.8.1-arduino5.path=/home/jan/programs/Arduino/arduino-1.6.5-r5/hardware/tools/avr
runtime.tools.openocd.path=/home/jan/.arduino15/packages/arduino/tools/openocd/0.9.0-arduino
runtime.tools.openocd-0.9.0-arduino.path=/home/jan/.arduino15/packages/arduino/tools/openocd/0.9.0-arduino
runtime.tools.bossac.path=/home/jan/.arduino15/packages/arduino/tools/bossac/1.6-arduino
runtime.tools.bossac-1.3a-arduino.path=/home/jan/.arduino15/packages/arduino/tools/bossac/1.3a-arduino
runtime.tools.avrdude.path=/home/jan/programs/Arduino/arduino-1.6.5-r5/hardware/tools/avr
runtime.tools.avrdude-6.0.1-arduino5.path=/home/jan/programs/Arduino/arduino-1.6.5-r5/hardware/tools/avr
runtime.tools.bossac-1.6-arduino.path=/home/jan/.arduino15/packages/arduino/tools/bossac/1.6-arduino
runtime.tools.arm-none-eabi-gcc.path=/home/jan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1
runtime.tools.arm-none-eabi-gcc-4.8.3-2014q1.path=/home/jan/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1
runtime.tools.CMSIS.path=/home/jan/.arduino15/packages/arduino/tools/CMSIS/4.0.0-atmel
runtime.tools.CMSIS-4.0.0-atmel.path=/home/jan/.arduino15/packages/arduino/tools/CMSIS/4.0.0-atmel
runtime.platform.path=/home/jan/programs/Arduino/arduino-1.6.5-r5/hardware/arduino/avr
runtime.hardware.path=/home/jan/programs/Arduino/arduino-1.6.5-r5/hardware/arduino
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rmerriam on Oct 17, 2015, 09:03 pm
I saw number of dump files so I deleted them all first without checking for differences. Sorry I did that because it might have shown the problem.

The end result is the Uno compiles fine now.

When I did the apply in Properties I noticed that the first time for a board there was a slight delay. I assume that is the writing of the dump file and maybe gathering the info for it.

After I deleted the file I saw the long delay but I'd not been seeing it previously. I knew something had changed.

Thanks for the help.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Oct 17, 2015, 09:31 pm
The dump files are being generated by arduino ide only if they do not exist. It takes some time so it causes delays.

You're the first one to report a "corrupted dump file". It is a pitty we do not know what was wrong with it. I guess it was plain empty.
Have fun
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: rmerriam on Oct 17, 2015, 10:56 pm
I'm pretty sure what happened is I caused the problem while updating versions. It left an old dump file from IDE 1.6.0 in place. With the new 1.6.5r5 it got confused.

Thanks for your help. I learned a few things about the plug-in and the IDE

Rud
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: AnEarthling on Nov 01, 2015, 12:35 am
I'm using Arduino Eclipse IDE Nightly 2.4.0.201510300408. The compile is failing stating "No such file or directory". The file in question is one directory below where it is looking. The compile put the output in the /Release/arduino directory. The combiner target is looking for the file in the /Release directory.

If I move all the *.cpp.o files from the arduino directory up a level to the Release directory the compile finishes successfully.

Where do I find the information the makefile is derived from in order to change where the combiner is looking?

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: toothpick228 on Nov 07, 2015, 07:53 am
Hi,

when trying to upload a sketch I am getting this Error message:

Starting upload
using arduino loader


Launching S:/arduino-1.5.5-r2/hardware/tools/avr/bin/avrdude -CS:/arduino-1.5.5-r2/hardware/tools/avr/etc/avrdude.conf -patmega328p -carduino -P com6 -b115200 -D -Uflash:w:S:\MP3/Release/bliky.hex:i
Output:

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e950f
avrdude: reading input file "S:\MP3/Release/bliky.hex"
avrdude: can't open input file S:\MP3/Release/bliky.hex: No such file or directory
avrdude: read from file 'S:\MP3/Release/bliky.hex' failed

avrdude done.  Thank you.

S:/arduino-1.5.5-r2/hardware/tools/avr/bin/avrdude finished
upload done

Does anyone have an idea what I am doing wrong?

Thank you in advance,
Chris
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: desert_eagle on Dec 15, 2015, 06:14 pm
Hi Jantje, I'm using your plugin but I'm not able to upload the sketch on my arduino. When I try to upload I get something like this:

Code: [Select]
Starting upload
using arduino loader
Starting reset using 1200bps touch process
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyACM1, /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyACM1, /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
PORTS { /dev/ttyACM1, /dev/ttyS0,} / { /dev/ttyS0,} => {}
Comport is not behaving as expected
Using comport /dev/ttyACM1 from now onwards
Ending reset using 1200bps touch process


Launching 
Output:
upload failed


I guess the plugin can't find avrdude, I've double checked my serial port and it's right, upload with arduino IDE works fine.
I'm using last stable release of your plugin on Eclipse Luna, Arduino IDE 1.6.5-r5 on Linux
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Dec 15, 2015, 09:37 pm
I decided to no longer respond to issues -and other questions- due to a lack of support.
As a patron you can post a message on the patreon forum stating you support a issue. This allows me to support people who support me.
https://www.patreon.com/posts/3700469 (https://www.patreon.com/posts/3700469)
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: sixtimesseven on Dec 29, 2015, 10:41 pm
Hi
Any chance you could add the Maple Mini support via tha Arduino_STM32 project (https://github.com/rogerclarkmelbourne/Arduino_STM32) to the list in the Eclipse plugin?

It works great in Arduino 1.6.5 (appears as a regular board) but it does not appear in the Arduino Eclipse IDE even after restarting.

If there already is a solution then I was unable to find it so far. But please, point it out!

Many thanks and regards
Andreas
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Dec 29, 2015, 11:06 pm
if the board is installed in Arduino IDE 1.6.5 and your arduino eclipse plugin points to arduino IDE 1.6.5 you should be able to select the boards file that contains the board.
Best regards
Jantje
Title: Make not fount
Post by: belebog on Jan 12, 2016, 07:52 am
I newly installed
Eclipse Version: Mars.1 Release (4.5.1)
Build id: 20150924-1200
(CDT version),
added JDT
added Arduino Eclipse Extensions   2.5.0.201601060217

Extracted Arduino 1.6.5 into C:\Users\wwa\workspace\arduino-1.6.5-r5
(there is also 1.7.8 in C:\Program Files (x86)\Arduino)

Extracted utils folder from Arduino 1.5 (C:\Users\wwa\AppData\Local\Temp\arduino-1.5-windows.zip\arduino-1.5\hardware\tools\avr\utils)
to C:\Users\wwa\workspace\arduino-1.6.5-r5\hardware\tools\avr

The plugin configuration dialog tells me it can't find the make utility
After specifying a custom make in "project properties/ C/C++ Build"
(C:\Users\wwa\workspace\arduino-1.6.5-r5\hardware\tools\avr\utils\bin\make)
the project will build without hiccups.

So where does the plugin actially look for the make utility?
Did I mess up the directory I installed it in?

There are two more slight annoyances which might be new in the Mars release of Eclipse
The Arduino libraries and the private libraries are not separated; and the 'Compile Options' dialog does not draw the text input boxes. (see attached screenshots)

PS: Thank you, Jantje, for creating and maintaining this plugin.



Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jan 12, 2016, 01:38 pm
Belebog
We're working on a new version which I'm considering calling version 3.0. Note that this version is not the nightly at the time of writing.
This version no longer needs the arduino ide nor any configuration and the make issue is fixed.

As you point out there is a inconsistency in the "find make utility" in the preferences -I was not aware about this-.
The "find make utility" simply tries to run make with the standard path.

However when compiling the path is modified (folders are added to the path) as a result one can say :
For any location that is added to the path during build: if a make.exe is located there the test will fail but the build will succeed.
I'm not going to bother about this as I feel the make issue is far to overrated and it will be fixed properly in the next release.*

As to: The Arduino libraries and the private libraries are not separated
see https://github.com/jantje/arduino-eclipse-plugin/issues/327 (https://github.com/jantje/arduino-eclipse-plugin/issues/327)

As to: the 'Compile Options' dialog does not draw the text input boxes. (see attached screenshots)
Could you create a github issue? I'm supporting this.

Best regards
Jantje

*There is also a difference in the location where the make command is run
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: simonwright on Jan 21, 2016, 05:34 pm
New user here, on OS X El Capitan, Java 1.8.0_66, for Arduino Due.

Running the nightly; mac64.2016-01-21_03-16-10.tar.gz solves earlier problems, and I can now build & run a simple sketch. Thank you very much.

If I double-click on eclipseArduino, the Mac says the application is damaged and can't be opened. I can get it to open by

$ cd eclipseArduino.app/Contents/MacOS/
$ ./eclipseArduinoIDE --vmargs -XX:MaxPermSize=4096m

(I have the RAM - might as well use it! I don't know what the default max value is. One of the earlier nightlies, I think 2016-01-06, needed this extra setting)

The 1.6.6 board version worked fine. I noticed that if I change board version there's an error message that platform.txt (I think) is already there; I carried on, everything OK.

Upload tried to use arduinoPlugin/tools/arduino/bossac/1.5-arduino/bossac but there is only arduinoPlugin/tools/arduino/bossac/1.6.1-arduino/bossac; I copied that to the expected place, all OK!

I noticed that the error log contains "The folder /Applications/Arduino.app/Contents/Java/hardware:' does not contain any files." repeatedly - which (a) isn't true, (b) should it even be looking there?

I noticed that in order to use HIGH, OUTPUT etc I had to #include <wiring_constants.h> - I don't think the Arduino IDE needs this?

Since I'm new to Eclipse, as well as the Due, I expect some of these are simple errors on my part!

Thanks again,

--S
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jan 21, 2016, 06:22 pm
Hi simon
Thanks for reporting.
Toddler is a big change and intended to get it working out of the box. It seems it did that just fine.
Surely knowing this is still a alfa version.

As to the issues.
The damaged application is something I can not comment due to lack of knowledge.


The 1.6.6 board version worked fine. I noticed that if I change board version there's an error message that platform.txt (I think) is already there; I carried on, everything OK.
I assume you are talking about the boards manager and you adding/changing version.
Note that though you can install multiple versions of the same platform you shouldn't as this is still buggy.

Upload tried to use arduinoPlugin/tools/arduino/bossac/1.5-arduino/bossac but there is only arduinoPlugin/tools/arduino/bossac/1.6.1-arduino/bossac; I copied that to the expected place, all OK!
I assume you had 2 versions of the same platform installed and that caused the problem.
Note that I fixed an error in this area yesterday so my assumption may be wrong.

I noticed that the error log contains "The folder /Applications/Arduino.app/Contents/Java/hardware:' does not contain any files." repeatedly - which (a) isn't true, (b) should it even be looking there?
A) weird but other users on other oses reported similar behaviour. I need to investigate. Can you make a github issue?
B) only if you added  /Applications/Arduino.app/Contents/Java/hardware to your private hardware paths. Which is not needed.


I noticed that in order to use HIGH, OUTPUT etc I had to #include <wiring_constants.h> - I don't think the Arduino IDE needs this?
Standard issue http://eclipse.baeyens.it/faq.shtml#/troubleshooting (http://eclipse.baeyens.it/faq.shtml#/troubleshooting) read "Eclipse tells me there are bugs in my code but it compiles ok."

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: simonwright on Jan 22, 2016, 11:35 am
As to the issues.
The damaged application is something I can not comment due to lack of knowledge.
It's because the application isn't signed by an "identified developer". For a fix (to be applied by the user), see https://www.yourkit.com/download/mountain_lion.html.

I assume you are talking about the boards manager and you adding/changing version.
Note that though you can install multiple versions of the same platform you shouldn't as this is still buggy.
I assume you had 2 versions of the same platform installed and that caused the problem.
At one point I did; will try again with a clean workspace.

Note that I fixed an error in this area yesterday so my assumption may be wrong.
A) weird but other users on other oses reported similar behaviour. I need to investigate. Can you make a github issue?
B) only if you added  /Applications/Arduino.app/Contents/Java/hardware to your private hardware paths. Which is not needed.
Will have another go to confirm, then raise an issue if I've not sorted it out.

Best regards,

--S
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: leenowell on Feb 06, 2016, 05:49 pm
Hi

I have just downloaded the combined eclipse/plugin from your website and can get simple projects up and running including use of the Arduino libraries. Rather than using an Arduino, I am using an esp8266.

The next step in my testing is to include the esp SDK which comes as a bunch of header files and corresponding ".a" (static lib) files.  The trouble I have is getting the libraries included in the project.  I have tried the following....

1. Adding it to the "paths and symbols" section of the project properties - this was suggested on an eclipse forum.  Unfortunately there are now library orientated tabs to add it to
2. I tried dragging and dropping the .a into the project - no joy
3. I tried moving it to the library directory (sub-directory of the same name as the library [-lib]) that I specified when configuring the plug-in.  This made it appear in the Arduino->"Add a library to selected project" so selected it and it appeared in the libraries folder in the project.

The compile symptom is that it finds a bunch of undefined references which should be in the library.  Looking at the console output, I don't see any reference to the library I am trying to add irrespective of which of the above options I try.

The only other thing I can add is that I believe the library is a "c" lib.

Any help greatly appreciated.

thanks

Lee.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: leenowell on Feb 06, 2016, 07:41 pm
Quick update....

I have also tried decomposing the lib into object files and then adding them but still no joy.  I then scanned for updates in Eclipse and it offered v3 of the plugin.  I updated all, eclipse restarted and I saw the new splash screen (looks nice by the way) but now there seems to be no sign of the plugin e.g.
- it says that the Arduino is deprecated
- build doesn't do anything
- the arduino UI stuff has gone
etc.

This was by loading my workspace I was working on earlier.

Any thoughts?

thanks

Lee.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: winneymj on Feb 07, 2016, 02:11 am
Hi,
I am new to the Eclipse/Arduino plugin...and I am having a really hard time adding a the libstdc++ library to the linker/combiner.
I tried to edit the properties->C/C++ Build->Environment, A.COMPILER.C.ELF.LIBS and adding -llibstc++ to the end but it never seems to save.
I even tried adding manually to the "make" file or the org.eclipse.cdt.core.prefs, but they are regenerated each time I build so the changes are lost.
Please help.  I so much want to use the plugin with the std templates but I am getting so frustrated.

For information purposes I am using Eclipse Luna,with Arduino v 1.5.6-r2

Any help is appreciated.

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: leenowell on Feb 07, 2016, 02:23 am
When I was trying to include my library in the issue above, I managed to get it to be included in the command line by adding a project specific variable which included it. In essence, you add the library list variable (sorry not at a PC at the moment) as a new variable to the project and it drags in the global value. Adding the -lxxx to it seemed to work. However in my case, I still had unreferenced functions at link time so didn't seem to actually bring the library in.

I also read you can change it in your platform.txt file too.

Pls could you post your progress as it may also help me with my problem.

Thanks

Lee
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: leenowell on Feb 07, 2016, 01:48 pm
[SOLVED]

Hi All,

I have fixed my issue.  I added the lib path and library inclusion to the to platform.txt file.  I am sure there is a neater way but at least it worked for the moment.  My linker issue seems to be as a result of the way the plug-in treats .ino files to .cpp files.  I have configured eclipse to recognise .ino as a C++ source file but the problem seems to be that the plug-in treats them differently and the resulting makefile is different.

Anyway.... when creating the new sketch I used "default cpp" instead and it seems to work fine now.

thanks

Lee.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 07, 2016, 04:53 pm
@Lee
good. Thanks for sharing you fixed it.
Also know there is a whole bunch of documentation here: http://eclipse.baeyens.it/ (http://eclipse.baeyens.it/)
On ino versus cpp there is an article here http://blog.baeyens.it/#post13 (http://blog.baeyens.it/#post13)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: winneymj on Feb 07, 2016, 05:55 pm
Modifying the platform.txt fixed my libstd++ library problem.  I updated the line to look like:

compiler.c.elf.libs=-lm -lgcc -lhal -lphy -lpp -lnet80211 -llwip -lwpa -lcrypto -lmain -lwps -laxtls -lsmartconfig -lmesh -lstdc++


FYI - I saw someone having problems with the Eclipse/Arduino and ESP8266.  I wrote up a quick summary of how to get it working on my blog....here (https://bagaloozy.wordpress.com/2016/02/04/outgrew-the-arduino-ide-how-to-setup-eclipsearduinoesp8266/)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 07, 2016, 07:57 pm
Why not simply install Arduino IDE 1.6.5 and use the boardsmanager with the esp community json?
https://github.com/arduino/Arduino/wiki/Unofficial-list-of-3rd-party-boards-support-urls (https://github.com/arduino/Arduino/wiki/Unofficial-list-of-3rd-party-boards-support-urls)

In the nightly you can directly add the jason http://arduino.esp8266.com/stable/package_esp8266com_index.json
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: leenowell on Feb 08, 2016, 01:41 pm
@Jantje - thanks for your reply and also the link to your article on ino files.  In my journey to get this up and running, I discovered the following....

1. using the wizard to create a new project using "default cpp" and "default ino" seems to generate different link commands. At link time, the cpp version works and includes the library I added but the ino version does not even though I can see it in the link line.

2. after installing your combined package (eclipse and your plugin) I thought upgrading to the latest version of your plugin may help.  I went to help->software updates and updated everything including your plugin to version 3.  When I restarted eclipse it was as if the plugin had gone. It said the arduino toolchain had been deprecated, no ability to create a new arduino project and the arduino perspective was gone.

As I mentioned above, I am now up and running and happily using your plugin however.... if either of these are bugs/ issues and you would like me to run anything, forward logs etc etc to help please let me know.

BTW - I am running on Linux...

thanks

Lee.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 08, 2016, 01:53 pm
1. using the wizard to create a new project using "default cpp" and "default ino" seems to generate different link commands. At link time, the cpp version works and includes the library I added but the ino version does not even though I can see it in the link line.
This would be a bug. Can you provide reproduction steps and how you see this happening?

2. after installing your combined package (eclipse and your plugin) I thought upgrading to the latest version of your plugin may help.  I went to help->software updates and updated everything including your plugin to version 3.  When I restarted eclipse it was as if the plugin had gone. It said the arduino toolchain had been deprecated, no ability to create a new arduino project and the arduino perspective was gone.
I havn' looked into upgrading to V3 yet. You will at least need to do the upgrade steps as described here
http://eclipse.baeyens.it/how_to.shtml#/n (http://eclipse.baeyens.it/how_to.shtml#/n)

Here is a video that does https://www.youtube.com/watch?v=uiVblO-fv0A (https://www.youtube.com/watch?v=uiVblO-fv0A) the same as explained here http://eclipse.baeyens.it/how_to.shtml#/f (http://eclipse.baeyens.it/how_to.shtml#/f)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: leenowell on Feb 08, 2016, 04:49 pm
Initially I used your combined package (where I saw issue 2) but then switched to use the standard c/C++ version of eclipse (fresh install) and then added your plugin (where I could reproduce issue 1 in a controlled manner)...

So to reproduce them....

Issue 1 - fresh eclipse + v2.4 (I think that is your latest version number) of the plugin

Code: [Select]
1. edit platforms.txt to add the include directory of a library header file, library path and the library itself to the correct variables. [I was using the esp8266 sdk but think any .a and .h combo should work]
2. create a new arduino project based on default cpp
3. create a new arduino project based on default ino
4. edit both projects to include the following
     - #include <header file name>
     - in loop (although it doesn't matter where) make a call to a function you know is in the library
5. compile both projects


The ino one should fail at link time with an unresolved link to the function you called (as if it didn't include the library we specified in the platform.txt).  The cpp one should compile fine.  Comparing the makefiles generated by each projects show the inclusion of the items you added in 1 but the commands are different.

Issue 2 - your combined eclipse + plugin install
When I went to help->software updates, one of the updates was your v3.  After install, there was no sign of arduino in the IDE so couldn't do the post upgrade steps.

thanks

Lee.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 08, 2016, 05:21 pm
What you are doing with issue 1 is absolutely no use case of the plugin. Adding libraries to the platform.txt involves some undocumented hocus pocus.

Can you please answer the question below?

Why not simply install Arduino IDE 1.6.5 and use the boardsmanager with the esp community json?
https://github.com/arduino/Arduino/wiki/Unofficial-list-of-3rd-party-boards-support-urls (https://github.com/arduino/Arduino/wiki/Unofficial-list-of-3rd-party-boards-support-urls)

In the nightly you can directly add the jason http://arduino.esp8266.com/stable/package_esp8266com_index.json
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: leenowell on Feb 08, 2016, 06:55 pm
I think this is what I have done. I installed Arduino IDE 1.6.5 and installed to board manager using the json. This works fine for the Arduino 'libs' and examples. I then installed eclipse/ the plug in pointing it to the arduino install. Using the arduino libs via the plugin selector works perfectly.  The problem is that I need to include a static c lib which is part of the eso8266 SDK - this is the lib I am referring to. 

The platform.txt / changing the variables you use 'hack' was because I couldn't find any other way of adding the library.  Clearly adding here is also not ideal as it is not project specific. Is there a better way to add it?

Thanks

Lee.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 08, 2016, 07:33 pm
Have you tried dragging and dropping the files in the project?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: leenowell on Feb 08, 2016, 07:39 pm
Ah... Good point. I did but that was with the ino project. The lib appeared in the link line but as above didn't seem to actually be linked. I will try this on the CPP version and report back. Would it help if I posted the link lines for both projects so you can see the different commands executed? From memory the executables used during link are different depending on whether you pick ino vs CPP
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 08, 2016, 08:14 pm
Ah... Good point. I did but that was with the ino project. The lib appeared in the link line but as above didn't seem to actually be linked. I will try this on the CPP version and report back. Would it help if I posted the link lines for both projects so you can see the different commands executed? From memory the executables used during link are different depending on whether you pick ino vs CPP
The only difference the 2 should have is .ino.cpp.o versus myfile.cpp.o. So if you see another difference please report it.
To make sure the 2 projects are identical please do as follows.
Make a project (I suppose with .ino) click verify (not build) and copy the console output.
Rename the .ino to .cpp (delete the .ino.cpp if it is still there) and verify and copy the console output.
Compare the console output.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: leenowell on Feb 08, 2016, 10:00 pm
hi Jantje

Attached is a zip file of the console outputs from my various tests as promised.  Tests performed were [console output filename is in square brackets]...

1. Create a project as an ino build it [Initiallyino-ino.txt]
2. rename .ino to .cpp; delete the release dir; build it [Initiallyino-cpp.txt]
3. Create a project as a cpp build it [InitiallyCPP-cpp.txt]
4. rename .cpp to .ino; delete the release dir; build it [InitiallyCPP-ino.txt]

Odd thing shown here is that when initially cpp the cpp version compiles.  When it was initially an ino and changed to cpp, the ino version compiled but the cpp did not - see Initiallyino-cpp.txt

The next test was to explicitly use the esp library so I added to the top of the file Initiallyino.x file only (didn't repeat on the other project)

Code: [Select]
#include <Arduino.h>
extern "C"
{
#include <espnow.h>
}


as well as a call to "esp_now_init();"

5. deleted release dir; rebuilt as cpp file [Initiallyino-cpp-esp.txt]
6. deleted release dir; renamed cpp to ino; rebuilt as ino file [Initiallyino-ino-esp.txt]

The cpp version builds fine, the ino version fails

Final test was ...

7. remove my lib path and -lespnow from platforms.txt and drag and drop libespnow.a into the project. remove release dir and rebuild - [Initiallyino-ino-esp-libinproj.txt]

Looking at the output, it looks like the library was not picked up.

In case the naming convention of the output files isn't obvious....

Initially[original default used]-[file extension][-esp if used].txt

If you would like me to run any further tests etc. pls let me know.

thanks very much for your help and support

Lee.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 08, 2016, 10:20 pm
I guess you missed this: (delete the .ino.cpp if it is still there)

I also just found out ubuntu 14.X.Y has a problem with java8 which may explain why a upgrade to V3 (using java 8) is not working on your system
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: leenowell on Feb 08, 2016, 10:42 pm
oops - yes I did.... I assumed that deleting the release directory got me clean again - sorry.  Are there specific tests you want me to re-run or shall I do the lot again -  this time deleting the file :)

As for the java issue.... I am using 14.04 so could well be the issue..

thanks

Lee.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 08, 2016, 11:10 pm
if you really think there is a difference between ino and cpp.... please do the test again.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: leenowell on Feb 09, 2016, 10:22 pm
Hi Jantje

Sorry for the late reply I haven't had chance to run the tests until now. Instead of running all the tests again I focused on one to highlight the difference.  The tests were....
1. Added a new project based on  "default CPP" - ProjectCPP
2. Clean build as it is.... output file is ProjectCPP_CPP.txt
3. Deleted the Release directory in eclipse and no .ino.cpp file to delete
4. Changed the .CPP file to include the header files and call the function from the library - code is shown in ProjectCPP.ino in the zip but was a .CPP for this test.  output file is ProjectCPP_CPP_esp.txt.  This compiles and links fine.
5. Deleted the Release directory in eclipse and no .ino.cpp file to delete
6. renamed the .CPP file to .ino
7. Build fails with link issue - output in ProjectCPP_INO_esp.txt

These tests were all with the updated platform.txt to include the include/ lib paths and the library - also contained in the zip file.

If you need me to run any other test or need any further info, please let me know.

Also.... besides putting the lib and path in the platforms.txt file is there a better/ project option you would advise? Maybe overriding the relevant variables in the project?

thanks again for your help

Lee.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 09, 2016, 11:15 pm
I don't know what your problem is but from the zip file I can clearly see that the only difference in the combine command is the file name .ino.cpp.o versus ./ProjectCPP.cpp.o   
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: leenowell on Feb 10, 2016, 09:09 am
Hi Jantje

I think I have found the problem although I only had 2 mins to look this morning. The problem is that when you copy the #includes from the .ino to the .ino.CPP file the extern "C" wrapper is not preserved. Therefore at compile time it is assumed to be C++ header file. At link time the compiler is then look for a library containing the C++ mangled version of the function rather than the clean C version.

I see in the .ino.CPP file you are adding Arduino.h (I assume because the Arduino ide does this too) and an early declaration of the setup and loop functions. Why are the includes from the ino file added too? I had assumed (didn't have time to check) that when the include of the ino is actioned it would be picked up then. Also, wouldn't this preclude the need for the setup and loop declarations?

Thanks

Lee.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 10, 2016, 11:30 am
@lee
You have been receiving personal support from me. I think it is time for you to show your support to the arduino eclipse plugin community https://www.patreon.com/jantje?ty=h (https://www.patreon.com/jantje?ty=h)

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Marrek on Feb 12, 2016, 11:32 pm
hi there;

23:09:24 **** Incremental Build of configuration Release for project arduinoSketch ****
make all
process_begin: CreateProcess(C:\cygwin\bin\echo.exe, echo "Building file: ../arduinoSketch.cpp", …) failed.
make (e=87): Parametr není správný.(Parameter is wrong)

make: *** [arduino/arduinoSketch.cpp.o] Error 87

23:09:25 Build Finished (took 188ms)

I got arduino ide 1.6.5, win xp sp3, eclipse luna
{ide is supported, make is found on your system

thx
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 12, 2016, 11:51 pm
I decided to no longer respond to issues -and other questions- due to a lack of support.
As a patron you can post a message on the patreon forum stating you support a issue. This allows me to support people who support me.
https://www.patreon.com/posts/3700469
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: damonbeales on Mar 06, 2016, 09:49 pm
Hi - I have a current issue with the Product, but I'm a little confused as to where to post to for support. The comment above from Jantje implies that I can post on the patreon forum if I wish to support an issue. But that's not what I want - I need support with an issue!

(I'm stuck on how to configure Eclipse Arduino to upload using usbasp. The settings page requires a USB port be entered, so I don't know what to put, as usbasp doesn't show as a USB device in the normal way. I'm using Mac OS X.)

(By the way Jantje - Eclipse Arduino is really excellent and you deserve our support - I've pledged via patreon)

Regards,
Damon
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 06, 2016, 10:18 pm
Damon
If you pledged on Patron please post your question there.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: keesbakker on Mar 27, 2016, 12:13 pm
Hi

As I mentioned a while ago we (SODAQ) have several boards of our own and I maintain the JSON and "core" files for our AVR and SAMD boards.

For this to work with ArduinoEclipse I need to make a few changes. I've pushed them to
   https://github.com/keestux/arduino-eclipse-plugin.git
Branch sodaq/stable

Code: [Select]
eae1605 For upload just use tool from "vendor:tool" if the vendor part is "arduino"
066f1c1 Fall back to (default?) platform packager when doing getTool


The first (066f1c1) is just a precaution to avoid a null in some cases.

The second (eae1605) has to do the the <verdor> ':' <tool> syntax in boards.txt. If the vendor part is "arduino" it simply uses the tool part. It is not a final solution, but it works well as a workaround.

In case you want test this with our Boards Manager JSON, add this URL to the list of "Locations".
Code: [Select]
http://downloads.sodaq.net/package_sodaq_index.json

Let me know what you think of it.
-- Kees
Title: Working pretty fine, even on complex projects... what about an EMU?
Post by: corradocampisano on Apr 15, 2016, 03:26 pm
Hi there,
I can say the V3 works pretty fine (on a laptop with debian 8 jessie), just had to install java8 from Oracle.

A larger snapshot and some comments are here (http://www.servicemix.eu/_ARDUINO/IrriguinoWeatherStation/).


I wonder if there are any plans to provide a simulator, just like I had with Maemo (http://wiki.maemo.org/Documentation/Maemo_5_Final_SDK_Installation) for my Nokia N900...


anyway, great job indeed.

thx
corrado
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 15, 2016, 05:22 pm
@corradocampisano
Thanks for the nice words.
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: laza on May 09, 2016, 08:18 am
installed all new, downloaded and installed the eclipse plugin by the installer, where did I go wrong. Thks.



Description   Resource   Path   Location   Type
Invalid arguments '
Candidates are:
void digitalWrite(unsigned char, unsigned char)
'   Blink.ino   /test1   line 25   Semantic Error
Invalid arguments '
Candidates are:
void digitalWrite(unsigned char, unsigned char)
'   Blink.ino   /test1   line 27   Semantic Error
Invalid arguments '
Candidates are:
void pinMode(unsigned char, unsigned char)
'   Blink.ino   /test1   line 20   Semantic Error
Program "g++" not found in PATH         Preferences, C++/Build/Settings/Discovery, [CDT GCC Built-in Compiler Settings] options   C/C++ Scanner Discovery Problem
Program "gcc" not found in PATH         Preferences, C++/Build/Settings/Discovery, [CDT GCC Built-in Compiler Settings] options   C/C++ Scanner Discovery Problem
Symbol 'HIGH' could not be resolved   Blink.ino   /test1   line 25   Semantic Error
Symbol 'LOW' could not be resolved   Blink.ino   /test1   line 27   Semantic Error
Symbol 'OUTPUT' could not be resolved   Blink.ino   /test1   line 20   Semantic Error
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on May 09, 2016, 12:26 pm
read "Eclipse tells me there are bugs in my code but it compiles ok." here http://eclipse.baeyens.it/faq.shtml#/troubleshooting (http://eclipse.baeyens.it/faq.shtml#/troubleshooting)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: surbyte on May 10, 2016, 08:55 pm
Sorry for a dumb question.
I have downloaded Eclipse V3 64 bits ten times. It breaks around 90MB more or less.
Any help would be much appreciated?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on May 10, 2016, 09:19 pm
use firefox not chrome
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Cosme_Fulanito on May 10, 2016, 09:50 pm
For the record, both Opera (old one) and Vivaldi downloaded failed several times but ultimately worked.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: pgoth on May 25, 2016, 11:52 am
Hi,
I've just installed the 3.0 bundle of ecplise and plugin and I've been moving my projects to the eclipse workspace from IDE.. and unfortunately I've run into an issue that I have problems to resolve..

To troubleshoot, I have reinstalled with an empty workspace and one dependency that I have in the project is the RF24 library. Without any coding done - I've just added the library to the project - I get compilation errors..

The library is using a config file that looks at system definitions such as "ARDUINO" in a file called RF24_config.h (https://github.com/TMRh20/RF24/blob/master/RF24_config.h)  and my suspicion is that these are not defined.
Any advice on how to verify that the compiler gets the variables?

Much appreciated!
//pg
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on May 25, 2016, 01:41 pm
read "How can I find out more of the problem at hand?" here http://eclipse.baeyens.it/faq.shtml#/troubleshooting (http://eclipse.baeyens.it/faq.shtml#/troubleshooting)

note:
I decided to no longer respond to issues -and other questions- due to a lack of support.
As a patron you can post a message on the patreon forum stating you support a github issue. This allows me to support people who support me (starting from as low as 1$ a month exclusive VAT).
https://www.patreon.com/posts/3700469
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: pgoth on May 26, 2016, 10:04 am
Ok, got it... I've read that page already and I am giving up after 2 days trying to find a solution. Thanks for the response though. I understand it is challenging and time consuming to support everyone

read "How can I find out more of the problem at hand?" here http://eclipse.baeyens.it/faq.shtml#/troubleshooting (http://eclipse.baeyens.it/faq.shtml#/troubleshooting)

note:
I decided to no longer respond to issues -and other questions- due to a lack of support.
As a patron you can post a message on the patreon forum stating you support a github issue. This allows me to support people who support me (starting from as low as 1$ a month exclusive VAT).
https://www.patreon.com/posts/3700469
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on May 26, 2016, 03:27 pm
Quote
I've read that page already
You may have read it, but you have not acted upon it.  :smiley-confuse:
This is how your input comes to me https://github.com/jantje/arduino-eclipse-plugin/issues/453 (https://github.com/jantje/arduino-eclipse-plugin/issues/453)
This is how I like to get input https://github.com/jantje/arduino-eclipse-plugin/issues/460 (https://github.com/jantje/arduino-eclipse-plugin/issues/460)

Think about it these way:
1) Garbage in -> garbage out
2) It is my problem, what do "I need to do to" get help?
3) If I need help; what do I expect from people before I help?

And about this:
Quote
... I am giving up after 2 days trying to find a solution. Thanks for the response though. I understand it is challenging and time consuming to support everyone
How much do you charge a day? Given the fact that you are willing to spend 2 days to avoid a 1$(exclusive vat) investment risk; you might have a day price that is very attractive to me.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: simondid on Jul 10, 2016, 10:10 pm
so i been traying out the eclipse bundled you gouys made and i found my first problem

so when i start eclipse and open a sketch and i uploade it every thing is fine i go setup my serial monitor view then i make som changes and wanna reupload this time im this error log
Quote
Serial port com4 already in use. Try quiting any programs that may be using it
Port name - com4; Method name - openPort(); Exception type - Port busy.
i found a solution to this problem for me to be able to reupload the program with changes i need to go into serial mintor view and selec remove a serial port form the mintor this fixes it but is also kinda irretating any fixes??
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 10, 2016, 10:36 pm
Are you sure you are pressing the upload button and not the "open serial monitor button"?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: hansibull on Jul 10, 2016, 11:38 pm
How can one burn the bootloader and upload using a programmer in Eclipse?
I can't seem to find it. I'm running the latest version of eclipseArduino (V3)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: simondid on Jul 11, 2016, 10:09 am
Quote
Are you sure you are pressing the upload button and not the "open serial monitor button"?
so i whent over the problem agien it seemes if i connect the serial monitor bay using the plus button in the serial monitor view i get the error but if i use the open serial monitor next to the open scope button i get no error
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: DanRR on Jul 12, 2016, 09:26 am
Hi,
I've installed the latest nightly build eclipse IDE with v3 plugin on Xubuntu 16.04
I got the following error when compiling a new project:

Program "/bin/avr-g++" not found in PATH

I've looked in project propertied, but didn't found where should I set the correct path.
Thanks
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 12, 2016, 12:17 pm
Hi,
I've installed the latest nightly build eclipse IDE with v3 plugin on Xubuntu 16.04
I got the following error when compiling a new project:

Program "/bin/avr-g++" not found in PATH

I've looked in project propertied, but didn't found where should I set the correct path.
Thanks
you probably installed a additional board not based on a json file.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: DanRR on Jul 15, 2016, 02:57 am
Thanks Jantje,
I'm not sure I understand your replay. I didn't installed anything after setting the packaged IDE with Arduino plug-in. I'm using Uno board.
Could you please give me specific advice how to fix it? 
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 15, 2016, 12:25 pm
You can not correct the path. The path is configured in the json file. The arduino boards are automatically installed when the plugin starts based on a json file.
I'm not sure how mutch Xubuntu  cmpares to ubunto but have a look at this video ubuntu V3 install (https://www.youtube.com/watch?v=AmePMUuv0uk&list=PLCSjf7QmP3TDPSjT_5UIp0DHXzKdhIQsF&index=5)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: fari5 on Aug 08, 2016, 03:53 pm
Hi,

can anyone tell me how to add addidtional arduino boards in the Linux version of the V3 plugin? I have a due and I'm using Ubuntu 16.04.

In the install video of the V3 plugin for Ubuntu Jantje said that he will add another video to explain how to use the board manager of the Linux version. But I think this video has not been released yet, at least I'm unable to find any information about it.

Thanks in advance
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 08, 2016, 04:12 pm
https://www.youtube.com/playlist?list=PLCSjf7QmP3TDPSjT_5UIp0DHXzKdhIQsF
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: fari5 on Aug 09, 2016, 01:39 pm
Hi Jantje,

may be I'm blind, but I think I have already searched your videos.
As I said I just found a comment on the Ubuntu install video, that a video about how to select non AVR boards in the Linux version of your plugin is still to come, but I can't find it.

However, I don't necessarily need a video, just a hint how to do it. I saw that in the previous version of the plugin there was a board.txt file selector. Do I have to edit the boards.txt file to get non AVR boards working?

Sorry for bothering you with this, but I think your plugin is a great improvement for programming arduino and I would really like to use it.

Thanks again
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 09, 2016, 02:09 pm
There is no difference between linux and windows. I think what you want to see starts around 10:50 in the new and noteworthy part 1.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: fari5 on Aug 09, 2016, 05:49 pm
OK, now I'm confused.

In my project preferences window the are no subentries in the arduino section, it looks exactly like in your ubuntu install video at 3:30. That's why I thought that this is something Linux specific.
The additional entries Libraray Manager, Locations and Platforms and Boards that are visible in your new and noteworthy part 1 are not there.

May be I start the wrong file? I have no eclipseArduinoIDE as it is shown in the Ubuntu video so I'm starting the sloeber-ide file.

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 09, 2016, 05:52 pm
It is not in project properties but in windows->preferences.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: fari5 on Aug 09, 2016, 05:57 pm
OK, my fault.

I missed that I have to select the Window -> Preferences instead of the project preferences so I always looked at the wrong place.

Sorry for the confusion and thanks again for your help.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 09, 2016, 07:11 pm
It would be appreciated if you showed your appreciation in support at patron. https://www.patreon.com/bePatron?patAmt=1&u=798640 (https://www.patreon.com/bePatron?patAmt=1&u=798640)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: fari5 on Aug 10, 2016, 10:50 am
I'll do so, if the plugin turns out to be as helpful for me as I hope it will be. (Basically my goal is to do some debugging with gdb and qemu).

I know how it is to give support and to never hear a word again when people have what they want (not even a thank you)

But first of all I'll be on vacation and after that I'll play with your plugin again.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: lightaiyee on Aug 19, 2016, 02:11 pm
I just come to know of the existence of this Eclipse Arduino software. Wonderful! May I know if one can directly write in cpp files instead of .ino? I would very much prefer to write directly in cpp files.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 19, 2016, 03:22 pm
I just come to know of the existence of this Eclipse Arduino software. Wonderful! May I know if one can directly write in cpp files instead of .ino? I would very much prefer to write directly in cpp files.
.ino files were originally not supported. So yes .cpp only is fully supported.
Note however this means you can no longer share your projects with Arduino IDE users.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Arsur on Sep 01, 2016, 11:42 am
Hi I have the following Problem. Iam tring to build a scetch i made and it gives me the following error over console.

**** Incremental Build of configuration Release for project WifiWeatherLight ****
"C:\\Program Files\\eclipse-arduino\\arduinoPlugin\\tools\\make\\make" all
'Building file: ../.ino.cpp'
'Starting C++ compile'
"C:\Program Files\eclipse-arduino\arduinoPlugin\tools\esp8266\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:/Program Files/eclipse-arduino/arduinoPlugin/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/include" "-IC:/Program Files/eclipse-arduino/arduinoPlugin/packages/esp8266/hardware/esp8266/2.3.0/tools/sdk/lwip/include" "-IC:/Users/***User***/Documents/Eclipse-Arduino-Workspace/WifiWeatherLight/Release/core" -c -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=160000000L -DLWIP_OPEN_SRC  -DARDUINO=10609 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_NODEMCU\"" -DESP8266  -I"C:\Program Files\eclipse-arduino\arduinoPlugin\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266" -I"C:\Program Files\eclipse-arduino\arduinoPlugin\packages\esp8266\hardware\esp8266\2.3.0\variants\nodemcu" -I"C:\Program Files\eclipse-arduino\arduinoPlugin\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi" -I"C:\Program Files\eclipse-arduino\arduinoPlugin\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src" -I"C:\Program Files\eclipse-arduino\arduinoPlugin\packages\esp8266\hardware\esp8266\2.3.0\libraries\Ticker" -I"C:\Program Files\eclipse-arduino\arduinoPlugin\packages\esp8266\hardware\esp8266\2.3.0\libraries\Wire" -I"C:\Users\***User*** \Documents\Arduino Libraries\weather-station-v2" -I"C:\Users\***User*** \Documents\Arduino Libraries\weather-station-v2\src" -MMD -MP -MF".ino.cpp.d" -MT".ino.cpp.o" -D__IN_ECLIPSE__=1 -x c++ "../.ino.cpp" -o ".ino.cpp.o"  -Wall
In file included from ../WifiWeatherLight.ino:4:0,
                 from ../.ino.cpp:15:
C:\Users\***User*** \Documents\Arduino Libraries\weather-station-v2/WeatherClient.h:28:7: error: redefinition of 'class WeatherClient'
 class WeatherClient {
       ^
In file included from ../.ino.cpp:10:0:
C:\Users\***User*** \Documents\Arduino Libraries\weather-station-v2/WeatherClient.h:28:7: error: previous definition of 'class WeatherClient'
 class WeatherClient {
       ^
subdir.mk:24: recipe for target '.ino.cpp.o' failed
make: *** [.ino.cpp.o] Error 1


Iam running the following Version V3.1_win64.2016-08-03_16-31-05
I tried to include the following library https://github.com/squix78/esp8266-projects/tree/master/arduino-ide/weather-station-v2

It seems for as he would try to inculde 2 times the library but there is only one include in my .ino file
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 01, 2016, 10:13 pm
When using .ino files all header files need a double inclusion guard.
something like
#ifndef WeatherClient_H
#define WeatherClient_H
....
#endif
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: fari5 on Sep 02, 2016, 08:05 am
I'd like to support you, but I don't like regular payments. Is there a way do to a single payment?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Tehnicni on Sep 02, 2016, 11:18 am
I missed these topic and opened a new one http://forum.arduino.cc/index.php?topic=421878.new#new
Can somebody help me.
Debuging and source changing is no option, because I would like to maintain compatibility with ArduinoDroid. In the Arduino IDE and CodeBlock there was no problem, Arduino always work in same way
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 02, 2016, 12:15 pm
@fari5
There is only patreon. You can always stop your subscription. That is the best way to do a single payment.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 02, 2016, 12:28 pm
@Tehnicni
As you are a newbe please start from the product install at http:\\sloeber.io (http://http:\\sloeber.io)
Take the latest stable version for your os.
Then look at a couple of these video's to understand how it works: https://www.youtube.com/playlist?list=PLCSjf7QmP3TDPSjT_5UIp0DHXzKdhIQsF (https://www.youtube.com/playlist?list=PLCSjf7QmP3TDPSjT_5UIp0DHXzKdhIQsF)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Tehnicni on Sep 02, 2016, 03:20 pm
Installing win32.2016-08-30_04-19-54.tar.gz produce these error
(https://dl.dropboxusercontent.com/u/94229059/Forumi/Eclipse%20error.png)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 03, 2016, 10:51 am
I tried here with win 64 (I have no 32 bit java on my system) it worked fine.
I assume there was network glitch 32152 lines in a json file is quite a lot.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Tehnicni on Sep 03, 2016, 11:53 am
Installing win32.2016-08-30_04-19-54.tar.gz produce these error
These was on Win7 64bit computer.


With 2016-08-26 win32.2016-08-26_04-18-21.tar.gz installation without problem, but I get error at build, with which I really don't know what to do



(https://dl.dropboxusercontent.com/u/94229059/Forumi/Eclipse%20error1.png)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 03, 2016, 12:08 pm
@Technici
This looks like a json/platform issue.
Which json/board do you use?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Arsur on Sep 04, 2016, 05:26 pm
Quote
When using .ino files all header files need a double inclusion guard.
something like
#ifndef WeatherClient_H
#define WeatherClient_H
....
#endif
I did this. Due to the fact that iam not much into c Programming, i send you a piece of my code. Even people around me couldnt find the error. Thats why i think the error is maybe not on my side.

#include <Ticker.h>

#include <ESP8266WiFi.h>

#ifndef WeatherClient_H
#define WeatherClient_H


#include <WeatherClient.h>


#endif

WeatherClient weather;
Ticker ticker;


// your network SSID (name)
char ssid[] = "********";
// your network password
char pass[] = "******";

// Go to forecast.io and register for an API KEY
String forecastApiKey = "*******";

// Coordinates of the place you want
// weather information for
double latitude = **.*;
double longitude = **.*;

// flag changed in the ticker function every 10 minutes
bool readyForWeatherUpdate = true;

void setReadyForWeatherUpdate();

void setup() {

Serial.begin(115200);
  Serial.println();
  Serial.println();

  // We start by connecting to a WiFi network
  Serial.print("Connecting to ");
  Serial.println(ssid);
  WiFi.begin(ssid, pass);

  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");


  }
  Serial.println("");

  Serial.println("WiFi connected");
  Serial.println("IP address: ");
  Serial.println(WiFi.localIP());

  ticker.attach(60 * 5, setReadyForWeatherUpdate);
}


void loop() {
if (readyForWeatherUpdate) {
    readyForWeatherUpdate = false;
    weather.updateWeatherData(forecastApiKey, latitude, longitude);
  }


Serial.println(String(weather.getIconToday()));
}

void setReadyForWeatherUpdate() {
  readyForWeatherUpdate = true;
}
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 04, 2016, 10:29 pm
https://en.wikipedia.org/wiki/Include_guard
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Arsur on Sep 05, 2016, 09:25 am
okay thank you, thought this inclusion guard must be in the child file not in the library :smiley-confuse:

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Tehnicni on Sep 07, 2016, 11:02 am
@Technici
This looks like a json/platform issue.
Which json/board do you use?
Arduino Mega 2560

Eclipse is clearly too much for my patience
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 07, 2016, 05:20 pm
Quote
Arduino Mega 2560
That is the board I use the most. Somrthing must have gone wrong during download.
Can you stop eclipse, delete the arduinoPlugin folder in you eclipse install and restart eclipse. Wait for it to finish the install.
Open project properties->arduino. Make sure all is well select apply and ok?
And try the build again.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: extrawing on Sep 07, 2016, 07:05 pm
Hi Guys,

I have two development environments: one is based on Linux and the other one - on Windows.
In both cases I use Eclipse (Neon), with the latest Arduino Eclipse plugins (v3.1).
The idea is to use the same Arduino project's sources on both these dev envs (using any version control system).

The issue is the following:
If I create the project on one dev environment (e.g. on Linux), I'm able to build it successfully on this env.
But when I sync these sources to the other env, this project cannot be built there due to different configuration errors.

E.g., a project, which is initially created on Windows, is failing on Linux env with the following error:
"Error: Program "C:\eclipse\arduinoPlugin\tools\make/make" not found in PATH"
As far as I can see, it is configured in the following project file: ./.settings/org.eclipse.cdt.core.prefs
It seems that I have to configure something there. But I noticed that this file is missing in a project, which was initially created on Linux env.

Could you please clarify what is the best/right way to configure such project, which could be buildable on both my dev envs?

Thanks!
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 07, 2016, 07:20 pm
do not check in .project and .cproject
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: extrawing on Sep 08, 2016, 12:03 pm
Jantje,
Thanks a lot for the workaround! It really works.
I created a folder in the project's directory with subfolders related to each platform (win and linux) and put into them mentioned project files, according to a platform. Also added original location of these files into exclusions of a version control system.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 08, 2016, 01:41 pm
@extrawing
Maybe it is time to consider supporting me https://www.patreon.com/jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: extrawing on Sep 08, 2016, 02:33 pm
Jantje,
I really very appreciate your work on this.
My experiments currently aren't related to any my commercial business, just a self-education/hobby.
But I definitely should take your idea into account :)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: jkm on Sep 09, 2016, 04:06 pm
There's something I'm just not getting about the configuration of the latest version of the plugin with respect to libraries.  My project uses several libraries, including the Adafruit_HTU21DF and Ethernet2 libs.  If I use window/preferences/Arduino/Library Manager I am given a selection list of a vast number of libs, including both the Adafruit_HTU21DF and Ethernet2 libs.  I can check both of those but it seems to have no effect on actually pulling their definition into my project.  If I use Arduino/add library to project it presents me with a shorter list of libraries, including Adafruit_HTU21DF but NOT Ethernet2.  Checking the box for the Adafruit_HTU21DF causes its definition to be pulled in. So, what is the purpose of the window/preferences/Arduino/Library Manager checklist if it doesn't result in being able to use the libraries so checked?  Do I need to download the Ethernet2 sources .h and .cpp files and place them in my libraries directory? Thanks in advance for guidance on this bit of configuration magic.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 09, 2016, 04:21 pm
The library manager pulls the library's in your development environment. There you can choose between all libraries that are in the list (provided by the arduino core team) of libraries.
When you do import library you can only choose between the libraries that are in your development environment.
That is the once you have puled in via the library manager and the once in the library paths in your preferences.
If you pulled Ethernet2 in your development environment with the library manager then you should be able to import it into your project.
If that doesn't work something is/went wrong.

Please support me building this tool. I have no other financial incomes. A small amount like 1 dollar a month (less than buying me a drink every 2 months) goes a long way here.
Companies do not support me. There are no adds... Think about this before I have to give this all up?

Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: jkm on Sep 09, 2016, 05:26 pm
I tried putting the libs for Ethernet2 and ArduinoJson in my private libs directory (C:\ArduLibs) and pulling the Adafruit_HTU21DF in using "Arduino/add a library to the selected project". This resulted in all 3 libs showing up in my project libraries directory, but I get a compile error in Adafruit_HTU221DF.h - "previous definition of 'class Adafruit_HTU21DF" and "redefinition of class Adafruit_HTU21DF.h".  I then tried unchecking the Adafruit_HTU21DF library in the Arduino/add a library pulldown (at which point I went back to the #include for said library being unresolved) and added the Adafruit_HTU21DF library to my private libs directory along with Ethernet2 and ArduinoJson.  That gives me a compile of the .ino file with nothing flagged in the source, but a flag on subdir.mk in the Release directory and the C++ build complains on  #include <Adafruit_HTU21DF.h> - "Adafruit_HTU21DF.h: No such file or directory"
This is all happening on a Windows 10 system and the arduino.org version of the Arduino IDE. I didn't see any error messages when running the installation of Eclipse with the plugin, but from your previous reply it sounds like maybe this installation is boogered up somehow?

I will be more than happy to support you on Patreon once I'm actually able to build my project, I'm sick of the toy Arduino IDE and would desperately love to use Eclipse (which I have used for >10 years in the Java world), but I want to know that it's going to work for me before forking over cash.

Again, thanks in advance
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 09, 2016, 10:37 pm
https://en.wikipedia.org/wiki/Include_guard
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: vncoelho on Sep 11, 2016, 11:58 pm
Dear my friends, how are you?
   First of all, I would like to congratulate those which are the main contributors of this amazing extension.

   I have the eclipse Eclipse Nemo 64 bits on Linux. I installed the V3 plugin ( as well the the nightly, for checking if it was a problem).
   The interface and everything seems to be compiling perfect. It is really well done and stable.

   I am uploading my code ( a simple temperature sensor with a LCD display (LiquidCrystal_I2C)) to an Arduino Uno R3 (ATMEL ATMEGA328P-PU). However, everything seems to work pretty fine (the serial monitor is printing the right values). On the other hand, the LCD does not displays the write messages.
   The same code, when compiled with the Arduino IDE works pretty well.

   Do you have any idea?

   While writing this message, something else has happen. I changed the board to "Genuine Mega or Mega 2560" and it seems to be working perfect. O.o
   However, I think I should not proceed with a big project, due to the fact that unexpected errors may appear regarding to this wrong compilation.
   

Best regards,

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 12, 2016, 12:59 am
@vncoelho
There are only a very few differences between Sloeber and the arduino ide. Most of them involve .ino files and/or defines.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: vncoelho on Sep 12, 2016, 05:44 pm
I see, I prefer to use the .cpp files, it is mainly a matter of rearranging the functions.

But, at the end, do you know why the UNO board didn't work properly? Why the Mega seems to be providing the right compilation for my Arduino UNO board?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 12, 2016, 08:50 pm
But, at the end, do you know why the UNO board didn't work properly? Why the Mega seems to be providing the right compilation for my Arduino UNO board?
I think your lack of experience with sloeber leaded a wrong perception.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jim S. on Sep 22, 2016, 06:46 pm
Quick question on a behavior in Sloeber - not sure if this is a Sloeber-specific thing, or an Eclipse/CDT-specific thing. (I know it doesn't behave this way when working in Java in Eclipse).

I tend to use the Project Explorer view to navigate to specific elements of a file (such as a variable or function declaration) - I double-click the file in the Explorer to open it, then expand it in the Explorer, then I find the element I'm looking for, double-click it, and the editor conveniently jumps to that point in the opened file. I then proceed to screw up whatever it is I'm intent on screwing up in the code, then anxiously hit the Compile button to see exactly how badly I screwed things up, or if I hit the lottery, and it compiles. :-) However, by having clicked on an element under the file in Explorer, I'm greeted instead with a dialog explaining, "No project found to build", and I then need to close that dialog, then select a .cpp or .h file in the Explorer, then hit the Compile button again to discover my actual fate.

It seems that there should be some kind of smarts in the process to recognize that if I've selected an element in a file in the project, that I really do want to compile that project, but the element-level selection seems to make Eclipse/CDT/Sloeber lose track of the fact that I'm still in a file in the project. Is this a bug or a feature?

I'm trying to get in the habit of using the Outline view to navigate to elements in the active file, but old habits are hard to break.

Thanks!
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: splynncryth on Sep 30, 2016, 08:39 am
I hope I'm posting in the right place since this is where the Sloeber page directed me. I've tried looking through this tread but at 57 pages, it's hard to check everything.

I need to ask about getting libraries I download in the Arduino IDE to be imported into Sloeber.
I deleted one library thinking I needed to replace it to fix an error but I could not get it to reappear in the list of libraries to import into a sketch even after restoring the library and I can't get any libraries I download after installing Sloeber to show up in the list of libraries to import into a sketch.
Is there a way to get these libraries to show up in the list of importable libraries short of a complete Sloeber reinstall?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jim S. on Sep 30, 2016, 07:51 pm
splynncryth - if you go under the Preferences menu item in Sloeber (I'm on a Mac, so its under the main Sloeber menu item, then Preferences - on Windows, I suspect it'd be under File:Preferences, or Window:Preferences), there will be an Arduino item in the preferences pane. In that Arduino pane, there will be a 'Private Library path' specified - this is where Sloeber looks for libraries.

By contrast, the Arduino IDE looks for libraries under '/Users/your_username/Documents/Arduino/libraries' on Mac, and something like 'My Documents\Arduino\libraries' on Windows.

These are obviously different locations, so Sloeber won't find your Arduino IDE libraries by default. You can change the Private Library path in the Sloeber preferences pane, if you like. I'm not aware of any reason that you couldn't point the Sloeber Private Library path to your Arduino IDE library path, though I don't do that myself. (My son uses the Arduino IDE, and I don't want my Sloeber projects being dependent on things that my son may be mucking with, and I don't want to break any of my son's stuff if I'm screwing with the contents of a library, so I keep a separate set of libraries in the default Sloeber Private Library path, just to safeguard the two environments from each other.)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: allenpan on Oct 23, 2016, 06:52 pm
problem... i keep getting

Starting upload
using arduino loader
Starting reset using DTR toggle process
Toggling DTR
Continuing to use /dev/cu.usbmodem1421
Ending reset


Launching /Applications/sloeber.app/Contents/Eclipse/arduinoPlugin/tools/arduino/avrdude/6.3.0-arduino6/bin/avrdude -C/Applications/sloeber.app/Contents/Eclipse/arduinoPlugin/tools/arduino/avrdude/6.3.0-arduino6/etc/avrdude.conf -patmega328p -carduino -P/dev/cu.usbmodem1421 -b57600 -D -Uflash:w:/Users/allenpan/Library/Mobile Documents/com~apple~CloudDocs/Self-Driving/WorkSpace/Ethernet_UDP/Release/Ethernet_UDP.hex:i
Output:
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x0d
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x0a
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x0a
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x5b
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x49
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x50

avrdude done.  Thank you.

avrdude finished
upload done

and nothing been uploaded/updated
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Freeck on Oct 24, 2016, 10:19 pm
Hi there,

Great IDE Jantje!
After some confguration hassle I finally got the IDE working and also using the debugger (gdbstub installed in the target). When I use the RAMFUNC directive in the header of function Loop() , the debugging process run flawless, the programme breaks at function Loop() as defined in the startup of the debug-launch window.
However when I run the code in flash the debug-session reports a "cannot insert breakpoint" message. So it seems the hardware breakpoint is not (cannot) be inserted by the IDE!?
In case I use the debugger interactively via command line input I can set hardware breakpoints, then single step through flash, etc.... I can live with this limitation, but it would be great if it would work properly.
If anyone has some suggestion to solve this I would be greatfull.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: zl1hb on Oct 29, 2016, 06:52 am
Hi Jantje,

Downloaded and tried to unzip the V3.0_win64.2016-03-31_12-43-53.tar.gz for the
third time.
My win7 pc shows two errors: unexpected end of data and won't unzip.

Please advise if it is on my side or on the source which i download from your site

Thanks in advance
Hans
Title: .ino --> .cpp
Post by: bsergiu on Nov 03, 2016, 03:18 pm
Hi Jantje,

Thanks a lot for a great developer plugin!
I have started my projects a bit cautious, so I have created .ino files when creating the new projects. In the meanwhile, these .ino files are empty, just delegating the setup and loop calls to a "main" manager class. How can I get rid of the .ino file at all in existing projects, without having to re-create them with the ".cpp" option?

Thanks,

Sergiu
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: paulator on Nov 08, 2016, 02:00 pm
Hey there,

I want to use this plugin but I cant figure out how to use OTA (over-the-air) update functionality.

Can you please give me some hints, how to configure the target IP and to use OTA instead of using COMx upload?

Thank you!
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: mrsharkit on Nov 11, 2016, 08:50 am
hi, what happened to download links? cannot see them on your site, with 4 different browsers, and if i try using Google cache i hit BLOCKED pages... thanks in advance
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: edithfeldmann on Nov 12, 2016, 03:51 pm
I've got the same problem. Seems like there was an update to the site. The download links are gone...
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: LogicBoard on Nov 13, 2016, 02:09 am
The links are now visible on the web site. However, none of the download links work (stable and nightly build) The site gives a forbidden error.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: edithfeldmann on Nov 14, 2016, 06:58 pm
The download of the product bundle is working again.

However, I already have eclipse installed and the plugins are still not available. Is there a way to extract the plugins from the bundled package?

If that is already mentioned somewhere please let me know. I am still new to this forum :)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: RealtyRod on Nov 18, 2016, 12:31 am
I am attempting to install the Arduino Eclipse Plugin using Ubuntu 14.04 and Ubuntu 16.04. When trying to Install New Software through Eclipse I receive and error:
----------------------------------------------------------------------------------------------------------------------------
Cannot complete the install because one or more required items could not be found.
  Software being installed: Arduino Eclipse Extensions 3.0.0.201603312133 (it.baeyens.arduino.feature.feature.group 3.0.0.201603312133)
  Missing requirement: Arduino eclipse plugin 3.0.0.201603312133 (it.baeyens.arduino.core 3.0.0.201603312133) requires 'bundle org.apache.commons.compress 0.0.0' but it could not be found
  Cannot satisfy dependency:
    From: Arduino Eclipse Extensions 3.0.0.201603312133 (it.baeyens.arduino.feature.feature.group 3.0.0.201603312133)
    To: it.baeyens.arduino.core [3.0.0.201603312133]
-------------------------------------------------------------------------------------------------------------------------------
Appreciate any help. I was able to get the ARDUINO IDE to work.
Thanks,
RealtyRod
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: jcmojj on Nov 19, 2016, 07:43 am
Thank you for the all the effort you had to build this plugin. I saw some of your videos, and read every info you post at your site, but I still can't make a very simple example to work. This kind of very simple example should help to start with it. I am using Eclipse Neon that I download together with the plugin. I deleted previous Eclipse used for Java programming where I added the plugin because I think that it might have some problem. I use Windows 10, Arduino Nano, AVRISP mkll upload protocol, com5, ATmega328.

I have two files.
ino.cpp
Code: [Select]

#ifdef __IN_ECLIPSE__
//This is a automatic generated file
//Please do not modify this file
//If you touch this file your change will be overwritten during the next build
//This file has been generated on 2016-11-19 04:24:12

#include "Arduino.h"

void setup() ;
void loop() ;

#include "Test.ino"

#endif


Test.ino
Code: [Select]

#include "Arduino.h"
/*  Blink  by Scott Fitzgerald  */
int i =0;

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin 13 as an output.
  pinMode(13, OUTPUT);
  Serial.begin(9600);
}

// the loop function runs over and over again forever
void loop() {
  Serial.print("Teste novo: "); Serial.print(i);i++;
  Serial.print(" +1000+ ");
  digitalWrite(13, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);              // wait for a second
  Serial.print(" -1000- ");
  digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);              // wait for a second
  Serial.print(" +2000+ ");
  digitalWrite(13, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(2000);              // wait for a second
  Serial.println(" -2000- ");
  digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW
  delay(2000);              // wait for a second
}


When I upload this code, nothing happens. My serial monitor keeps sending the info it has from the last uploaded code with Arduino IDE. I uploaded with arduino IDE the same code I wrote above where I changed Serial.print("Teste: ") to Serial.print("Teste novo: "). As the massage I receive is the old one, I know that the code was not uploaded, even if it said it was.

The message it sent is:
Quote
Starting upload
using arduino loader


Launching C:\Users\LG\Documents\sloeber\arduinoPlugin\tools\arduino\avrdude\6.3.0-arduino6/bin/avrdude -CC:\Users\LG\Documents\sloeber\arduinoPlugin\tools\arduino\avrdude\6.3.0-arduino6/etc/avrdude.conf -patmega328p -cstk500v2 -Pusb -Uflash:w:C:\Users\LG\Documents\sloeber\workspace\Test2/Release/Test2.hex:i
Output:

avrdude done.  Thank you.

6.3.0-arduino6/bin/avrdude finished
upload done
I have another problem. When I exclude the #include "Arduino.h" from the Test.ino file all my pinMode and digitalWrite get the same error message that is:

Quote
Multiple markers at this line
 - Invalid arguments ' Candidates are: void pinMode(unsigned char,
 unsigned char) '
 - Symbol 'OUTPUT' could not be resolved
In your examples, you didn't add Arduino.h at the .ino file, just at ino.cpp file. I must add it because I used those commands that you didn't use?

Thank you,

Jose
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 28, 2016, 04:03 pm
Hi all
Seems I didn't get notified any more on posts here. That is why I didn't respond to anything.

So here are some answers:
There have been issues with the download because there has been a DDOS attack on my web site. More details about that can be founfd here (https://www.patreon.com/posts/sloeber-is-so-i-7210999) an this is the current status update (https://www.patreon.com/posts/downloads-of-are-7251338)

@jcmojj @allenpan Upload failing. This is caused by the arduino avr toolchain you are using 1.12 which is really old by now. Not sure why you want to use this toolchain. Anyways root cause and workaround can be found in the issue  (https://github.com/jantje/arduino-eclipse-plugin/issues/510)

@jcmojj include arduino.h This is a well known thing that has been doculmented at many places for instance on my patreon web site (https://www.patreon.com/posts/there-are-bugs-5507246)

@RealtyRod Seems like you are trying to install V3.0 as a plugin. Why V3.0? V3.1 has been out since the first of august. I also advice to start with the product. This copes with these types of install issues.

@jim S. I find this annoying to... I need a push to fix it. A github issue supported by a patreon could do the trick.

@jim S. thanks for answering splynncryth his question.

@Freeck you found me on the dutch part of this forum :-) We are working on it.

@zl1hb the old download location needed firefox to download (stated so on the page). I hope the new download location fixed this issue.

@bsergiu rightclick on the name in project explorer select (refactor->?)rename.

@paulator it works, can't recall myself. Need to find out, need a push to document.  A github issue supported by a patreon could do the trick.


Note that currently my only financial income is the patreon page. Which is 202$ a month. If you like the plugin and want me to keep focussing on it, I strongly advice to become a patron.
https://www.patreon.com/jantje (https://www.patreon.com/jantje)

Best regards
Jantje


 
Title: Change the USB port before flash a sketch
Post by: inka_1 on Dec 20, 2016, 03:50 pm
hello,

I installed sloeber on ubuntu 14.04 and I am very happy with.

When a click on the upload button, there appear a window which ask me, if I want to build before upload.

Would it be a problem to place in this window a question if I want to change the  (in the properties of the project saved) USB port?

I use more then one USB port and I never know which one is in this moment saved in the properties for the project...

When this window appear, is it not possible to see the port and change it in the properties immediately. You have to go back. I think it would be easier to do it in this window, then in the properties,

thanks

inka
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Dec 20, 2016, 07:08 pm
@inca
you can see the port in the project explorer after the name of the project is the name of the board and then the com port. That should be visible when the upload runs
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: inka_1 on Dec 22, 2016, 04:48 pm
@jantje:
ok, You are right, but is not so good visible like in the popup window. And not changeable, only through the properties, am I right?

an another question:
Throug the installation of the sloeber V3 imported the instal-programm al libraries from the folder /user/arduino/libraries to sloeber. So far so good.
I needed a new library and did not found a way to install this in sloeber directly, and install it first on arduino IDE, then appears this lib also in the popup window to import libs to the *.ino file in sloeber. Is it the normal way?
sorry for my english :-(
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Dec 22, 2016, 05:09 pm
@jantje:
ok, You are right, but is not so good visible like in the popup window. And not changeable, only through the properties, am I right?
That is right.

an another question:
Throug the installation of the sloeber V3 imported the instal-programm al libraries from the folder /user/arduino/libraries to sloeber. So far so good.
I needed a new library and did not found a way to install this in sloeber directly, and install it first on arduino IDE, then appears this lib also in the popup window to import libs to the *.ino file in sloeber. Is it the normal way?
sorry for my english :-(
You need to add the location to the private libraries folders. See my video's for more info https://www.youtube.com/watch?v=HE5iYxv-B-o&list=PLCSjf7QmP3TDPSjT_5UIp0DHXzKdhIQsF (https://www.youtube.com/watch?v=HE5iYxv-B-o&list=PLCSjf7QmP3TDPSjT_5UIp0DHXzKdhIQsF)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: inka_1 on Dec 22, 2016, 05:44 pm
the private library and hardware path is there. My question was, if I have to install the lib's in arduino IDE first and then the lib's appear in the window from sloeber (import libs to a project/*.ino file) with the available libraries?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Dec 22, 2016, 07:15 pm
@inka_1
See the video
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: fastlink30 on Jan 02, 2017, 02:37 pm
i need to add the library pubsubclient how this is possible? i can't see it on thearduino->add library, i'm using the hardware/esp8266/2.3.0/board.txt in the arduino properties of the project, maybe this make problem?

thanks
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: fastlink30 on Jan 03, 2017, 12:23 pm
ok, i found solution by myself, thanks anyway
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: jonbarril on Jan 04, 2017, 08:20 am
I have defined a "debug" macro that I use to wrap my debug statements, with the intent of excluding them in production to reduce the size of the sketch. Is there some easy way to set a compiler flag (i.e. -Dxxx=yyy)? I did some searching but found nothing. So far, the only way I have been able to do this it to modify the platform.txt file, which is not very elegant.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jan 05, 2017, 01:07 pm
@jonbarril
There is. In project properties->arduino->compiler options you can append to the C/C++ command line.
Simply add  you -DDEBUG=true there.
To easily switch between DEBUG and release simply make a new configuration name it debug and add you extra info to the command line.
I have been doing this kind of things for years now :-)

Best regards
Jantje


As an independent open source project we value your submission, but we ask for support, either by helping us out coding (yeah, we do understand it does require time) or a Patreon contribution (starting from as low as 1$ a month): this allows us to support people who support us back!
As a supporter you can drag our attention and prioritize your submission...
please become a supporter!
https://www.patreon.com/jantje (https://www.patreon.com/jantje)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Seba_K on Jan 07, 2017, 04:09 pm
Hello,

I am trying to use the V3 plugin on a Linux system, but the moment I want to compile anything it fails with an error "Program "/bin/avr-gcc" not found in PATH" and "Program "/bin/avr-g++" not found in PATH". Everything seems to be configured fine, however I noted that the environment variable A.RUNTIME.TOOLS.AVR-GCC.PATH which is used by A.COMPILER.PATH does not exist (in a freshly created project).

How do I get this thing to work please? I am currently unable to compile any of my existing projects, let alone create any new ones.

Edit: By defining the above environment variable by myself I can get it to run. Still, it seems weird that the plugin does not properly define it itself, right?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jan 07, 2017, 06:03 pm
@seba_k
Have you followed the instructions on this video? https://www.youtube.com/watch?v=AmePMUuv0uk&t=10s (https://www.youtube.com/watch?v=AmePMUuv0uk&t=10s)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Seba_K on Jan 07, 2017, 10:40 pm
@seba_k
Have you followed the instructions on this video? https://www.youtube.com/watch?v=AmePMUuv0uk&t=10s (https://www.youtube.com/watch?v=AmePMUuv0uk&t=10s)

I have installed the plugin from the Eclipse Marketplace for Eclipse Neon, and as far as I can tell it went fine. Everything else I did like in your video. But even compiling an example project fails.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jan 07, 2017, 11:09 pm
Which board do you use? Please provide the board.txt fqn and board name.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Seba_K on Jan 07, 2017, 11:24 pm
Which board do you use? Please provide the board.txt fqn and board name.
I am using an Adafruit Flora with the Adafruit AVR boards v1.4.9 board definition.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jan 08, 2017, 12:51 am
can you compile a uno?
How did you install the boards?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Seba_K on Jan 08, 2017, 11:21 am
can you compile a uno?
How did you install the boards?
Hm, interesting...compiling for an UNO works, it finds the compiler alright. It seems that just for the Adafruit boards the path to the compiler does not get added since the command line starts only with "/bin/avr-g++" instead of the full path.

I installed the boards by adding the Adafruit json file in Windows -> Preferences -> Arduino -> Locations and then selecting the latest version under Platforms and Boards.
Title: Add library in general, rather than per project...
Post by: MaxG on Jan 08, 2017, 02:15 pm
I have installed the Eclipse product -- like what I see :) great work!
I started with copying an .ino file contents into a new project.
It has three includes...
Two I could select (tick)
I can see default libraries, which can be selected via tick box in the option "Import Arduino libraries in the current project".
How can I add other libraries (e.g. PubSubClient) to this view?
If I 'Import a folder containing source code in the current project" I can only import for this project, rather than add a library in general.
Any hints appreciated.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Seba_K on Jan 08, 2017, 03:12 pm
I have installed the Eclipse product -- like what I see :) great work!
I started with copying an .ino file contents into a new project.
It has three includes...
Two I could select (tick)
I can see default libraries, which can be selected via tick box in the option "Import Arduino libraries in the current project".
How can I add other libraries (e.g. PubSubClient) to this view?
If I 'Import a folder containing source code in the current project" I can only import for this project, rather than add a library in general.
Any hints appreciated.

Hello Max,

I think I can help you. You first need to add the libraries under Window -> Preferences -> Arduino -> Library Manager before they appear in the menu you're talking about.

For libraries that are not in that list, you can use a private library path you can set one level higher under "Arduino", where you can put what you want. These will then also be available in the "Add a library to the selected project" menu.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jan 08, 2017, 04:43 pm
@seba_K
You need version 4 which is the nightly right now.
https://github.com/jantje/arduino-eclipse-plugin/issues/552 (https://github.com/jantje/arduino-eclipse-plugin/issues/552)
https://github.com/jantje/arduino-eclipse-plugin/issues/421 (https://github.com/jantje/arduino-eclipse-plugin/issues/421)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Seba_K on Jan 08, 2017, 05:22 pm
@seba_K
You need version 4 which is the nightly right now.
https://github.com/jantje/arduino-eclipse-plugin/issues/552 (https://github.com/jantje/arduino-eclipse-plugin/issues/552)
https://github.com/jantje/arduino-eclipse-plugin/issues/421 (https://github.com/jantje/arduino-eclipse-plugin/issues/421)

Yes, with the V4 it seems to work now. Thank you!

Interestingly this version also fixes another issue I had when changing the version of an installed package, after which all projects were broken since the path still pointed to the old, no longer existing installation.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jan 08, 2017, 10:27 pm
V4 is a completely new beast ;-)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jan 08, 2017, 10:29 pm
And don't forget

As an independent open source project we value your submission, but we ask for support, either by helping us out coding (yeah, we do understand it does require time) or a Patreon contribution (starting from as low as 1$ a month): this allows us to support people who support us back!
As a supporter you can drag our attention and prioritize your submission...
please become a supporter!
https://www.patreon.com/jantje (https://www.patreon.com/jantje)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: MaxG on Jan 08, 2017, 10:44 pm
I think I can help you.

Thank you... worked like a charm.

For libraries that are not in that list...
Thank you for this hint as well, as I am very certain, that this could have been my next question ;-)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Seba_K on Jan 08, 2017, 11:33 pm
please become a supporter!
https://www.patreon.com/jantje (https://www.patreon.com/jantje)
I don't know how, but you have convinced me :)
Keep up the good work.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jan 09, 2017, 04:15 pm
I don't know how, but you have convinced me :)
Keep up the good work.
Thanks :-)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: mike_mn on Jan 19, 2017, 07:07 pm
Creation of a Arduino sketch
Now you can create a new Arduino project with the plugin
Do file -> new -> project
Select the Arduino sketch and then next
(http://iloapp.baeyens.it/data/_gallery//public/1/1320529642_resized.png)

Provide a name for the sketch and press next (note that in the image below the finish is enabled because I already created a sketch)
(http://iloapp.baeyens.it/data/_gallery//public/1/1320529645_resized.png)
I have been playing around with Eclipse using the AVR plugin with some success, but have not been able to solve using third party framework and project includes.  Ultimately, I have ended up coding in eclipse for the coding tools, but then going back to the Arduino IDE to upload because it doesnt have the include issues during the build process.

Anyways, I installed Sloeber from http://eclipse.baeyens.it/update/V4/stable today on my mars release and it appeared to install without errors, however when I go to open a new sketch, when I select next from the new project dialog, it does nothing.  The second time I click next, it goes to the name the sketch dialog, so I enter a name "testSloeber" and press next.  Nothing.  I wait...I press next again.  I highlight the next button and press enter...nothing.  I click next over and over...nothing.  I am at a loss as to even how to start debugging this issue.  I verified it is not creating a file structure in my workspace or anything.

I have restarted eclipse, I have attempted to reinstall sloeber, but eclipse install manager says it is already installed, I have rebooted windows.

Any ideas where to start with troubleshooting?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jan 19, 2017, 09:35 pm
Normally I click the new sketch button in the toolbar you should see if you are in the arduino perspective.
But this should do the same thing.
Look in the error log.
And if you are new to this. Why don't you use the product? That is far easier to get started.
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: mike_mn on Jan 19, 2017, 10:13 pm
I want to use eclipse because it has such great coding support.  I have used it for Java for a long time.  I am new to Arduino, but not eclipse, I am just not very good at Eclipse configuration, even for Java...

Here is the error in the log.  I dont have an Arduino folder in my user directory.  Should I copy my Arduino IDE hardware directory to that location?

Was the sloeber installation supposed to build a directory structure there?

!ENTRY io.sloeber.arduino.core 1 0 2017-01-19 14:50:32.799
!MESSAGE The folderC:\Users\me\Arduino\hardware' does not contain any files.

!ENTRY io.sloeber.arduino.core 1 0 2017-01-19 14:50:33.037
!MESSAGE The folderC:\Users\me\Arduino\hardware' does not contain any files.


Edit: I added reference to my Arduino IDE install hardware and libraries directories, then I got this error when pressing the next button to create a new Arduino project.
Code: [Select]
!ENTRY org.eclipse.ui 4 0 2017-01-19 15:17:55.231
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NoSuchMethodError: org.eclipse.swt.widgets.Composite.requestLayout()V
at io.sloeber.ui.project.properties.BoardSelectionPage.enableControls(BoardSelectionPage.java:306)
at io.sloeber.ui.project.properties.BoardSelectionPage.draw(BoardSelectionPage.java:255)
at io.sloeber.ui.wizard.newsketch.NewSketchWizardBoardPage.createControl(NewSketchWizardBoardPage.java:51)
at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1216)
at org.eclipse.jface.wizard.WizardDialog.access$4(WizardDialog.java:1208)
at org.eclipse.jface.wizard.WizardDialog$8.run(WizardDialog.java:1197)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1194)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:885)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:425)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:619)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4362)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4180)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3769)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:827)
at org.eclipse.jface.window.Window.open(Window.java:803)
at org.eclipse.ui.actions.NewProjectAction.run(NewProjectAction.java:115)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:473)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4362)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4180)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3769)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:694)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:606)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
at org.eclipse.equinox.launcher.Main.run(Main.java:1515)


I am sure that the Sloeber package works well, but it might exceed the hassle factor for me.  I would rather not have to reconfigure my Java settings, otherwise I would just install Neon and start from scratch.  Then, I assume Sloeber would work...
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: chantling on Jan 20, 2017, 03:08 am
Hi, clueless noob here; is anybody using Sloeber with the Cayenne libraries?  I'm unable to get them to compile.  I get 2 basic issues.  The first is an "invalid arguments' regarding

Cayenne.begin(token, ssid, password);

I found a discussion at http://arduino.stackexchange.com/questions/22300/can-the-arduino-eclipse-plugin-use-the-arduino-ides-libraries (http://arduino.stackexchange.com/questions/22300/can-the-arduino-eclipse-plugin-use-the-arduino-ides-libraries) and a follow-up at http://community.blynk.cc/t/making-blynk-libraries-eclipse-compatible/5608/2 (http://community.blynk.cc/t/making-blynk-libraries-eclipse-compatible/5608/2) discussing the same issue with the Blynk library, parts of which are included in the Cayenne library.  I was able to get the Blynk library working by following the fix at the links and adding a blank "Blynk.h" in the Blynk folder, but the same does not work for Cayenne.

The second issue is a slew of multiple definition errors.  Importing Cayenne also imports ESP8266Wifi, Ethernet, SD, SPI, Wifi, and Wire libraries.  Various files from the three Wifi-related libraries cause multiple definition errors.  A few of the 74 errors:

Description   Resource   Path   Location   Type
first defined here   WiFiClient.cpp   /Cayenne2/libraries/WiFi/src   line 41   C/C++ Problem
Description   Resource   Path   Location   Type
first defined here   WiFiServer.cpp   /Cayenne2/libraries/WiFi/src   line 37   C/C++ Problem
Description   Resource   Path   Location   Type
first defined here   WiFiUdp.cpp   /Cayenne2/libraries/WiFi/src   line 38   C/C++ Problem
...
Description   Resource   Path   Location   Type
multiple definition of `WiFiClient::available()'   WiFiClient.cpp   /Cayenne2/libraries/ESP8266WiFi/src   line 207   C/C++ Problem
Description   Resource   Path   Location   Type
multiple definition of `WiFiClient::WiFiClient()'   Print.h   /Cayenne2/core/core   line 45   C/C++ Problem
Description   Resource   Path   Location   Type
multiple definition of `WiFiServer::write(unsigned char const*, unsigned int)'   ClientContext.h   /Cayenne2/libraries/ESP8266WiFi/src/include   line 325   C/C++ Problem

This is with the default generated Cayenne sketch; said sketch compiles with Arduino IDE.  Can anybody point me in the right direction to get this library working in Eclipse?  If this is the wrong place for this question, I apologize; I could find no more appropriate place to discuss it.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jan 20, 2017, 04:36 pm
@mike_mn
Sloeber is dependent on CDT. To get sloeber to work you will need to install cdt and sloeber.
I strongly advice to install the sloeber product first just to get the hang of it. It will very likely reduce the hassle to get it working.
Code: [Select]
!ENTRY io.sloeber.arduino.core 1 0 2017-01-19 14:50:32.799
!MESSAGE The folderC:\Users\me\Arduino\hardware' does not contain any files.

!ENTRY io.sloeber.arduino.core 1 0 2017-01-19 14:50:33.037
!MESSAGE The folderC:\Users\me\Arduino\hardware' does not contain any files.

These are just warnings telling you that the default location arduino IDE installs stuff into is not containing any content. So this is not a problem.

 
Quote
Should I copy my Arduino IDE hardware directory to that location?
No. You do not need the arduino ide on a system to run sloeber.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jan 20, 2017, 04:40 pm
@chantling

The bad news is:
What you are experiencing is a weel known issue with Sloeber with a workaround described here.
https://www.patreon.com/posts/defines-before-6795548 (https://www.patreon.com/posts/defines-before-6795548)

The good news is that I released V.4 and V4.0 fixed this problem.

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: mike_mn on Jan 21, 2017, 04:03 am
@mike_mn
Sloeber is dependent on CDT. To get sloeber to work you will need to install cdt and sloeber.

I had to install CDT to get AVR to work in the first place, so it is definitely installed and CDT works, still Sloeber doesn't work...it hangs and gives those messages.  I figured out why the includes weren't working with AVR, ArduinoCore has to be the last library, not the first.  Everything works now with the AVR plugin...sorry, I thought Sloeber would make things a bit more seamless.  Definitely something missing to make it hang on that board selection page...  Maybe I will try again when I decide to update to Neon and I have to remake my Java/plugin preferences.  Thanks for trying to help.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: birdynam on Jan 23, 2017, 03:25 pm
Hi everyone,

i'm having trouble migrating from standard arduino IDE to Sloeber :
The library for nRF24L01 communications (https://github.com/TMRh20/RF24) worked well and now when i try to compile my project, witch includes the library i get :

[...]libraries/RF24-master/utility/SPIDEV/compatibility.h:17:22: fatal error: sys/time.h: No such file or directory


I'm under windows8.1, and this appears to be related to the linux file system...

but i don't understand is why it was working with arduino ide 1.6.5.

Any ideas ?


Thanks for your time !
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: birdynam on Jan 23, 2017, 04:08 pm
nevermind, i removed everything that was intended to linux from the library and it compiled fine.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jan 23, 2017, 04:09 pm
good :-)
Thanks for the update
Title: URL to V4 plugin not working
Post by: hreintke on Jan 24, 2017, 02:21 pm
Hi,

When using the http://eclipse.baeyens.it/update/V4/stable link to get the V4 plugin the result is :


If you ended up here you took a shortcut and failed. Go back to start. Start is here installAdvice.shtml
Title: Automatic including/attaching libraries
Post by: hreintke on Jan 24, 2017, 03:57 pm
Hi,

Environment : Product V4, Windows

I am working with and developing libraries -> projects use different versions of the same library.
Because of the "automatic" attachment of libraries to projects, I can get wrong versions of the library in a project.

Is there a way to disable the automatic attachment (all needed libraries will be manually attached) ?
Title: ESP8266 Build output
Post by: hreintke on Jan 24, 2017, 05:00 pm
Hi,

I am developing for ESP8266 with Product V4, Windows.
Would like to get the build output more concise.

In the generated makefiles I see :

Code: [Select]

CommandDevelopment.cpp.o: ../CommandDevelopment.cpp
@echo 'Building file: $<'
@echo 'Starting C++ compile'
"C:\Utilities\sloeber\/arduinoPlugin/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++"...........
@echo 'Finished building: $<'
@echo ' '


Is there a location from where this is generated I could update to f.e. remove/replace some of the @echo 's ?


At the end there is :
Code: [Select]

Building target: Command
Printing size:
"C:\Utilities\sloeber\/arduinoPlugin/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-size" -A "C:/Userdata/sloeber-workspace/Command/Release/Command.elf"
C:/Userdata/sloeber-workspace/Command/Release/Command.elf  :
section                                                                                                                                                                                                                                                                                                     size         addr
.data                                                                                                                                                                                                                                                                                                       1276   1073643520
.rodata                                                                                                                                                                                                                                                                                                     7156   1073644800
.bss                                                                                                                                                                                                                                                                                                       30616   1073651960
.irom0.text
....
....



Is there a location where I can change the "printsize command" ?


 
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: robertaramar on Jan 29, 2017, 04:46 pm
Hi,

I am running on Ubuntu 16.10 with NEON.2 and Plugin V4.
I have these settings in my project:
Board: Arduino/Genuino Uno
Upload Protocol: AVRISP mkII
Port: /dev/ttyACM0

When I flash, this is the content of the console:

Quote
Starting upload
using arduino loader


Launching/home/rschneid/eclipse/java-neon/eclipse//arduinoPlugin/packages/arduino/tools/avrdude/6.3.0-arduino8/bin/avrdude -C/home/rschneid/eclipse/java-neon/eclipse//arduinoPlugin/packages/arduino/tools/avrdude/6.3.0-arduino8/etc/avrdude.conf -patmega328p -cstk500v2 -Pusb -Uflash:w:/home/rschneid/src/workspaces/test/asdf/Release/asdf.hex:i
Output:

avrdude done.  Thank you.

avrdude finished
upload done
I fiddled around with the command and found out, it would only successfully flash, if I'd change the -c parameter to android and the -P to /dev/ttyACM0.

So I wonder, why is the plugin handing down the wrong parameters. Anything I could have configured wrongly?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jan 29, 2017, 10:16 pm
with these setting using 1.6.16 I get -P/dev/ttyACM0 -carduino

Quote
Anything I could have configured wrongly?
yes plenty.

But with the input you gave I can not find out what.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: JimInWoodstock on Jan 31, 2017, 06:55 pm
I am used to a dark theme when coding. I also am new to the plugin and eclipse. I have been using the Arduino IDE in the past. I installed the Moonrise UI and it shows up in the installed plugin list. However, when I go to windows, appearance I don't see the moonrise UI theme. In general, how to I get this to work and how do I find other dark themes that might be available?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: JimInWoodstock on Jan 31, 2017, 07:17 pm
I am used to a dark theme when coding. I also am new to the plugin and eclipse. I have been using the Arduino IDE in the past. I installed the Moonrise UI and it shows up in the installed plugin list. However, when I go to windows, appearance I don't see the moonrise UI theme. In general, how to I get this to work and how do I find other dark themes that might be available?

Problem solved. Read the docs more carefully.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 01, 2017, 02:27 pm
Great :-)
Another problem solved.
Thanks for reporting success
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: nbarbet on Feb 22, 2017, 10:40 am
Good morning, I have trouble building a shared Arduino project with Google Drive using Eclipse with the plug-in for Arduino. I created an empty Arduino project in Eclipse environment of PC and imported to the folder with the real Arduino project present in Google Drive, but I can not connect this project in Eclipse ... I would to share the project of Google Drive on two platforms (Mac and PC) Each one with Eclipse installed ... at the moment I can modify the project "shared" with Eclipse and then compile with Arduino compiler, but I can not with the Eclipse compiler ... thanks, Nicola
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 22, 2017, 02:33 pm
@nbarbet
I don't think that will work as the .project and .cproject are OS dependent.
Why don't you use a version control system like github. That works great if you checkin a initial .project and .cproject and then add those to the .ignore file
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Arrowmax on Feb 24, 2017, 01:36 pm
Jantje, Could you please share printscreens of your settings for the Arduino Zero in Sloeber?
Your youtube video describes how to debug the ESP8266, but I get an error using OpenOCD with Arduino Zero: No source available for "0xfffffffe"
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 24, 2017, 04:17 pm
I do not have print screens. I also can not make printscreens/videos of my work as I don't us the zero.
Actually I'm hardly doing any arduino work right now. Most of it is maintaining sloeber.
Making a zero debugging video on my todo list but so is 4.0 new and noteworthy :-(
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: darthbolek on Feb 28, 2017, 02:10 pm
Linux Fedora 25 64-bit install tips.

1. for serial access add user to groups: lock, dialout
sudo usermod -a -G lock <user>
sudo usermod -a -G dialout <user>

2. avrdude is missing libtinfo.so.5 library. The green color and line "upload done" is a little misleading... I'd expect red and "failure" :)

arduinoPlugin/packages/arduino/tools/avrdude/6.3.0-arduino8/bin/avrdude: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
avrdude finished
upload done

In F25 there is version 6 only. Adding link 5 -> 6 solves avrdude runtime problem. It might have impact on stability of avrdude and/or other software.
sudo ln -s /lib64/libtinfo.so.6.0 /lib64/libtinfo.so.5

Code: [Select]
[xxx@yyy sloeber]$ ldd arduinoPlugin/packages/arduino/tools/avrdude/6.3.0-arduino8/bin/avrdude
 linux-vdso.so.1 (0x00007ffc5b0c7000)
 librt.so.1 => /lib64/librt.so.1 (0x00007f5e00f2e000)
 libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f5e00d10000)
 libm.so.6 => /lib64/libm.so.6 (0x00007f5e00a07000)
 libtinfo.so.5 => not found
 libc.so.6 => /lib64/libc.so.6 (0x00007f5e00641000)
 /lib64/ld-linux-x86-64.so.2 (0x000055b879390000)

xxx@yyy sloeber]$ ls -l /usr/lib64/libtinfo*
lrwxrwxrwx. 1 root root     15 Jul 19  2016 /usr/lib64/libtinfo.so.6 -> libtinfo.so.6.0
-rwxr-xr-x. 1 root root 180200 Jul 19  2016 /usr/lib64/libtinfo.so.6.0

[xxx@yyy sloeber]$ sudo ln -s /lib64/libtinfo.so.6.0 /lib64/libtinfo.so.5

[xxx@yyy sloeber]$ ls -l /usr/lib64/libtinfo*
lrwxrwxrwx  1 root root     22 Feb 28 12:51 /usr/lib64/libtinfo.so.5 -> /lib64/libtinfo.so.6.0
lrwxrwxrwx. 1 root root     15 Jul 19  2016 /usr/lib64/libtinfo.so.6 -> libtinfo.so.6.0
-rwxr-xr-x. 1 root root 180200 Jul 19  2016 /usr/lib64/libtinfo.so.6.0




After these my Sloeber is programming boards now.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Feb 28, 2017, 05:07 pm
@darthbolek
Thanks for fixing your problems yourself and thanks for sharing :-)
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: lafleur on Mar 01, 2017, 03:46 pm
I just installed Sloeber and it looks great...

But when I try to compile my project, the IDE 1.8.0 reference to processor type do NOT appear in Sloeber..

Like:
 
__SAMD21G18A__
ARDUINO_ARCH_SAMD

ARDUINO_ARCH_AVR



did I miss something during the install??

thanks
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 02, 2017, 12:30 am
@lafleur
I don't understand your question.
Maybe your queston is answered in the new and noteworthy 3.0 https://www.youtube.com/watch?v=HE5iYxv-B-o&list=PLCSjf7QmP3TDPSjT_5UIp0DHXzKdhIQsF (https://www.youtube.com/watch?v=HE5iYxv-B-o&list=PLCSjf7QmP3TDPSjT_5UIp0DHXzKdhIQsF)
or 3.1 https://www.youtube.com/watch?v=MGAyIOC24lU&index=17&list=PLCSjf7QmP3TDPSjT_5UIp0DHXzKdhIQsF (https://www.youtube.com/watch?v=MGAyIOC24lU&index=17&list=PLCSjf7QmP3TDPSjT_5UIp0DHXzKdhIQsF)

Best regards
Jantje
Title: Get compile errors in sloeber, but no errors when compiling with arduino ide
Post by: JimInWoodstock on Mar 26, 2017, 07:52 pm
I have a sketch that I developed in the arduino ide. I want to migrate this to the sloeber ide and discontinue using the rather primitive arduino ide. However, I get quite a few errors regarding the included libraries. I am attaching a zip file containing the code and the errors. Please take a look and let me know what I did wrong.
Thanks
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Mar 26, 2017, 08:50 pm
Please take a look and let me know what I did wrong.
My hourly rate is 100 euro exclusive VAT.  8)
How much time do you want me to spend on this?  :smiley-evil:
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: pito on Apr 01, 2017, 01:16 am
Installed Sloeber today, the V4. Updated via nighty.
When trying to install the j-link plugin from your http://eclipse.baeyens.it/update/V4/nightly I get:

 
Code: [Select]
Cannot complete the install because of a conflicting dependency.
  Software being installed: GNU ARM C/C++ J-Link Debugging 4.1.1.201606210758 (ilg.gnuarmeclipse.debug.gdbjtag.jlink.feature.group 4.1.1.201606210758)
  Software currently installed: Sloeber, the Eclipse Arduino IDE 4.0.0.201701171403 (io.sloeber.product 4.0.0.201701171403)
  Only one of the following can be installed at once:
    GNU ARM C/C++ Debugger Restart Button 1.3.1.201606210758 (ilg.gnuarmeclipse.debug.gdbjtag.restart 1.3.1.201606210758)
    GNU ARM C/C++ Debugger Restart Button 1.3.1.201701170259 (ilg.gnuarmeclipse.debug.gdbjtag.restart 1.3.1.201701170259)
  Cannot satisfy dependency:
    From: GNU ARM C/C++ J-Link Debugging 4.1.1.201606210758 (ilg.gnuarmeclipse.debug.gdbjtag.jlink.feature.group 4.1.1.201606210758)
    To: ilg.gnuarmeclipse.debug.gdbjtag.restart [1.3.1.201606210758]
  Cannot satisfy dependency:
    From: GNU ARM C/C++ OpenOCD Debugging 4.1.2.201701170259 (ilg.gnuarmeclipse.debug.gdbjtag.openocd.feature.group 4.1.2.201701170259)
    To: ilg.gnuarmeclipse.debug.gdbjtag.restart [1.3.1.201701170259]
  Cannot satisfy dependency:
    From: Sloeber, the Eclipse Arduino IDE 4.0.0.201701171403 (io.sloeber.product 4.0.0.201701171403)
    To: ilg.gnuarmeclipse.debug.gdbjtag.openocd.feature.group [4.1.2.201701170259]

Any hint how to get segger into debug configurations?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 01, 2017, 10:39 am
This issue has been discussed here https://github.com/Sloeber/arduino-eclipse-plugin/issues/665 (https://github.com/Sloeber/arduino-eclipse-plugin/issues/665)
I havn't been able to dive into why this problem exists but it is related to part of gnuarmeclipse being in the plugin for debugging.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: pito on Apr 02, 2017, 10:22 am
J-link plugin issue - The nightly built from April 1st has done it (win7 64b here)..
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 02, 2017, 12:50 pm
I hope this is not a aprils fools day thing ;-)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: pito on Apr 03, 2017, 08:05 pm
Partially :) When debugging an stm32duino sketch (ie Hello World) it starts jlink but I cannot get it debugging. The source compiles, elf file is there, but the gdb (absolute path of the gdb set in debug configurations) does not start properly. It seems to me the jlink does not get the proper commands (ie it does not flash the binary, etc).
See http://stm32duino.com/viewtopic.php?f=41&t=655&start=30#p25747
I have to double check whether it compiles with debug infos.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 03, 2017, 08:57 pm
I'm sorry but this is a bit beyond me. I do not own a jlink nor a stm32 so I have no hand on experiance with setting up a debugging environment for this hardware.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: pito on Apr 19, 2017, 11:23 pm
Is there a trick how to get the info from platform.txt into the makefile while already working in a project? It seems to me the makefile system reads the paltform.txt only during creating a new project. Thus the changes in platform.txt do not propagate into makefile while already working. But maybe I overlooked something..
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 20, 2017, 01:15 am
project properties->arduino->apply->ok
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: pito on Apr 20, 2017, 09:23 am
 :)  Thanks!
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: pito on Apr 20, 2017, 10:24 am
Would it be possible to enhance the Arduino Compile options with a field for "append to ELF", plz?

compiler.c.elf.flags=-Os -Wl,--gc-sections APPENDS HERE

See in the enclosed picture.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Apr 20, 2017, 11:15 am
Would it be possible to enhance the Arduino Compile options with a field for "append to ELF", plz?

compiler.c.elf.flags=-Os -Wl,--gc-sections APPENDS HERE

See in the enclosed picture.

For a loyal patron I would do this.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: pito on Apr 20, 2017, 03:02 pm
And, from my experience with this great tool, it would be fine to have a chance to select a "platform.txt" of choice for the given specific Project (and remember it together with the flags).
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jief on Jun 05, 2017, 11:32 am
Hi,
I need to add a macro definition on GCC command line. Where should I add the -DMacro=VAL? There isn't any page like in classic CDT.

Thanks.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jun 05, 2017, 01:30 pm
You can find command line extensions in
project properties->arduino->compile options
Add the -DMacro=Val in the add to c and cpp field
You can probably see it in one of my video's https://www.youtube.com/playlist?list=PLCSjf7QmP3TDPSjT_5UIp0DHXzKdhIQsF (https://www.youtube.com/playlist?list=PLCSjf7QmP3TDPSjT_5UIp0DHXzKdhIQsF)

Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jief on Jun 05, 2017, 04:07 pm
Oh god. He knows that I've clicked on many preferences and didn't see this tab ! Sorry.
Thanks for your answer.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Mya256 on Jul 18, 2017, 10:43 pm
Hello,

Thanks for Sloeber IDE!  +1 on capability to debug with an external tool such as a Segger-JLink.  Was there any progress made on this? 

Thanks again
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 19, 2017, 10:24 pm
As fart as I know debugging works. Wether it is with a debugger on or off the board shouldn't make a difference.
I don't own off-board debuggers so I can only test with the zero and the esp8266.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: tekdev on Jul 21, 2017, 08:49 pm
Hello,

I'm running into an error after installing and executing sloeber-ide on Windows 10. 

Failed to configure Sloeber
Unable to download http://downloads.arduino.cc/libraries/library_index.json
Unable to download http://downloads.arduino.cc/packages/package_index.json

At the same time, I am able to access the url's directly through firefox.  Please refer to attached .png's.


Any guidance is appreciated.  Thank you in advance :)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: tekdev on Jul 21, 2017, 09:49 pm
Solved. 

Please disregard my previous message. 

The problem seems to be an artifact of me decompressing the V4.1_win64.2017-05-25_16-52-16.tar.gz using Cygwin and tar -xvf.  When I instead decompressed the file using Peazip the problem went away.  I suspect that this has something to do with permissions being set differently when decompressing the Cygwin way but I'm not going to look into it any deeper and the ide is now working.

Thanks :)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Jul 22, 2017, 02:10 am
good :-)
Maybe you didn't have write access.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: robert_j on Aug 04, 2017, 07:10 am
Error message after adding the NewliquidCrystal library 1.3.4 (Francisco Malpartida)


I'm getting two errors that open a dialog box when building a sketch using this library:

ArchiveNameProvider: The call should go to the overloaded function not here.
LinkNameProvider: The call should go to the overloaded function not here.

I was unable to find reference to this error other than it's existence in some Java code for the plugin source.  Any ideas?

Update:  I don't get the message if I perform a clean followed by build.  Upon further builds however I get the dialog box.

Update2: Well I've resolved it by recreating the project and copying in my source files.  I no longer get the dialog boxes when compiling.

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 09, 2017, 02:17 am
These error messsages indicate that the project setup is seriously corrupted and base classes are called instead of the derived classes
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: extrawing on Aug 09, 2017, 11:10 pm
Hi Guys,
I'm playing with the plugin v4.1 for Eclipse (Oxigen 4.7) on Ubuntu 16.
I've created a sample project in Eclipse.
I'm trying to configure a "Release" build which doesn't use "-g" option.
I tried to remove that "-g" from "A.COMPILER.CPP.FLAGS" variable (Project settings -> C/C++ build -> Environment).
But it seems my changes in this section are ignored: after reopening of these settings "-g" is here again...
And console shows me that avr-g++ is called with "-g" option.
What is the right way to eliminate usage of "-g" option?
Thanks!
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 10, 2017, 11:20 am
All A.XXXX environment variables are Automatically maintained by Arduino ;-)
So you never know when they are being set back to what it "should be".
The place to change these settings is the platform.txt file.
I'm not sure why you want a release but I made a couple of "boards" you can find here https://github.com/jantje/hardware (https://github.com/jantje/hardware)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: extrawing on Aug 13, 2017, 02:33 pm
Jantje, thank you for clarification.
Yeah, I've tried to fix those "-g" compiler settings in the following file:
"~/eclipse/arduinoPlugin/packages/arduino/hardware/avr/1.6.19/platform.txt"
However with new settings I've got much smaller myproj.elf file, size of the resulting myproj.hex file is not changed.
Also, avrdude logs has shown me same sizes of uploaded binaries on both cases.
I guess that all the debugging info is stripped out from the resulting binary, so there is no sense to remove the mentioned compiler option.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 13, 2017, 03:16 pm
I think the linker removes all debug info
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Daggers on Aug 18, 2017, 07:39 am
Hey Jantje

I've been trying to install your 4.1 product and have fallen on this issue when trying to upload a sketch to my boards.



Program "C:\sloeber\arduinoPlugin\packages\tools\arm\bin\arm-none-eabi-g++" not found in PATH

Program "C:\sloeber\arduinoPlugin\packages\tools\arm\bin\arm-none-eabi-gcc" not found in PATH      

I checked the program files and they don't exist

I had the same problem when I tried using your plugin.

Here are my details

System: 64bit Windows 10
Boards: Arduino UnoR3 (sparkfun)
Teensy3.2

I had the same problem with both boards.

As well as this, the IDE seems to not recognise arduino fuctions like digitalWrite, digitalRead, pinMode, or delay.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Aug 18, 2017, 02:21 pm
The links are 3.X links which will not work with 4.0. I assume you have a old project that needs updating like explained here http://eclipse.baeyens.it/how_to.shtml#/n (http://eclipse.baeyens.it/how_to.shtml#/n)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jimconrad on Sep 05, 2017, 10:02 pm
Has any other mac user encountered, "'sloeber' is damaged and can't be opened.  You should move it to the Trash" when attempting to execute sloeber after expanding V4.1mac64.2017-05-25_16-52-16.tar?

The tar file seems to expand just fine, but repeated attempts to download, expand and execute sloeber all fail.

Jim Conrad
macOS 10.12.6
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 07, 2017, 02:00 pm
yes.
Select the mac section here http://eclipse.baeyens.it/installAdvice.shtml (http://eclipse.baeyens.it/installAdvice.shtml)
More details are here https://github.com/Sloeber/arduino-eclipse-plugin/issues/625 (https://github.com/Sloeber/arduino-eclipse-plugin/issues/625)
Title: I can't get V4 Windows 'Product' to run on W10
Post by: pcarew on Sep 07, 2017, 09:35 pm
- I downloaded the V4 Product 64KB bundle onto a Windows 10 platform.
- I used cygwin to gunzip and then extract the files using tar (why not just a simple ZIP on a windows platform?)
- I went to run the sloeber-ide.exe and Windows blocked me saying that I didn't have permission.
- I tried this also using admin privileges....same result.

- I went back to Cygwin and used chmod +x to add execution mode to file.
This time Windows complained that it was missing companion libraries...

Where to from here?
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 08, 2017, 01:58 am
Please don't make a issue and post in the forum.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: pcarew on Sep 08, 2017, 04:49 pm
It's not my intention to create an issue, I just didn't know where else to ask for help.


I really want to get this up and running, but I'm stuck.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Sep 08, 2017, 06:11 pm
https://github.com/Sloeber/arduino-eclipse-plugin/issues/812 (https://github.com/Sloeber/arduino-eclipse-plugin/issues/812)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: innodron on Oct 03, 2017, 09:28 pm
Importing Cayenne also imports ESP8266Wifi, Ethernet, SD, SPI, Wifi, and Wire libraries.  Various files from the three Wifi-related libraries cause multiple definition errors.
I am experiencing a very similar issue that, including Blynk (via menu Arduino--> Add a library to the selected project or through having #include <Blynk.h>), Sloeber imports Ethernet, SD, SPI, Wifi. Which causes compilation errors like redefinition of 'class WiFiUDP', ...:

Code: [Select]

In file included from /Applications/EclipseCPP.app/Contents/Eclipse/arduinoPlugin/libraries/WiFi/1.2.6/src/WiFiUdp.cpp:29:0:
/Applications/EclipseCPP.app/Contents/Eclipse/arduinoPlugin/libraries/WiFi/1.2.6/src/WiFiUdp.h:27:7: error: redefinition of 'class WiFiUDP'
 class WiFiUDP : public UDP {
       ^
In file included from /Applications/EclipseCPP.app/Contents/Eclipse/arduinoPlugin/libraries/WiFi/1.2.6/src/utility/wifi_drv.h:26:0,
                 from /Applications/EclipseCPP.app/Contents/Eclipse/arduinoPlugin/libraries/WiFi/1.2.6/src/WiFiUdp.cpp:26:
/Users/ozkanserin/Developer/cpp/hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/WiFiUdp.h:32:7: error: previous definition of 'class WiFiUDP'
 class WiFiUDP : public UDP, public SList<WiFiUDP> {
       ^
/Applications/EclipseCPP.app/Contents/Eclipse/arduinoPlugin/libraries/WiFi/1.2.6/src/WiFiUdp.cpp: In constructor 'WiFiUDP::WiFiUDP()':
/Applications/EclipseCPP.app/Contents/Eclipse/arduinoPlugin/libraries/WiFi/1.2.6/src/WiFiUdp.cpp:35:22: error: class 'WiFiUDP' does not have any field named '_sock'
 WiFiUDP::WiFiUDP() : _sock(NO_SOCKET_AVAIL) {}
                      ^
/Applications/EclipseCPP.app/Contents/Eclipse/arduinoPlugin/libraries/WiFi/1.2.6/src/WiFiUdp.cpp: In member function 'virtual uint8_t WiFiUDP::begin(uint16_t)':
/Applications/EclipseCPP.app/Contents/Eclipse/arduinoPlugin/libraries/WiFi/1.2.6/src/WiFiUdp.cpp:45:9: error: '_sock' was not declared in this scope
         _sock = sock;


@chantling

The bad news is:
What you are experiencing is a weel known issue with Sloeber with a workaround described here.
https://www.patreon.com/posts/defines-before-6795548 (https://www.patreon.com/posts/defines-before-6795548)
Unfortunately I cannot view the content in this link; saying patrons only  ::) .



The good news is that I released V.4 and V4.0 fixed this problem.
I have the plugin version 4.1.0.201705252335, on a newly installed Eclipse CDT Oxygen 4.7.1 on Mac OSX.


I have tried;
- deleting the release folder,
- then menu:Arduino--> Add a library, deselect Ethernet, SD, SPI, WiFi leaving Blynk checked
- they disappear from includes in Project Explorer however for a brief while, until plugin adds them again
during workspace rebuild

I had been happily developing for an ESP8266 Thing Developer with this plugin without an issue until I had  to add Blynk libraries. The sketch compiles fine with Arduino IDE (which I do not want to use unless I have no other option).

A simple Blynk example without any extra code does not compile either, complaining about same multiple-definitions in WiFi library.

I will appreciate any help. Thanks in advance.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Oct 04, 2017, 05:13 pm
Setting the cdt indexer settings as described here should fix this issue.
https://github.com/Sloeber/arduino-eclipse-plugin/issues/825
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: proddy on Oct 05, 2017, 10:41 am
Hi everyone, ESP8266 question

Just made the switch from PlatformIO to Sloeber as I miss working in a real IDE.

Installed the latest 4.1 (also tried the nightly build) but don't see ESP8266 in the Paltforms/Boards as it's described in the video https://www.youtube.com/watch?v=S_QTMNhaDwM .

Am I missing something?

Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Oct 05, 2017, 04:02 pm
ESP8266 have changed something on their server causing the file to fail to download
see this issue for more detail https://github.com/Sloeber/arduino-eclipse-plugin/issues/743
I copied the file to my server and added code to download this file instead of the original one but that caused issues as well
So I have removed this in mylatest version.
ESP8266 never responded to my questions on how to download  the file. I can't even understand why they put limitations on the download anyways
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: proddy on Oct 05, 2017, 04:37 pm
Ah ok. I managed to get it working by adding "http://arduino.esp8266.com/stable/package_esp8266com_index.json"  to the 3rd party URL list.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: innodron on Oct 05, 2017, 09:41 pm
Setting the cdt indexer settings as described here should fix this issue.
https://github.com/Sloeber/arduino-eclipse-plugin/issues/825
I had upgraded the plugin today to 4.1.0.20171003 from nightly builds before I saw your response. After the upgrade the issue had been resolved somehow - without changing indexer settings - no longer giving duplicate definition compilation errors, although the plugin had added a few libraries

Then, I made changes to the indexer as you suggested above. Removed Blynk and additional libraries from the project, cleaned and added Blynk again. This time no additional library added to the project.

It seems all issues resolved. Thanks for the help.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Oct 06, 2017, 04:18 pm
>It seems all issues resolved. Thanks for the help.

good

As an independent open source project we value your submission, but we ask for support, either by helping us out coding (yeah, we do understand it does require time) or a Patreon contribution (starting from as low as 1$ a month): this allows us to support people who support us back!
As a supporter you can drag our attention and prioritize your submission...
please become a supporter!
https://www.patreon.com/jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Meinzi on Oct 29, 2017, 12:32 pm
Hi I am new here and I dont know if I am right here to ask a question about Local Debug on Sloeber Arduino.
I have installed the 4.1 Version of plugin Sloeber.

Now I have tried to implement debug function to Sloeber.
I made as it is described in video tutorial. (https://www.youtube.com/watch?v=ZN-rLSyhBN8&list=PLCSjf7QmP3TDPSjT_5UIp0DHXzKdhIQsF&index=4)

But now after all i tried to compile in localdebug and it shows me the error:

20:09:00 **** Incremental Build of configuration localdebug for project blink ****
"D:\\Arbeit\\sloeber\\arduinoPlugin\\tools\\make\\make" all
'Building file: ..\.ino.cpp'
'Starting C++ compile'
"/bin/g++" -c -g -O0 -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -DF_CPU=8000000L -DARDUINO=10802 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR_LOCAL -DLOCAL_RUN  -I"D:\Arbeit\git\hardware\jantje\avr_local\cores\arduino" -I"D:\Arbeit\git\hardware\jantje\avr_local\variants\avr:1.6.20:eightanaloginputs" -MMD -MP -MF".ino.cpp.d" -MT".ino.cpp.o" -D__IN_ECLIPSE__=1 -x c++ "..\.ino.cpp"  -o  ".ino.cpp.o"  -Dsrandom=srand -Drandom=rand
Das System kann den angegebenen Pfad nicht finden.
subdir.mk:24: recipe for target '.ino.cpp.o' failed
make: *** [.ino.cpp.o] Error 1

20:09:01 Build Finished (took 450ms)


As i understand it tried to call "/bin/g++" which is not possible cause also the command console doesnt find the path of g++.exe.

If it would be called simple with "g++" it will be found due to the windows path implementation shown in the video. I checked this in a cmd console!
What is wrong?
Can you help me?

best regards Klaus
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Oct 29, 2017, 09:41 pm
@klaus
Thanks for becomming a patron.
I have been working on debugging the last weeks and things have changed a lot. It is all a lot easier easier now.
I'm planning to make a video on it and as a patron you'll be with the first ones to see it. But it is so easy a video is not really needed :-)
When you upgrade to the nightly and use the json file https://raw.githubusercontent.com/jantje/hardware/master/package_jantje_index.json and install the pc boards you should be able to get local debugging up and running.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Meinzi on Oct 30, 2017, 09:44 am
Hi Jantje

As I understood right I should update the Json File which is located in the hardware>target section of project  explorer.

I just copied the new content into the old file for replace and saved it.
I just see that the file wich you gave me yesterday has an older version 1.0.0, than that one I replaced. The given checksum inside the Json file is also same ??

After this I tried to compile but same problem than before.  :smiley-confuse:

regards Klaus
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Oct 30, 2017, 11:01 am
There is no need to copy files around.
Sloeber does not check the checksum and sizes so I do not always bother to update them.
But it looks to me you miss basic sloeber knowledge. I'll try to get the video's out this week.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Meinzi on Nov 10, 2017, 12:01 pm
Hi
Yes of course I am new at Sloeber, but I already did wirte software for Atmel 8 Bit cpu's.
I did use Atmel Studio in a much older version than the current version 7 which comes now with the posiblilty to import Arduino projects and of course debugging or code simulation function.

At Arduino I did only simple projects with no need of any debugging feature.
But now I do need this ability and so i came to sloeber.

Is there a posibility to do at least code simulation on Pc. Hardware debugging is not realy needed at the moment.

I do not use the Uno board and i do not use 32bit processor's.

Currently I only use 8 bit Arduino boards.
So how can I induce sloeber to simulate a written code (for an Arduino pro mini board for example)?

best regards Klaus
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 10, 2017, 01:26 pm
I'm sorry but I didn't get to making the video.
It is  however very similar to the hardware zero debug.
https://www.youtube.com/watch?v=DXTo4-0pWKA (https://www.youtube.com/watch?v=DXTo4-0pWKA)
As I'm currently running lots of test for the V4.2 release and preparing for Rome maker fair there is little space for new video's.
Note that I release Sloeber video's earlier to my patrons.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Headroom on Nov 13, 2017, 12:07 am
On my iMac I currently use Slober 3.1 (ancient) and an even more ancient version 1.30 of Teensyduino.

I installed Sloeber 4.1 (stable) on my new MacBook Pro and the latest Java JDK 9.
That is one step ahead of what is documented on the sloeber.io website, which is 8.

I can start Sloeber and it asks for a work space directory, bu when I accept the default it responds with the error message.

The log file this error message points to is attached. Not having any java background I have no idea where to even start looking for a root cause, other than installing JDK 8, but I've installed higher java versions before and it's never been a problem.

Help is appreciated!
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: ats3788 on Nov 13, 2017, 08:37 am
Hello
I use sloeber 4.1 and it has Problems with adding Libraries so I add them manually , this works
but


#include <Adafruit_GFX.h> // Hardware-specific library
#include <MCUFRIEND_kbv.h>
// work in line numbers.  Font height in ht
int16_t ht = 16, top = 3, line, lines = 15, scroll;
MCUFRIEND_kbv tft; // without this tne Code got compiled

void setup()
{

}

void loop()
{

}

with MCUFRIEND_kbv tft
I got the Message

D:\Workspace\UNO\ILI9341_Test\Release/..\ILI9341_Test.ino:15: undefined reference to `MCUFRIEND_kbv::MCUFRIEND_kbv(int, int, int, int, int)'
collect2.exe: error: ld returned 1 exit status
makefile:79: recipe for target 'ILI9341_Test.elf' failed
make: *** [ILI9341_Test.elf] Error 1

With the Arduino KDE it works.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: ats3788 on Nov 13, 2017, 11:40 am
I found a solution for my Problem. I added the the Offline Library to the library Folder with drag and drop and now it's working. You did a damn good Job the only think what has to be improve is the Library Manager.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: ats3788 on Nov 13, 2017, 01:55 pm
Hello me again
What i figured out, in Eclipse drag and drop just the path of the libs don't copy and paste the whole files because then Eclipse is causing Problems. After this you have to add the paths of your added Libs in
Project-->Proberties-->C++/C General --> Path and Symbols-->Add (Check all Languages)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: gfvalvo on Nov 14, 2017, 02:21 pm
Hi All. I previously posted this same question here (http://forum.arduino.cc/index.php?topic=510959.0), but, have received to reply in 4 days. Maybe someone reading this thread can help:

I managed to get Sloeber installed including support for Teensy and ESP8266 boards. Never used Eclipse before so the learning curve is a little steep, but I'm groping my way through.

I'm also new to the workspace / project concept, so I'd appreciate a little advice on how to organize things. When using the Arduino IDE I would often make subfolders in my main sketch folder. These would enable me to group together related sketches or different versions of the same sketch in a hierarchical manner.

So, what's the equivalent of this hierarchy in the Eclipse world? Say I want to group together multiple versions of the same sketch so that I can always revert to a previous one if I screw things up too badly along the way. Can I have multiple versions of the source code in the same project? Or, do I make a "sub workspace" under my main one and put an individual project for each version in there?

Thanks in advance for your advice.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: MFletcher93 on Nov 15, 2017, 12:43 am
Hi gfvalvo,

I am new to Sloeber too but I fortunately have some experience with Eclipse and some other tools. If you are worried about reverting to a previous sketch if you screw things up, it's time to learn about version control. I use Git but there are other tools out there such as Subversion.

The idea of version control -- although I may be using language unique to Git, as that is what I know -- is that you have a repository for your project and commits, which are previous versions of your source code. You don't have to manually copy and paste, it is all managed for you and you can revert at any time. You can also compare the changes you have made since the last time you committed, so if something is screwed up and you don't know where, you may be able to find it that way.

Eclipse has plugins (I think it is called EGit) which integrate Git into your IDE directly. Then you have a Git menu somewhere where you can commit with a few clicks.

I highly recommend finding one of the many tutorials that are out there for Git because it is one of those life-changing tools for anyone who programs. It won't take you long to learn the basics at all.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: gfvalvo on Nov 15, 2017, 01:21 am
Thanks for the reply @MFletcher93. I agree that a version control product would allow reversion to a previously working code if I mess up too bad.

But, I'm just as happy handling that aspect manually and not having to learn yet another tool.

However, the real problem I see is that I don't think it solves the issue of organizing the workspace into a logical, hierarchical structure. I want to group similar projects together rather than one big flat structure. Let me know if I'm wrong about that and the Git tool can provide the capability.

Thanks again.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: MFletcher93 on Nov 15, 2017, 05:05 am
You are correct that Git only solves the versioning problem.

In terms of a more sensible structure there doesn't seem to be a way of organizing things in a hierarchy but there are some partial solutions: separate workspaces and working sets.

Personally, I find that changing workspaces is very slow. That might just be my computer but I would only use it for things I wanted to keep strictly separate -- such as work and hobby projects.

Working sets are within workspaces and can act like a folder but only go one-level deep. Also, I think that you can have one folder within multiple working sets so it's not exactly like a normal folder.

I'm hoping that you have a similar layout to mine so I can give you some instructions.

To create some working sets, find your Project Explorer panel and click the View Menu triangle at the top. Click "Select Working Set..." and click "New...". You will want the "Resource" working set type (as that is what projects fall under), and then you can select which projects you want in that working set. Then back in the "Select Working Set..." dialog box you can select which working sets you want to be able to view in the Project Manager.

If you go back to that Project Manager menu there are also some other options which may help.
Projects Presentation -> Hierarchical and Top Level Elements -> Working Sets.
Those will display the working set folders in your Project Manager.

So not a perfect solution but I hope that helps. I was just experimenting with that now because I realized I have too many projects myself.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: gfvalvo on Nov 15, 2017, 04:17 pm
Thanks again for the reply @ MFletcher93. I read several postings during my Google searches that agree with your assessment of switching Workspaces -- it's slow and keeping your preferences synchronized between multiple Workspaces is a pain.

I also stumbled onto the Working Sets concept during my Google searches and fumbling around in the IDE. I came to the same conclusion -- it only gives you the simulation of hierarchy, and only one level deep at that. But, it also appears to be the only simple alternative to the totally flat Workspace. It's amazing to me that someone would go to the trouble of creating a tool as extensive and powerful as Eclipse and neglect the concept of hierarchical organization. But, it is what it is.

I'll look further into Git and GitHub when I get a chance. After viewing a couple of tutorials, the concept seems simple enough. But, I think it would be cumbersome to use unless support is integrated into Eclipse. Perhaps the plug-in you mentioned?

Anyway, thanks again.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 16, 2017, 08:01 pm
@gfvalvo
version control is the normal answer to your version control question.
The sloeber project includes e-git so there is no need to install extra plugins.
If you are serious in software development (and it looks like you are) you have to take a look at version control and if you do opensource github is a really good choice at the time of writing.
Note that a good version control allows you to have versions over time (commits) as over functionality (branches)
See this video on how to import a non Sloeber Arduino project in Sloeber. A Sloeber project is just lots easier todo https://youtu.be/FrtiVYjF7vU (https://youtu.be/FrtiVYjF7vU)

As to workspaces:
I use multiple workspaces and I do not swap but start multiple eclipses (I have more memory 16GB then cpu power 2-cores)  :smiley-confuse: .
It is not uncommon for me to have 3 eclipse instances running. FI one to develop sloeber, one for my arduino projects and one for debugging/testing github issues.
My advice is as follows: Start with one test and one production workspace. Only add a workspace if you have a need. Note that if you use version control you can have the same source code (in different versions) in all workspaces

I'm not sure what you mean with "concept of hierarchical organization"

best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 16, 2017, 08:05 pm
@Headroom

The current nightly will be V4.2 () and supports java V9.
It also has a bunch of great improvements.
Best regards
Jantje
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: gfvalvo on Nov 16, 2017, 09:00 pm
I'm not sure what you mean with "concept of hierarchical organization"
Hi @Jantje, thanks for the reply.

As an example of hierarchical organization, think of the folder tree structure on your PC. You (probably) don't keep all your thousands of files in one big, flat "My Documents" folder. More likely, that folder has lots of sub-folders in it (Pictures, Music, Movies, Correspondence, Financial, Appliance Owners Manuals, Investments, etc.)

And, each of those sub-folders can have more sub-folders inside them. And, THOSE sub-folders can have sub-folders inside them. You get the idea. Starting from the top level, I can drill down to the files I need in a logical and organized manner.

I'd like to have the same organizational structure for my Eclipse workspace. I don't want dozens or hundreds of Arduino sketches sitting at the top (and only) level of a flat workspace. I want hierarchical organization. I want sub-workspaces called "Holiday Projects", "Audio Projects", "Robot Projects", and "Home Automation Projects". Inside those sub-projects I want more sub-workspaces. For instance, inside the "Holiday Projects" sub-workspace I want sub-workspaces called "Halloween Projects" and "Christmas Projects". Inside the "Halloween Projects" sub-workspace I want more sub-workspaces called "Scary Light and Sound Effects Projects" and "Costume Projects".

In short, I want an organized, hierarchical structure analogous to the folder structure on my PC. Does that make sense?

Edit:
Thanks for the info that e-git is already installed in Sloeber.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 17, 2017, 03:20 pm
@gfvalvo
I would consider the "hierarchical organization" as you describe it as "the old way of working.
Tagging is the new way. This because real things do not fit in a tree.

I think about the version control as the place to store/search code so tagging and organisation happens there. The workspace is the place where I have my currently active projects not all projects.
Using git it is easy to add/remove projects to/from the workspace. In other words, I don't want Halloween projects in my workspace during Christmas time.
 
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: gfvalvo on Nov 17, 2017, 05:22 pm
@gfvalvo
I would consider the "hierarchical organization" as you describe it as "the old way" of working.
But, I am old   8)
I'll try to learn the "new way".
Thanks.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 17, 2017, 05:28 pm
But, I am old   8)
I'll try to learn the "new way".
Thanks.
I'm probably older ;-)
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: gfvalvo on Nov 17, 2017, 11:03 pm
version control is the normal answer to your version control question.
The sloeber project includes e-git so there is no need to install extra plugins.
So, I've never done git-anything before except download Arduino libraries from GitHub.

But, I have been reading a lot online and understand the basic concepts at least. It should be pretty easy for me since I'll be the only "collaborator" working on my projects.

However, I'm still having difficulty understanding the relationship between Sloeber / Eclipse, e-git, git, GitHub, etc. And, I can't figure out what's necessary to start using e-git from within Sloeber to do version control on my own projects. Part of the problem is there is too much information on the web and I can't separate the applicable from the not applicable.

So, how do I start out? Sloeber is already installed. Do I have to also install a git-something program on the PC and somehow link it with Sloeber?

I just need a basic guide for a single-contributor setup. After that, I should eventually become smart enough to ask more intelligent questions.

Thanks.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 18, 2017, 05:46 pm
The only video I have on this subject is https://youtu.be/FrtiVYjF7vU (https://youtu.be/FrtiVYjF7vU)
I'm considering to make some  more https://www.patreon.com/posts/are-you-in-video-15434866 (https://www.patreon.com/posts/are-you-in-video-15434866)
Title: Edit --- Solved ----- How to upgrade ESP8266 SDK to 2.4RC2 to fix WPA2 crack
Post by: Gerry33 on Nov 21, 2017, 06:42 pm
Edit: Got it: The json package must be moved above  the elder json package description files.
Then in the project settings, the new version appears and can be selected. Full re-compile and done !
-------------------------------------------------------------------------------
Hi all,
does anybody know how I  can add a  the ESP8266- SDK V2.4-RC2 from https://github.com/esp8266/Arduino/releases/tag/2.4.0-rc2 (https://github.com/esp8266/Arduino/releases/tag/2.4.0-rc2)  into SLOEBER. I want to incorporate the new WPA2 fix.

When adding the path

https://github.com/esp8266/Arduino/releases/download/2.4.0-rc2/package_esp8266com_index.json (https://github.com/esp8266/Arduino/releases/download/2.4.0-rc2/package_esp8266com_index.json)

through Preferences/'Third party index url's', nothing happens. No selection of 2.4 does appear.

Also adding  package_esp8266com_index.json or adding the 2.4 package manually does not work.

What is the official upgrade path ?


Thanks for any hint.

Gerry


Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 22, 2017, 04:41 pm
Make sure you do not have 2 json url's ending on the same last part. In your case "package_esp8266com_index.json'.
I would also advice to deinstall (remove packages and delete the folder on disk) everything related to the original json file before adding the new json url.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Ullie76 on Nov 23, 2017, 08:56 pm
I'd like to warn everyone to not blindly update to version 4.2 of the plugin: it will break your OTA update functionality with an ESP8266. Eclipse will try to use the 'generic ssh loader' and that will obviously fail. I don't have any clue nor documentation in order to find a fix. Just stay on plugin version 4.1, works like a charm.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 23, 2017, 09:19 pm
@ullie76
Have you made a issue for this? If not you should as it may work a bit different between 4.1 and 4.2 and not be a problem at all.
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Ullie76 on Nov 23, 2017, 09:31 pm
Hi Jantje! Awesome software you made (the 4.1 version i mean). I haven't made an issue, how should I do that? Maybe you can explain the differences here? I've tried a lot, but it still uses the ssh loader instead of the generic loader (even in an entire new sketch).
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: Jantje on Nov 24, 2017, 12:46 am
https://github.com/Sloeber/arduino-eclipse-plugin/issues (https://github.com/Sloeber/arduino-eclipse-plugin/issues)
Is the place to report issues.
Please be precise and provide wanted and actual behaviour
Title: Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
Post by: KenK on Nov 28, 2017, 10:24 pm
I'm having a problem..

I downloaded the Sloeber version of the Elipse program this morning and have some issues.  

The version I am using is the 32 bit version of the Windows downloaded this morning.  I believe it is "4.2 2017-11-20-0109".


I loaded the program on the root of C drive as the setup routine complains about the path name being to long.   The current path name is C:\Sloeber. The work directory is also in the Sloeber directory.


When I start the program up, I get the following error:

Code: [Select]

The indexer option "index source files not included in the build" must be off in windows->preferences->C/C++->indexer
and
The indexer option "index unused headers" must be off in windows->preferences->C/C++->indexer

[/code]

What does that mean?? 


The program will load up and I did manage to generate, compile and upload a simple "Hello World" program once.


I saved the program and it is on the C: drive as expected.  When I try to reload, edit  and rebuild the program, I get the following error:

Code: [Select]

There are no projects selected in the project explorer or all selected projects are not arduino projects. Are you in the Arduino perspective?


I have not been able to get around this problem. 


The serial monitor is still working as expected. 

Once I get the Arduino version working, I hope to move over the Oxygen C++ version and start writing code for Windows. 


What am I doing or have done wrong??

Any help will be greatly appreciated.

Ken

 
Ti