Skip to content

FS_end and FS_start compile error - solved, but is it correct? #34

@drfritz142

Description

@drfritz142

Hi.

I am on an ESP8266, compiling in VSCode with Platform.IO.
platform = espressif8266 @ 3.2.0
framework = arduino
board_build.filesystem = littlefs

I don't remember why but I had to give up the library AsyncElegantOTA (https://github.com/ayushsharma82/AsyncElegantOTA) which was working for me. After replacing it with the ElegantOTA library (https://github.com/ayushsharma82/ElegantOTA) I got trouble compiling it (FS_end and FS_start compile error). I followed a hint in the web which stated to replace FS_end and FS_start by _FS_end and _FS_start. I got rid of the compile error, but the uploading of a filesystem (LittleFS) didn't work.

So I moved to your library (ESPAsyncHTTPUpdateServer) - which I like a lot better actually than the previous two, but still I got the same problems: compile error, changed to _FS_end and _FS_start, but then cannot upload filesystem. Firmware worked, but filesystem didn't.

I then checked the first, depcreated and archived library AsyncElegantOTA I had used initially, where filesystem uploads worked and found that the variables were named &_FS_end and &_FS_start. So I changed them in your library to be just that and now it works.

On line 175 it now reads:

size_t fsSize = ((size_t) &_FS_end - (size_t) &_FS_start);

I don't know why, and wonder whether this is a stable fix, but wanted to let you know about it. I would appreciate your comments on this. And yes, I'll leave a star for you.

Best,
Andreas

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions