Go Down

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

RA5040

Hi Jantje,

I've just started using the Eclipse Arduino plugin and it is GREAT! Thank you! (I'm just off to Patreon to give you my support).

I apologize if this question has already been answered, but if it has I can't find the answer anuwhere.

I've tried and failed to install the GDB Hardware Debugger: https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/jtag-debugging/using-debugger.html#jtag-debugging-using-debugger-eclipse ... Help/Install New Software doesn't find the GDB Hardware Debugger.

I don't know if this is because of the Arduino plugin or if there is a problem with my Eclipse installation.

If this type of debugging isn't possible with the plugin, is it possible to use the EspExceptionDecoder (as with the Arduino IDE)?

Or is there another way to debug (the ESP32 in this case).

Thanks again!

Robert

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 -

RA5040

Thanks.  I don't really want to use jtag debugging because I have a feeling that I would never get it to work (maybe I'm wrong, but I would need a step by step tutorial all the way: I'm new to the ESP32, Sloeber, Arduino etc., so it's very easy for me to make a mistake, things don't work and I have no idea where to go).

On the other hand these videos seem to indicate no need for additional hardware (which is pretty amazing!):
https://youtu.be/WFzVzgEA8Fo
https://youtu.be/DXTo4-0pWKA

And if they don't need additional hardware then the debugging seems superb.

But even these instructions are pretty complicated (I've written down the instructions and there are over 12 steps, and a small error is all that is needed to stop it from working).  For example, in Step 1 of the procedure, looking at my system, Window/Preferences/Arduino/ Platform & Boards I see that I don't have the esp32 in the list, but I do have the esp8266.  Do I need the esp32 there (would seem logical that I should), and if so how do I install it?

Anyway, debugging is so essential that it would be really worth getting this fully sorted out: it would make Sloeber just incredible.

In the meantime, is there any way of getting at least the same level of debugging as on Arduino (that is EspExceptionDecoder)?

Jantje

The first video is about debugging with the zero which has a debugging chip on board.
The second video is about the esp8266 which has some way of serial debugging.
As far as I am aware the esp32 does not have any of these.

The espExceptionDecoder can be used in Sloeber. There is still a line missing between the dots but it s workable as it is right now in the latest nightly. For more info see
https://github.com/Sloeber/arduino-eclipse-plugin/issues/542
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 -

RA5040

OK ... I missed the Zero :)

What about the ESP-Wrover-Kit? That has built-in JTAG and USB Debugging built in.

My problems is that I don't know if it's possible to use Espressif tools like the Open OCD / GDB debugging (described here http://esp-idf.readthedocs.io/en/latest/api-guides/jtag-debugging/index.html) with the Eclipse Arduino plugin.  And if it is, how to install it so that it is properly integrated.

This is something I really do want to get to work and if I could find out how to do it I would be happy to write up a document on it and also do a video.  (Also, it's really something that needs to be done as it would make the Eclipse Arduino a super-powerful product).

Jantje

Start small. Don't take to big steps.
Freecks documentation is what you need but get simple things working first.
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 -

RA5040

Yes, of course ... starting small is good, but I would prefer at least to be starting in the right direction and not have to abandon and start again.

So my understanding is that yes, it is possible to debug the ESP32 using Sloeber. With a JTAG interface and the current release of Sloeber, Freeck's instructions should work.  The instructions are these:

https://onedrive.live.com/view.aspx?resid=4EF34D0924CECD08!105684&ithint=file%2cdocx&app=Word&authkey=!ACWnebcSvI14a0w

and this:

https://www.youtube.com/watch?v=hxOB7Qp0yM0&feature=youtu.be

and this:

http://esp-idf.readthedocs.io/en/latest/api-guides/jtag-debugging/tips-and-quirks.html

Do you know if anyone other than Freeck has tried this and if so what their experience has been?

Do you know if the ESP Wrover Kit can be used instead of a standalone JTAG-ICE?

And, finally, in case of problems, do you know if Freeck can be contacted for help?

Many thanks

Robert

RA5040

Would it be possible to add the ESP Exception Decoder to the Eclipse Arduino plugin, in the same way as on the Arduino IDE? https://github.com/me-no-dev/EspExceptionDecoder

This would be a very useful addition ... not as good as JTAG debugging, but very useful all the same.

6v6gt

Would it be possible to add the ESP Exception Decoder to the Eclipse Arduino plugin, in the same way as on the Arduino IDE? https://github.com/me-no-dev/EspExceptionDecoder

This would be a very useful addition ... not as good as JTAG debugging, but very useful all the same.
You've seen post #1038 ?

RA5040

You've seen post #1038 ?
Yes ... but all I can see is that it's on the list of things to do. I can't see where or how EspExceptionDecoder can be added to the plugin.

RA5040

When I build the ESP32_BLE_Arduino example BLE Server, I get an error in the BLEClient.cpp library source file.

The error is "Invalid conversion from 'int' to 'esp_ble-address-type_t' [-fpermissive]"

The same code compiles fine on the Arduino IDE, so I guess this must be a compiler setting on the Eclipse-Arduino.

Help please!

Robert

human890209

[HELP]

Hi,

I used a core need to use [arm-none-eabi-gcc][5.4.0-2016q2],
The default version of Sloeber is [4.8.3-2014q1]
Now every time I use that core, I need to replace all the [4.8.3-2014q1] with [5.4.0-2016q2] manually.

I'm wondering if there is a setting or way to set the [arm-none-eabi-gcc][5.4.0-2016q2] automatically?

RA5040

I'm getting an error on the subdir.mk file when building a test sketch for an Arduino Nano.  The error is:
cc1.exe: error: -fno-fat-lto-objects are supported only with linker plugin.

Here is the complete line from the console:

"C:\cpp-photon\eclipse\/arduinoPlugin/packages/arduino/tools/avr-gcc/4.8.1-arduino2/bin/avr-gcc" -c -g -Os -Wall -Wextra -std=gnu11 -ffunction-sections -fdata-sections -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   -I"C:\Users\Robert\Arduino\hardware\arduino\avr\cores\arduino" -I"C:\Users\Robert\Arduino\hardware\arduino\avr\variants\eightanaloginputs" -MMD -MP -MF"core\core\WInterrupts.c.d" -MT"core\core\WInterrupts.c.o" -D__IN_ECLIPSE__=1 "C:\Users\Robert\Arduino\hardware\arduino\avr\cores\arduino\WInterrupts.c"  -o  "core\core\WInterrupts.c.o"
cc1.exe: error: -fno-fat-lto-objects are supported only with linker plugin.
core\core\subdir.mk:182: recipe for target 'core\core\WInterrupts.c.o' failed
make: *** [core\core\WInterrupts.c.o] Error 1

I don't know what the 'linker plugin' is ... or what I should do to fix this problem.


RA5040

Well, I changed the platform to

C:\cpp-photon\eclipse\arduinoPlugin\packages\arduino\hardware\avr\1.6.2

I had another platform directory which obviously had missing elements.

adim

Hello,

i just installed eclipse photon with the sloeber and i am trying to use some of my custom libraries but it doesn't seem that it can find them. I saw the directory that it uses to search for the libraries arduino/preferences and it is where i have placed my libraries. I saw another post with the same problem and i want to ask if with the 4.3 version this problem is going to change. I installed sloeber from Eclipse Marketplace, is it the 4.3 version or do i have to install the github that jantje uploaded recently? Also i want to use eclipse with teensy 3.6, any updates about the way i can achieve that, i' ve read the trippy lighting tutorial but it is for really old version of the software.

Thank you very much

Go Up