Go Down

Topic: Installed Sloeber Arduino IDE - need some startup instructions (Read 1 time) previous topic - next topic

BosseB

I don't know if this is a proper place to put questions about the Eclipse Sloeber Arduino IDE, but I will try anyway...
I have just started using Arduino in order to make a special WiFi application using an ESP-07S module with ESP8266.
But I had great problems working with the Arduino IDE and when I asked about these I got a recommendation to use Eclipse instead, specifically the Sloeber Eclipse IDE plugin (installed from the "product" which says it includes Eclipse, Java and all else you need)...
So I downloaded the installer (64bit) to my Windows7 X64 PC and ran the installer, then started the program.
Now I have come as far as reaching the IDE and via the "File/Open Projects from file system" menu I navigated to the already started sketch directory ehere the ino file resided and it opens in the new IDE.
I can get edit windows for the files involved (which I could not in the Arduino IDE).
But, nothing happens if I use the Verify command in the toolbar (except for opening an empty messages box at the bottom of the right-hand pane. THere seems to be no compile or anything like that performed.
So I suspect I have not installed it properly.
What are the steps to take in the IDE before opening an existing project (sketch)?
Seems likely I have missed something important.
One observation:
When I first opened the IDE there was a window saying it was installing stuff and then suddenly Windows Firewall popped up a message about it having blocked access to the Internet from this program:
C:\Programs\sloeber\sloeber-ide.exe
It took a little while before I realized I had to click a button to allow access, but at that time the "installation window" had disappeared. Maybe it could not complete and my installation is now incomplete or something?
How can I manually repeat whatever was going on at first start, if that is what it takes?

And is there some working tutorial on how to actually go from the downloaded installer to a position where one can start working on an existing ESP8266 based sketch without problems?
I have found this: http://eclipse.baeyens.it/getting-started.shtml
but it is very strangely done and I cannot find a "guide for dummies", which I probably need.

BosseB

I attach a screenshot of my project properties page, what should I do here to make the IDE understand that it should be compiled with Arduino?
I have even entered a bogus call to a non-existing function in the ino file, but Verify does not result in anything anyway....

Juraj

your project is not a Sloeber project.

first install the esp8266 package in Window|Preferences|Arduino|Boards. version 2.4.1 is new.

then create a new project of type "Arduino sketch" and copy the source files into the new project



You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

BosseB

1) I had imported the esp8266 board but chose version 2.0.0
2) Even so the Arduino item in the project properties did not show up...
3) But now I have followed your advice in my other thread to create a new Arduino Sketch project and then it does activate the functionality I was looking for.

However, I realize I should switch to esp8266 version 2.41 and here I ran into problems following your instruction above...
When I change the "Platform folder" from 2.0.0 to 2.4.1 then the data that were filled in below disappeared and I cannot enable the Apply button unless I fill in all the boxes above. And I have no idea what all of them should be set to.
The box does not look like your screenshot at all, it has a lot of stuff to be filled in and I don't know all...
The board is set to "Generic ESP8266 Module"
Is there no library of boards one can download so I can just select the ESP-07 board and get all of the correct settings?
Here is my properties page (is there no way to upload an image to the forum rather than to an external website as I had to do now?):


Juraj

sorry my screenshot is for AVR.

with 2.4.1 you get the same options in Arduino IDE.

common options


some of the options are for the module or board you have and some options are your choice.

board/module dependent: crystal frequency, flash frequency, flash mode, flash size, led, reset

your choice: CPU frequency (power consumption and heat), debug, Erase flash, lwip, upload speed
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

BosseB

Thank you Juraj! Helpful as always! :)
I asked in my other thread (about viewing header files) if there is a way to add existing files to the project.
But apparently it annoyed someone so I will ask in this thread instead:
How can one add existing files to the project if they are already copied into the project folder but not recognized by the project itself. In other IDE's there is often a project level "Add Files" command/button which opens a browser where one can point to existing files and add them to the project list.
Is something like this available here? I have yet to find it....
The only thing I found was the top left button (file icon with a + in the upper right corner) where one could creae a new file but it overwrote the file I had copied in....

Juraj

I copy paste or drag files to tree in Eclipse. if you added them outside Eclipse, use Refresh in pop-up menu or F5 on tree node in Eclipse
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

BosseB

@Juraj
Thank you for pointing me to Sloeber IDE for Arduino! It has upped my productivity a lot! :)

Now after a couple of days worth of coding in a new project I created inside Sloeber IDE but moved code to from my old Arduino IDE sketch, I have a big chunk of code that verifies without errors or warnings.
So it needs to be stuffed into Subversion...

Do you know which files should be ignored in a typical project, but are located inside the project folder?
I have to adjust my ignore settings in svn before I import the project.
Files that get rewritten every time and intermediates etc should be ignored, but which are they?

Juraj

I use Git. I add to version control only my source files. The project configuration files are .project and .cproject. All other files are temporary.
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

BosseB

I imported my project to Svn using the "--depth files" argument in order only to get the source files and the configuration files you mentioned. Then I renamed the project dir as <projectname>.bak and checked out from svn into a folder by the same name as before.
When I now started the Sloeber IDE it did not open the project as I expected, instead it showed messages as "out of sync something" and "please press F5 to refresh".
After I had done so a number of times my files display as before, except now they are showing loads of identifier not found errors...
As an example all of these includes are "unresolved reference":
Code: [Select]
#include "Arduino.h"
#include <ESP8266WiFi.h>
#include <FS.h>
#include <EEPROM.h>

There must have been some important file(s) I should have also added to svn...
And in the project explorer it says to the right of the project node "no Board:no port"
Where is this information stored? It should have been included with the project in svn...


BosseB

After having taversed the project properties page and set the values according to memory I have gotten rid of the errors and it builds.
But the resulting bin file is very different from the one created by the original, so this indicates that one really would need to version also the projects settings regarding the stuff set on the properties page.
Where is this stored?
In the .settings directory maybe?


Juraj

You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

BosseB

Progress update:
I moved away the non-versioned .settings directory from the checked out project and copied in the dierctory from the original project with the IDE closed. Then when I started the IDE again it had changed the board settings to a different version and it all seems to work.
So the takeaway is that this probably needs to be in the version control to make sure that the project as checked out will build the same for all developers.
I also noted that there probably should be a readme file created outlining for instance how to set up the development system library-wise before loading the project.
Menu: "Window/Preferences/Arduino/Platforms and Boards", expand esp8266/esp8266 and check all of the versions available. Then Apply and wait until the IDE has finished. This can take a long time and there is nearly no feedback except for a message that it us busy when one tries to do something else...
So I guess the versioning of projects is now also in a working state.
Thanks again!

BosseB

New question:
Is there an easy way to copy/clone a project inside the Sloeber IDE to one with a different name?

I have a working project and now I want to use that as a base for another project where I will remove the UART-bridge and instead add some other functions for logging data to a webserver. But I want to keep the base functionality with the Webupdater and also the configuration system for the way the WiFi shall be set up and stored in EEPROM.

So the easiest seems to be to grab a copy of this project and then change it. However, I am not sure how this would be done inside the Sloeber IDE. I think I cannot just copy the entire folder to a different name and then open the project in the IDE...


Juraj

You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

Go Up