Go Down

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

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 -

ThomasH-W

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/


If there is a better way to handle this, pleas let me know.

Jantje

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

rodwsm

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?

Jantje

@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
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 -

rodwsm


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 -

BertVK

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?

Jantje

Hi Bert
As you can read on 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
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 -

BertVK

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.

Jantje

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

BertVK

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.

Jantje

@Bert
I had this sneaky suspicion  8)
Nice to hear all is working now  :smiley-grin:

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 -

Losgar

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



Jantje

@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
I'll make a different sections for it.
Simply select "arduino->add library to the selected project" and pick your library.
Good luck
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