Eclipse Foundation Member
Eclipse C++ IDE for Arduino Eclipse Project

Add this URL to your Eclipse Installation to reach this solution's update site.

Photon (4.8)
Oxygen (4.7)


Neon (4.6)


Learn more...

Details Group Tabs

Installs Last Update: 
Sunday, June 24, 2018 - 16:59
ryoung20u's picture

This one has me stumped, I'm really enjoying this new take on the Arduino IDE, but when I extend my test blinky very simply...

#include
#include

SoftwareSerial mySerial(10, 11); // RX, TX

void setup() {
// initialize digital pin 13 as an output.
pinMode(13, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
mySerial.begin(4800);
mySerial.println("Hello, world?");
//delay, indicate
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}

It can't find the SoftwareSerial.h file.

I've tried all sorts of fun stuff, including the files in the local project directory, adding an include path statement, and other logical things. I must be missing something simple. I guess my question is how to add a library more generally...

Thanks for outstanding effort!

R.

bboelaert's picture

Hi,

Very nice plugin - Plug & Play I would say!!!
During my first try-out, I saw that you cannot enter another serial port than /dev/ttyUSB0, /dev/ttyUSB1 and /dev/ttyUSB2.
My Arduino Ethernet is connected to /dev/ttyACM0.
So when I try to run it, avrdude always tries to upload the sketch to /dev/ttyUSB2.
Would it be possible to correct this?

Thanks in advance!

Bart.

dschaefer's picture

Sorry about that Bart. In recent releases, I've enabled the serial port selection to be a text box so you can enter any port. I thought we also added support for ttyACM0. Do you have the latest? Try "Check for Updates" from the help menu.

bboelaert's picture

Hello Doug,

I checked for updates but Eclipse couldn't find one. Below are the versions that I have on my system :
Arduino C++ Tools - Preview 8.8.0.201512282018 org.eclipse.cdt.arduino.feature.group Eclipse CDT
Remote Command Shell Console 2.0.1.201508262001 org.eclipse.remote.console.feature.group Eclipse PTP
Serial Port Remote Services 2.0.1.201508262001 org.eclipse.remote.serial.feature.group Eclipse PTP
The the Connection properties dialog still shows a ComboBox where I can overwrite e.g. /dev/ttyUSB0 by /dev/ttyACM0, but that value doesn't get stored when hitting "Apply".
I also saw that the value of "Board Type" is not saved. On my system it goes back to "LilyPad Arduino USB".
I would send you some screenshots to clarify my point, but this interface does not allow me to.

Kind regards,

Bart.

gjung's picture

I would really love this plugin,
but as of version 8.8.0.201512282018 the esptool is always called with
the reset method "ck", and not with the one which is selected in the connection settings.
So sadly I currently cannot use it for my NodeMCU boards.
Pretty sure this get fixed with one of the next versions.
Despite of this its a very promising plugin.
Thanks for your work!

dschaefer's picture

Yes, I needed that to get my ESP8266 board to load. I'm using the Adafruit Huzzah. I'll take another look. I've created bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=487634 to track.

drcrenshaw's picture

I just installed eclipse Mars 1(Release 4.5.1) and your IDE (1.0) on a fresh Linux Mint 17.3 install. I cannot populate the boards field in preferences so I tried selecting a few platforms based on the three default JSON files. They appeared to install but no boards appeared on the boards list. I tried all the usual turn it off/on uninstall/reinstall mumbo jumbo but with no success. Please advise and thanks for what should prove to be a great plug-in.

dschaefer's picture

Hmm, I'm not sure. The key is to wait for the download of the platforms to complete. You can see the progress in the Progress View. Also check the contents of the .arduinocdt directory in your home directory to make sure stuff gets there.

But yes, the Boards page is deprecated and will be removed in the 2.0 release in June. The Platforms page is the correct one.

mgreymore's picture

Sorry if this is a duplicate but the last one I wrote seems to have gone missing.

Downloaded JRE-8, Mars on a PC that had never seen Eclipse before. I followed your tutorial on youtube, albeit a little outdated but still close to the reality. All good up to the point where I was about to Launch. The first box had "---" the second the name of the program and the third had "---"

Your video had "Run" in the first box. The third box I dropped down and it showed "New connection." I already had followed the video and created two connections, but clicked and created another connection.

Never could get "Run" or the Connection to appear in boxes one and three so I could not get anything resembling a run. However it did **report** "Build" OK in the Console, but I could not get it to download to the Arduino so no way to know for sure.

As a programmer of 35+ years, you plug-in builders need to test these things on computers that have NOT had Eclipse installed before. Obviously your demo video is using a lot of stuff already configured within Eclipse and at an educated guess that is why this and the other Arduino plug-in I tried yesterday on another PC failed for a bunch of reasons.

Very frustrating and a waste of time. You need to ask yourself how many others have tried the plug-in and failed and not bothered to report back. As terrible as the Arduino IDE is, at least it compiles and uploads out of the box.

p.s. I read a previous comment and you said "report bug at link in description." What link?

mgreymore's picture

Downloaded JRE-8, Mars on a PC thta had never seen Eclipse before. I followed your tutorial on youtube, albeit a little outdated but still close to the reality. All good up to the point where I was about to Launch. The first box had "---" the second the name of the program and the third had "---"

Your video had "Run" in the first box. The third box I dropped down and it showed "New connection." I already had followed the video and created two connections, but clicked and created another connection.

Never could get "Run" or the Connection to appear in boxes one and three so I could not get anything resembling a run. However it did **report** "Build" OK in the Console, but I could not get it to download to the Arduino so no way to know for sure.

As a programmer of 35+ years, you plug-in builders need to test these things on computers that have NOT had Eclipse installed before. Obviously your demo video is using a lot of stuff already configured within Eclipse and at an educated guess that is why this and the other Arduino plug-in I tried yesterday on another PC failed for a bunch of reasons.

Very frustrating and a waste of time. You need to ask yourself how many others have tried the plug-in and failed and not bothered to report back. As terrible as the Arduino IDE is, at least it compiles and uploads out of the box.

p.s. I read a previous comment and you said "report bug at link in description." What link?

kross78d's picture

Hey guys, really liking this plug in. Recently I changed my boot loader to optiboot on my Arduino nano and uno. In the arduino IDE I can see my optiboot board but in Eclipse I can't. Any help is greatly appreciated.

Thanks
KR

dschaefer's picture

Haven't heard of that. I'll have to see if it's available in the package.json files. Might be a piece of UI that I'm missing. I've raised https://bugs.eclipse.org/bugs/show_bug.cgi?id=487635 to track.

rlogiacco's picture

As a secondary contributor to the Arduino Eclipse Plugin I don't understand why the efforts cannot be combined instead to compete...

dschaefer's picture

You guys are more than welcome to contribute to the Eclipse CDT project where this is hosted. The idea is to not compete but to build an Arduino IDE using the very latest CDT frameworks for build and launch and to do it at Eclipse approved by the Eclipse legal team licensed EPL so we can distribute it as a part of the Eclipse IDE. I would love if you could join us in that adventure.

rlogiacco's picture

To me this appears as "you are welcome to discard your efforts and contribute to what I've done" which isn't the collaborative approach I was hoping for.
In my humble opinion, if the licensing was a problem and you had the opportunity to bring Arduino into the Eclipse ecosystem, a far better approach would have been "hey guys, your plugin is great: what if we do it another way and get into the official Eclipse ecosystem together? I can help...".
Now, I'm not the main developer but just a side contributor so I'm just stating my personal opinion (in no way official or representative of anything other than myself) and I don't even know if any of the above has happened, but I'm disappointed to see this fragmentation.

dschaefer's picture

The Arduino C++ IDE is a showcase for the new CDT build and launch framework and other new Eclipse frameworks. It's a totally different code base and not much of what you guys have done could be carried over. And, yes, GPL. I've discussed that with Jan. For projects hosted at Eclipse it's a non-starter. The Eclipse legal team are pretty clear on that. But again, you guys are free to take a look at what we've done in the CDT to support Arduino and build on top of it or help with it. I can only justify spending time on this if it's to improve CDT while doing it so that's where I'm spending my limited time.

palcobia's picture

But I cant program the Arduino micro.
-----------------------------------------------------------------------------------------------------------
.....
Programmer Type : butterfly
Description : Atmel AppNote AVR109 Boot Loader

Connecting to programmer: .avrdude: butterfly_recv(): programmer is not responding
Upload complete
-----------------------------------------------------------------------------------------------------------
first the IDE or some script must set the corresponding COM port (in my case COM14) to 1200bpd, then open and close the port. Then COM14 will desapear and another COM port will appear after a few secconds ( in my case COM12 appears after 3 seconds). The IDE should then detect this COM port and launch AVRdude with the following command line:
avrdude -Cavrdude.conf -v -v -v -patmega32u4 -cavr109 -PCOM12 -b57600 -D -V -Uflash:w:hex.hex:i

hope it helps,
Paulo

dschaefer's picture

Please raise a bug using the link in the description so we can track the issue.

fiqbal's picture

Hello,

First, big thanks for developer for bringing in pretty good plugin for Arduino. The setup process is awesome, it downloads Arduino related stuff itself based on selected boards in settings. This makes it the easiest Eclipse IDE plugin for Arduino.

I tried it with Mini Pro and it worked on first try. I tried it with ESP8266 (ESP-12E) based board and it worked, but there are some issues. Basic sketch compiles, but it mixes libs from AVR platform.

There's one thing I failed to find, which I think is not implemented yet. Serial Monitor. After uploading / flashing the sketch on board, there's no way to see debug messages devs normally write on Serial to see if the sketch is working alright. I hope it will be implemented in coming updates.

I am using Arduino ESP platform which integrates with Arduino 1.5+ via Boards Manager. But there's a minor library path issue which I like to report so it could be fixed in next update.

After selecting the ESP platform in Arduino Connection settings, the basic ESP sketch compile and upload to ESP-12 without issue. But when I include SPI or Wire libraries, this plugin passes the Arduino's AVR SPI and Wire library paths to ESP compiler, which fails. You can reproduce is simply by including these libs in your sketch and compiling.

Also, it would be great to have an option to have custom libraries specific to current project. I.e. ESP works with most Arduino libs, but for some it needs tweaking in libs. So, with project level libs, developer can put tweaked libs in project folder.

I'd love to connect with developer on Twitter or via email so I can share some more feedback.

Keep up the good work!

// chall3ng3r //