eeprom_rotate icon indicating copy to clipboard operation
eeprom_rotate copied to clipboard

_SPIFFS_end no longer defined on esp arduino

Open reaper7 opened this issue 6 years ago • 6 comments

It seems that _SPIFFS_end will not be defined in future versions of esp8266 arduino, and has been replaced with _FS_end (as well as other declarations): https://github.com/esp8266/Arduino/commit/a389a995fb12459819e33970ec80695f1eaecc58

In this situation, I can not compile any example from this lib and the espurna project :( error:

c:/programy/arduino/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: C:\TEMP\arduino_build_8160\libraries\eeprom_rotate\EEPROM_Rotate.cpp.o:(.text._ZN13EEPROM_Rotate8reservedEv+0x4): undefined reference to `_SPIFFS_end'

reaper7 avatar May 28 '19 09:05 reaper7

I don't get this compile error. Using [email protected]

proddy avatar May 28 '19 11:05 proddy

I wrote about esp8266 current git master

reaper7 avatar May 28 '19 11:05 reaper7

ah sorry, missed that. Looks like all the SPIFFs needs to be ported to LittleFS. I'm guessing because of stability and backward compatibility the espurna libraries will always stay back on n-1 version of espressif so we may have to do the updates ourselves in a new branch?

proddy avatar May 28 '19 12:05 proddy

new branch is a good idea, especially that espurna also needs patches in the utils.ino file

reaper7 avatar May 28 '19 12:05 reaper7

Just FYI, this can be aliased back. Not sure why Core PR removed old symbols.

For ESPurna specifically, .ld files (code/*.ld, per flash size) used by platformio need these:

PROVIDE ( _FS_start = _SPIFFS_start );
PROVIDE ( _FS_end = _SPIFFS_end );

If IDE / arduino-cli is used, .ld files in Core installation (tools/sdk/ld) need modification:

PROVIDE ( _SPIFFS_start = _FS_start );
PROVIDE ( _SPIFFS_end = _FS_end );

mcspr avatar May 28 '19 23:05 mcspr

I know how to temporarily fix it but we need permanent solution, especially when we often refresh git version... ...we can get lost in manually edited files :)

reaper7 avatar May 29 '19 09:05 reaper7