Cant compile ESP Easy with Arduino

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
ohaldi
Normal user
Posts: 61
Joined: 31 Jan 2020, 09:10
Location: Switzerland

Cant compile ESP Easy with Arduino

#1 Post by ohaldi » 26 Nov 2021, 20:21

Hello,
I can't compile with the help of Arduino V1.8.16 the ESP version (mega-20211105).
I still have a problem with the Servo scripts.
I removed the library, made a new installation. But nothing works.
I get the following error messages:

In file included from D:\Electronique\Arduino\DEV ESPEasy-mega\ESPEasy\src\Commands\Servo.h:10,
from D:\Electronique\Arduino\DEV ESPEasy-mega\ESPEasy\src\Commands\InternalCommands.cpp:30:
D:\Electronique\Arduino\libraries\Servo\src/Servo.h:77:2: error: #error "This library only supports boards with an AVR, SAM, SAMD, NRF52 or STM32F4 processor."
77 | #error "This library only supports boards with an AVR, SAM, SAMD, NRF52 or STM32F4 processor."
| ^~~~~

I like to have a binary for the ESP8266
Regards
Otto

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Cant compile ESP Easy with Arduino

#2 Post by TD-er » 26 Nov 2021, 20:25

Are you using the libraries as they are in the lib directory of the repository?

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Cant compile ESP Easy with Arduino

#3 Post by TD-er » 26 Nov 2021, 20:27

Also please do yourself a really big favor and don't use Arduino IDE.
A number of defines -which are needed- are done in PlatformIO scripts. You can set them yourself in Arduino IDE, but it probably is quite a lot of work to keep it working and to find them all.

User avatar
ohaldi
Normal user
Posts: 61
Joined: 31 Jan 2020, 09:10
Location: Switzerland

Re: Cant compile ESP Easy with Arduino

#4 Post by ohaldi » 27 Nov 2021, 13:44

Hello I'm using the following link to update the library's:
http://arduino.esp8266.com/stable/packa ... index.json
If I have a problem I delete the lib and then reinstall it.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Cant compile ESP Easy with Arduino

#5 Post by TD-er » 27 Nov 2021, 15:14

The libs may have been modified to be used with ESPEasy, so you should use the files in the libs dir of the ESPEasy repository.
Not using the library manager of Arduino IDE.

User avatar
ohaldi
Normal user
Posts: 61
Joined: 31 Jan 2020, 09:10
Location: Switzerland

Re: Cant compile ESP Easy with Arduino

#6 Post by ohaldi » 29 Nov 2021, 18:05

Thank you for your help.
What I did:
1 Deleted my old Arduino and all directories with the Arduino name.
2 Installed the latest version of Arduino 1.8.16
3 From the last file ESPEasy_ESP82xx_mega-20211105.zip
- Copy the directory source\src in a local directory, in my case D:\Arduino\Dev_ESPEASY\ESPEasy\src including the subdirectory \src.
- Copy the sourcelib directory into the D:\Arduino\Dev_ESPEASY\ESPEasy\libraries directory.
(To summarize, in my D:\Arduino\Dev_ESPEASY\ESPEasy\ directory, I have two directories : 1. \libraries, 2. \src and all the source files of ESPEasy.
4 Change the access path to Sketchbook to : D:\Arduino\Dev_ESPEASY\ESPEasy
5 Add "http://arduino.esp8266.com/stable/packa ... index.json" the manager of additional ULRs cards
6 Add the NodeMCU 1.0 board (ESP-12E module)
7 Restart Arduino and open the ESPEasy.ino file
8 Launch the compilation with Sucess.
I only have a warning message : WARNING : library LiquidCrystal_I2C claims to run on avr architecture(s) and may be incompatible with your current board which runs on esp8266 architecture(s).
If someone reads this message maybe it will help.
Just for infomation: I tried to use Platform IO, but without success. For my small project, I find this software too complicated.
Regards
Otto

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Cant compile ESP Easy with Arduino

#7 Post by TD-er » 29 Nov 2021, 20:00

What SDK version did you select?
esp8266/Arduino 3.0.x is not yet (completely) supported.
A pull request is pending, but not yet merged.
So better use the latest 2.7.x

User avatar
ohaldi
Normal user
Posts: 61
Joined: 31 Jan 2020, 09:10
Location: Switzerland

Re: Cant compile ESP Easy with Arduino

#8 Post by ohaldi » 01 Dec 2021, 19:23

As I said, I used the following file: ESPEasy_ESP82xx_mega-20211105.zip
how can I check the SDK Version ?
or what do you mean with SDK ?

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Cant compile ESP Easy with Arduino

#9 Post by TD-er » 01 Dec 2021, 20:11

When compiling with PlatformIO, the platformio.ini files (and the other .ini files included there) define the used esp8266/Arduino or esp32/Arduino library version.
For Arduino IDE you have to select this yourself in the Arduino configuration.
That's what I mean with the SDK version.

The default (in Arduino IDE) is esp8266/Arduino version 3.0.2 if I'm not mistaken.
But this version is not yet fully supported in ESPEasy. So you have to select version 2.7.4

User avatar
ohaldi
Normal user
Posts: 61
Joined: 31 Jan 2020, 09:10
Location: Switzerland

Re: Cant compile ESP Easy with Arduino

#10 Post by ohaldi » 01 Dec 2021, 23:28

OK and many thanks for your help

Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests