Comments (10)
Using the ElegantOTA demo, unmodified. Version 3.1.0 is installed. Receive the following error: ...\Documents\Arduino\libraries\ElegantOTA\src\ElegantOTA.cpp:144:71: error: 'FS_end' was not declared in this scope uint32_t update_size = mode == OTA_MODE_FILESYSTEM ? ((size_t)FS_end - (size_t)FS_start) : ((ESP.getFreeSketchSpace() - 0x1000) & 0xFFFFF000);
What am I missing?
I've found solution
You should go to the ElegantOTA.cpp file and adjust FS_end and FS_star names to _FS_end and _FS_start (just add _ at the beginning)
from elegantota.
Thanks for a speedy reply. I made the changes and tested. It is now working.
from elegantota.
@JMWilton What microcontroller and board version (in Arduino IDE) are you using? This will help me diagnose a fix for the library.
from elegantota.
@JMWilton What microcontroller and board version (in Arduino IDE) are you using? This will help me diagnose a fix for the library.
I had the same issue on esp8266 with Platform IO
The problem is in ElegantOTA.cpp:144:71
Just need to fix FS_end and FS_start variable names, _ at the beginning is missed
from elegantota.
@mzaprudin , Yes I get it, but FS_end
and FS_start
variables are different for some versions of ESP8266 core. The library was compiled by CI successfully using ESP8266 platform.
I want to know if the variables were changed in latest ESP8266 platform/core or it's a user error where user is using a older version of ESP8266 platform/core.
from elegantota.
@mzaprudin , Yes I get it, but
FS_end
andFS_start
variables are different for some versions of ESP8266 core. The library was compiled by CI successfully using ESP8266 platform.I want to know if the variables were changed in latest ESP8266 platform/core or it's a user error where user is using a older version of ESP8266 platform/core.
I use Platform 6.1.11 version
I found this core version information
.platformio\packages\framework-arduinoespressif8266\cores\esp8266\core_version.h
#define ARDUINO_ESP8266_GIT_VER 0xcf6ff4c4
#define ARDUINO_ESP8266_GIT_DESC 3.0.2
#define ARDUINO_ESP8266_VERSION 3.0.2
#define ARDUINO_ESP8266_MAJOR 3
#define ARDUINO_ESP8266_MINOR 0
#define ARDUINO_ESP8266_REVISION 2
#define ARDUINO_ESP8266_RELEASE "3.0.2"
#define ARDUINO_ESP8266_RELEASE_3_0_2
from elegantota.
I am using NodeMCU 0.9 (ESP-12 Module).
Arduino IDE 2.1.1
ESP boards 2.7.4
from elegantota.
I found this core version information .platformio\packages\framework-arduinoespressif8266\cores\esp8266\core_version.h
#define ARDUINO_ESP8266_GIT_VER 0xcf6ff4c4 #define ARDUINO_ESP8266_GIT_DESC 3.0.2 #define ARDUINO_ESP8266_VERSION 3.0.2 #define ARDUINO_ESP8266_MAJOR 3 #define ARDUINO_ESP8266_MINOR 0 #define ARDUINO_ESP8266_REVISION 2 #define ARDUINO_ESP8266_RELEASE "3.0.2" #define ARDUINO_ESP8266_RELEASE_3_0_2
The latest Arduino core for ESP8266 is 3.1.2 and the error doesn't happen after updating to that version.
from elegantota.
For anyone facing this issue, As @mnvoronin mentioned - please update your ESP8266 / ESP32 platforms to latest release.
ElegantOTA is always compiled and tested automatically using CI script on latest (stable) release of these platforms.
from elegantota.
Thanks to Ayush Sharma. I finally got it to build. It would be great, for this an all projects, if the examples included the specific version levels being used. But that would put a lot of work on developers that could be better spent on other tasks. I was wondering if there was some way to include in the zip some portion of the build output to capture this information. The goal would be NOT make a lot of work for the developer but provide configuration information for the end user to help in resolving these kinds of problems. It is just a thought. Thanks again to Ayush for his hard work.
from elegantota.
Related Issues (20)
- adding a check for flash-organisation / flash-sizes HOT 2
- Async Demo will not compile HOT 18
- possible to use OTA via PlattformAIO? HOT 2
- OTA crash when trying to upload HOT 4
- ElegantOTA and WebThings (Arduino) + ESP32-S3 HOT 2
- Brakes at ElegantOTA.cpp -> Line 141 HOT 2
- Smartphone browser crash when selecting a path containing a data type. HOT 2
- Failed to write chunked data to free space HOT 2
- EspressifSystems version 3.0.1 arduino ide 1.8.19 HOT 4
- Did you remove the Coffee Crap? HOT 8
- Use of absolute paths causes failures with subpath-based reverse proxying HOT 4
- esp_int_wdt.h no such file directory HOT 1
- error after enable async mode HOT 11
- beginResponse_P - Braking Change in mathieucarbou / ESPAsyncWebServer for ESP32 in release 3.0.2 HOT 13
- Platformio - ElegantOTA AsyncTCP library multiple defines clash with all versions of AsyncMQTT HOT 5
- MakerFabs ESP32 S3 in bootloop HOT 16
- ElegantOTA PlatformIO error HOT 6
- Compilation error on ESP32-S3 HOT 3
- Webserver fails to connect afer one OTA upload HOT 2
- ElegantOTA in a ESP32 not compiling. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elegantota.