Go Down

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

sohini25

I may be wrong somewhere. Can you please tell the steps you followed for making this sketch .

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 -

sampi

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.

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 -

sampi

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

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 -

sampi

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.

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 -

neuweiler


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.

sampi

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.

Jantje

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

standardUser

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

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

Jantje

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

katekarnage


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

standardUser

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

Go Up