Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches

Hi,
I am facing an issue in using ESP8266.
Arduino Nano works fine. But no example compiles for any ESP8266. I have installed ESP8266 board manager v2.4.2.

12:52:44 **** Incremental Build of configuration Release for project genericesp ****
“C:\eclipse\arduinoPlugin\tools\make\make” all
‘Building file: …\sloeber.ino.cpp’
‘Starting C++ compile’
“C:\eclipse\arduinoPlugin\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++” -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ “-IC:\eclipse/arduinoPlugin/packages/esp8266/hardware/esp8266/2.4.1/tools/sdk/include” “-IC:\eclipse/arduinoPlugin/packages/esp8266/hardware/esp8266/2.4.1/tools/sdk/lwip/include” “-IC:\eclipse/arduinoPlugin/packages/esp8266/hardware/esp8266/2.4.1/tools/sdk/libc/xtensa-lx106-elf/include” “-IC:/Users/azhariqbal/eclipse-workspace-arduino/genericesp/Release/core” -c -Wall -Wextra -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DLWIP_OPEN_SRC -DDEBUG_ESP_PORT=Serial -DDEBUG_ESP_CORE -DARDUINO=10802 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="“ESP8266_GENERIC”" -DLED_BUILTIN=11 -DESP8266 -I"C:\eclipse\arduinoPlugin\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266" -I"C:\eclipse\arduinoPlugin\packages\esp8266\hardware\esp8266\2.4.1\variants\generic" -MMD -MP -MF"sloeber.ino.cpp.d" -MT"sloeber.ino.cpp.o" -D__IN_ECLIPSE__=1 -x c++ “…\sloeber.ino.cpp” -o “sloeber.ino.cpp.o”
‘“C:\eclipse\arduinoPlugin\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++”’ is not recognized as an internal or external command,
operable program or batch file.
subdir.mk:18: recipe for target ‘sloeber.ino.cpp.o’ failed
make: *** [sloeber.ino.cpp.o] Error 1

12:52:45 Build Failed. 2 errors, 0 warnings. (took 264ms)

It looks like there is a install issue.
Does '“C:\eclipse\arduinoPlugin\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++” exists on your disk?
If not delete the folder C:\eclipse\arduinoPlugin\packages\esp8266\tools\xtensa-lx106-elf-gcc\ and deinstall and reinstall the esp8266 platform.

It exists. I removed and reinstalled the plugin with no luck. I have also downloaded sloeber single file "V4.3.1_win64.2018-10-10_08-21-58.tar.gz". Same issue in it also. (build successful for nano but no luck with any esp8266 board).

I also have Eclipse for eSi-RISC development which I use for another chipset. Could it be messing with sloeber?

01:16:00 **** Build of configuration Release for project test5 **** "C:\sloeber\arduinoPlugin\tools\make\make" all 'Building file: ..\sloeber.ino.cpp' 'make' is not recognized as an internal or external command, operable program or batch file. make: *** [sloeber.ino.cpp.o] Error 1 'Starting C++ compile' make -C "C:\sloeber\/arduinoPlugin/packages/esp8266/hardware/esp8266/2.4.2/tools/sdk/lwip/src" install TOOLS_PATH="C:\sloeber\arduinoPlugin\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-" subdir.mk:18: recipe for target 'sloeber.ino.cpp.o' failed

01:16:01 Build Failed. 2 errors, 0 warnings. (took 708ms)

You can't build lwip from source unless you have lots of other stuff installed. Doesn't work in windows with Arduino IDE. Select another option for lwip in project properties->arduino

Thanks. Its working now.

This may not be the proper place for this question, if so I appologize. I have installed sloeber and it is running fine so far. I run linux and want to built the .desktop file so I can access sloeber from the favorites menue. Everything is going fine, but I can't fine the sloeber icon. That is needed to make everything work as its supposed to. I know there is an icon because when I start sloeber the orange and teal gears show up in my favorites bar (gnome desktop).

Many thanks

Have you tried the github repository?
https://github.com/Sloeber/arduino-eclipse-plugin/tree/master/io.sloeber.application/icons

Thanks, I never would have found it without that link. Appreciate the information.

is it possible to upload a sketch through ota, web or arduino style. i can't get it to work.

i mannaged to upload, it printes out by serial what the upload ipadres is, but where do i put this in sloeber.

As port state the ipadress+aspace+something else

it sudely poped up in the port selection part.
it took abou 10 minutes to showed up, for now it’s working.

Is there a way to set the library version, json library is on sloeber on version 6.x and i need 5.x
how can i change it.

it took abou 10 minutes to showed up, for now it's working. The whole bonjour stuff no longer works properly in windows 10.

way to set the library version, json library is on sloeber on version 6.x and i need 5.x Downgrade to 5.x in the library manager.

How do you configure Sloeber to embed binary data such as a certificate.

Like listed here https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html#embedding-binary-data

These are the steps for platformIO http://docs.platformio.org/en/latest/platforms/espressif32.html#embedding-binary-data

I thought there must be something similar for Sloeber, but I can't find any doco.

William

I thought there must be something similar for Sloeber, but I can't find any doco.

If there is documentation it is not on sloeber.io. I never heard of this. Jantje

So is there any way from within Sloeber to include a binary file (such as an SSL certificate) into the compiled application binary?

So is there any way from within Sloeber to include a binary file (such as an SSL certificate) into the compiled application binary?

This is a very open question which doesn't mean anything implementation wise. Answering it even openly I say "yes". Yes because sloeber is opensource and as such you can modify anything (but you can't because you don't have the time)

If you want a real answer you will have to be less open in your question. What one needs to know is: Which commands need to be executed at which time.

As a shortcut: take a look at project properties->arduino->compile options There you can append to the build commands

You can run a extra command before building. To do so go to Project properties->C/C++build->settings->build steps

I am not a long time sloeber user, but have used the underlying program Eclipse for Java, PHP and C++ programming. If I were interested in doing what you want to do, I would first look into make files for C++ to see if it can even be done. If you can do the import with a make file, there should be a way to alter the build commands to include the file you want. The trick may be to not just import it, but to be able to access the data once you have the program compiled.

Just some thoughts that may be way out in space.

Hey guys, first of all, great plugin! Far more comfortable than the Arduino IDE.

But one question: Is there a way to upload the binaries created from sloeber without eclipse via commandline with the esptool.exe? Can the command be displayed which is launched by sloeber after compilation? The console output in eclipse seems to be incomplete.

edit: Additional info: I want to flash an ESP32 (WEMOS Lolin32).

Hello, is it possible to create project folders ?, for example, a folder "library tests", another "hardware tests" another "prototypes", etc., and within these put the projects. I have reached the point where I have about 30 projects and maintaining order is complicated, so creating sub-folders would be very useful. if this is already implemented, how is it done ?, I have tried the menus that I had available, the one to create folders only makes it inside the folder of a project therefore it does not work.

I also have to mention that I have found a problem, the version 2.5.0 of the ESP8266 core has so many configurations that some do not reach to be visible in the project configuration, for which I can not select the ones that are hidden, leaving the core unused. Also note that there is a large empty space at the beginning of the list of properties. My operating system is Windows 8, also provide Windows 7 and the same thing happens. My version of Sloeber is 4.3.1 in both tests.

by the way, excellent plugin, since I met him I have not used Arduino IDE ...

Hello!

It's possible to use Sloeber to program an AVR MCU without Arduino.h (not including it/compiling it)?

Thanks!