Go Down

Topic: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches (Read 382300 times) previous topic - next topic

Jantje

In Sloeber (whitch is a layer on top of CDT a real C++ide ) just create your workspace in the parent of your arduino sketches.
Then create new arduino sketches with the wizard using the same name as the foldernames.
Done**.


*Unless there is some ino incompatibility like using enums defined in the .ino as parameters/return values of methods.
Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

manny2002

Simply drag the serial monitor outside of the eclipse window.
Thanks.
At first didnt work, but then I realized it needs to be done while Eclipse is not full screen.

zenseidk

Hello,
I get a strange error when launching sloeber:

JVM terminated. Exit code=1
/usr/bin/java
-Dosgi.requiredJavaVersion=1.8
-Dorg.eclipse.update.reconcile=false
-Xms40m
-Xmx512m
--add-modules=ALL-SYSTEM
-jar /home/zenseidk/sloeber//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
-os linux
-ws gtk
-arch x86_64
-showsplash
-launcher /home/zenseidk/sloeber/sloeber-ide
-name Sloeber-ide
--launcher.library /home/zenseidk/sloeber//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.550.v20170928-1359/eclipse_1629.so
-startup /home/zenseidk/sloeber//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.appendVmargs
-exitdata 230010
-perspective io.sloeber.application.perspective
-vm /usr/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Dorg.eclipse.update.reconcile=false
-Xms40m
-Xmx512m
--add-modules=ALL-SYSTEM
-jar /home/zenseidk/sloeber//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar

The IDE does not start, any suggestions?

I tried downloading the newest stable build and it gives me the same error.

I am able to launch other eclipse based IDE's with no issues.

HDo_777

Me also  >:(  >:(  >:(

Hello Jan Baeyens,

I get this error, when I try to upload my sketch or to add a serial port to the monitor.

Do you have a solution to fix this error? What can I do?

Please click to this link to see the picture:
https://drive.google.com/open?id=1jXto7x-QpsXm0q41MhZRFRAwY7zJ2gdx


Greets :)

gfvalvo

Hey, has anyone out there been able to upload from Sloeber to an Adafruit Feather M0? I have https://adafruit.github.io/arduino-board-index/package_adafruit_index.json included in "Third party index URLs" and the latest packages selected under "Platforms and Boards". My code compiles just fine, but the IDE pukes when I try to upload. Displayed in Console:
Quote
Starting upload
using arduino loader
Forcing reset using 1200bps open/close on portCOM24
PORTS { COM1, COM3, COM13, COM24,} / { config error:, see https://github.com/jantje/arduino-eclip ... issues/252,} => { config error:, see https://github.com/jantje/arduino-eclip ... issues/252,}
Comport reset took250ms
Using comportconfig error: from now onwards
Ending reset

Launching/bossac --port=config error: -U true -i -e -w -v D:\SloeberWorkspace\testSleep/Release/testSleep.bin -R
Output:
failed to upload
First time I've had this issue. Uploads work fine for other boards I've used: ESP8266 Feather Huzzah, Teensy 3.2, Uno. Also, upload to Feather M0 works fine with Arduino IDE.

This question is also posted at:
https://forums.adafruit.com/viewtopic.php?f=57&t=137585
https://github.com/Sloeber/arduino-eclipse-plugin/issues/995

TIA

gfvalvo

Hey, has anyone out there been able to upload from Sloeber to an Adafruit Feather M0? I have https://adafruit.github.io/arduino-board-index/package_adafruit_index.json included in "Third party index URLs" and the latest packages selected under "Platforms and Boards". My code compiles just fine, but the IDE pukes when I try to upload. Displayed in Console:First time I've had this issue. Uploads work fine for other boards I've used: ESP8266 Feather Huzzah, Teensy 3.2, Uno. Also, upload to Feather M0 works fine with Arduino IDE.

This question is also posted at:
https://forums.adafruit.com/viewtopic.php?f=57&t=137585
https://github.com/Sloeber/arduino-eclipse-plugin/issues/995

TIA

Work around posted here: https://github.com/Sloeber/arduino-eclipse-plugin/issues/995

6v6gt

I've just installed Sloeber 4.2 under Windows 10  (I have not used Sloeber before and I am no Eclipse expert). Anyway, I have succeeded in uploading the blink sketch, and it works. However, I see these errors below which I can't explain because if these functions and symbols could really not be resolved, as the message would imply, it surely would not work :







Jantje

Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

6v6gt

That was it, an indexing problem. Thank you very much. I didn't know that Eclipse used two different, possibly inconsistent, methods for resolving symbols and functions.

My next steps are to get an ESP8266 example working, demonstrate that I can export a project in such a way that someone still using the Arduino IDE can use it, then migrate my current development to Sloeber. It is 3000+ code lines and more compilation unit tabs than can fit on the Arduino IDE Top bar ! Anyway, I try to sort all that out myself.

Jantje

Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

6v6gt

OK. I'm very impressed by Sloeber / Eclipse, I will use it for new projects which use a supported board,  and will migrate  old code from the Arduino IDE as and when needed. In fact, I would have benefited from using it much earlier. Karma++ for that.

I recently downloaded the released version of 4.2 and it appears to have the bug #907 (miserably slow  upload to board speed) which I can work around by copying the call to esptool.exe and executing it manually in a command window. I guess the bug is fixed in the current "Nightly Build", however I'm a bit nervous of using these because here is not much information visible about what has changed. Is a new release planned in the near future ?

 

pcborges

Hi, just installed Eclipse Photon and the Arduino plugin.

It works fine till the moment I have to add a Github library not available via Window/Arduino download manager.

Help welcome

Thanks
Paulo

hichhiker

It works fine till the moment I have to add a Github library not available via Window/Arduino download manager.

Help welcome
Any particular reason you can't just check it out to "libraries" folder in your project like you would in Arduino IDE? It is by far the simplest way to add a library to your project - and if you are using git for your project, you can even make it a sub-module so it is all versioned together.

But if not, you can also have a shared libraries folder for your entire workspace and add it in config.

The things that are being listed from the drop down are populated from an "index URL" - a url that returns a JSON file listing all the known libraries, information about them and how to download/install - if you cannot find an index JSON for libraries you are looking for, you can also just write your own and add it, its pretty simple JSON. Here is the official main JSON for Arduino IDE (and Sloeber): http://downloads.arduino.cc/libraries/library_index.json

HTH

6v6gt

Hi, just installed Eclipse Photon and the Arduino plugin.

It works fine till the moment I have to add a Github library not available via Window/Arduino download manager.

Help welcome

Thanks
Paulo
cross post of http://forum.arduino.cc/index.php?topic=560612.0

Jantje

OK. I'm very impressed by Sloeber / Eclipse, I will use it for new projects which use a supported board,  and will migrate  old code from the Arduino IDE as and when needed. In fact, I would have benefited from using it much earlier. Karma++ for that.

I recently downloaded the released version of 4.2 and it appears to have the bug #907 (miserably slow  upload to board speed) which I can work around by copying the call to esptool.exe and executing it manually in a command window. I guess the bug is fixed in the current "Nightly Build", however I'm a bit nervous of using these because here is not much information visible about what has changed. Is a new release planned in the near future ?

 
Thanks for the nice words
You can see the changes from the arduino menu in Sloeber "do I need to upgrade".
I'm planning to release 4.3 shortly so the nightly is stable at this point in time.
Best regards
Jantje
Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

Go Up