Eclipse Arduino Sloeber

  1. Eclipse Arduino Vs Sloeber
  2. Sloeber Download
  3. Sloeber Esp32
  4. Eclipse Arduino Plugin Sloeber

Eclipse + Arduino IDE (Sloeber) 5 posts. Page 1 of 1. Goral64 Posts: 1148 Joined: Fri Dec 27, 2019 6:22 pm. Eclipse + Arduino IDE (Sloeber). Mind the “Sloeber” is an integrated finetuned installation package (about 150MB) containing the proper version of Eclipse with the proper version of Jantje’s Arduino plugin which downloads the proper versions of other components required (my Sloeber folder here includes sam-1.6.11, avr-1.6.18, avr-gcc-4.9.2, gcc-arm-none-eabi-4.8.3-2014q1. Where Arduino meets Eclipse You like Arduino, your projects are getting bigger and you feel the Arduino IDE is not powerful enough? This is about Sloeber a free, open source, Eclipse IDE to ease your development efforts! This represents a completely free and open Arduino IDE alternative! Mind the “Sloeber” is an integrated finetuned installation package (about 150MB) containing the proper version of Eclipse with the proper version of Jantje’s Arduino plugin which downloads the proper versions of other components required (my Sloeber folder here includes sam-1.6.11, avr-1.6.18, avr-gcc-4.9.2, gcc-arm-none-eabi-4.8.3-2014q1.

Mon Jan 14, 2019 9:47 pm
@fpiSTM, I saw on an issue raised by a user that you recommended to install eclipse, sloeber, etc in order to be able to debug.

I ran through the instructions that you provided here -> https://github.com/stm32duino/wiki/wiki/How-to-debug

Sloeber complained about my install path being over 40 chars, so I followed the advice here -> https://github.com/Sloeber/arduino-ecli … issues/705 so I could run eclipse from within a temp M: drive using subst.

I can successfully build and upload code to a bluepill, but when I try debug I have no luck.

OpenOCD.exe starts fine

But I get this output:
GNU MCU Eclipse 64-bit Open On-Chip Debugger 0.10.0+dev-00352-gaa6c7e9b (2018-10-20-06:24)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport 'hla_swd'. To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
none separate
Started by GNU MCU Eclipse
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : clock speed 950 kHz
Error: open failed
in procedure 'init'
in procedure 'ocd_bouncer'

Mon Jan 14, 2019 9:52 pm
Actually there’s more info available in a dialogue:

Error in final launch sequence
Failed to execute MI command:
-target-select remote localhost:3333
Error message from debugger back end:
localhost:3333: No connection could be made because the target machine actively refused it.
Failed to execute MI command:
-target-select remote localhost:3333
Error message from debugger back end:
localhost:3333: No connection could be made because the target machine actively refused it.
localhost:3333: No connection could be made because the target machine actively refused it.

Tue Jan 15, 2019 8:04 am
Just try without any issue.
ArduinoDo you use the proper USB cable?
I’m joke
Googling your issue, it seems it could be related on USB port use. Is it an USB 3 port ?

Other question, did you update the stlink firmware ?

Tue Jan 15, 2019 9:15 am
Yes it’s USB 3… I’ll try in a USB 2 port (tonight, I’m at the office)

St-Link is at latest firmware.

0800 utc to gmt. Thanks.

Eclipse Arduino Vs Sloeber

PS, you mean this SCART lead won’t work?

Sloeber Download

Tue Jan 15, 2019 5:39 pm
Tue Jan 15, 2019 6:11 pm
Ok. Fine.
Anyway I also seen that boards connected on USB3 port seems work on a limited mode….

Have a nice debug

Tue Jan 15, 2019 7:46 pm
Well I imported my main project into sloeber…

Bit of a learning curve:

* Custom libraries – it doesn’t like them – I managed to frig them in by including a false version number subfolder in the library folder which contained the source

* any typedef’s or constants defined in a .h will cause a compile error if you have that .h explicitly included. Sloeber builds a sloeber.ino.cpp with all the includes and for some reason that leads to double definitions, but not for anything else?? So comment out includes in main project.

* build_opts.h is ignored – had to manually instantiate Serial3

Compiles and uploads though – and the eclipse/sloeber IDE has already helped me spot some goofs, = instead of etc.

Tue Jan 15, 2019 7:57 pm
[BennehBoy – Tue Jan 15, 2019 7:46 pm] –
* any typedef’s or constants defined in a .h will cause a compile error if you have that .h explicitly included. Sloeber builds a sloeber.ino.cpp with all the includes and for some reason that leads to double definitions, but not for anything else?? So comment out includes in main project.

look into #pragma once

Tue Jan 15, 2019 8:23 pm
Never try with custom library…
Seems not so easy… sorry

About .h, I guess contact Jantje could be fine. (Github issue?)

About build_opt.h, I need to test but think about it I guess it attempt to have it in folder sketch. Get back on this.

Tue Jan 15, 2019 8:27 pm
[fpiSTM – Tue Jan 15, 2019 8:23 pm] –
Never try with custom library…
Seems not so easy… sorry

I cheated it – and my cheat worked

Tue Jan 15, 2019 8:28 pm
[Rick Kimball – Tue Jan 15, 2019 7:57 pm] –
look into #pragma once

Cool, thanks.

EDIT – worked a charm, doffs cap.

Wed Jan 16, 2019 9:20 am
I’ve check how Sloeber handle the prebuilt and in fact there is an issue.
In Properties window, then “C/C++ Build-> Environnement”, the A.BUILD_OPT.SOURCEPATH is not correct.
It is expand as /build_opt.h
Under Arduino IDE, this check in sketch folder if file exist if not an empty one is created else it is copied by Arduino IDE Stuff to the build directory in sketch folder.
Unfortunately this step is not reproduced with Sloeber that’s why even if A.BUILD_OPT.SOURCEPATH find the file it is not copied.

As a workaround, I’ve set A.BUILD_OPT.SOURCEPATH to be equal to A.BUILD_OPT.PATH
Then in the build dir under Eclipse, in sketch folder I create or update the build_opt.h file.
Then clean the project to force rebuild all. Like this it is ok.

Sloeber Esp32

Wed Jan 16, 2019 10:05 am

Eclipse Arduino Plugin Sloeber

Perhaps an issue requirement for sloeber? Again I’ll have a scan this evening to see if there’s something existing.