slviajero / tinybasic

A BASIC interpreter for Arduino, ESP, RP2040, STM32, Infineon XMC and POSIX with IoT and microcontroller features.
GNU General Public License v3.0
205 stars 32 forks source link

[request] use internal eeprom LittleFS filesystem for esp8266 #35

Closed atesin closed 8 months ago

atesin commented 1 year ago

i noticed currently littlefs is only supported for raspberry pi pico :( esp8266 has 2-4mb of flash that can be used for internal storage with spiffs or littlefs

https://arduino-esp8266.readthedocs.io/en/3.0.2/filesystem.html#spiffs-and-littlefs

slviajero commented 1 year ago

This is true. Reason for it is that BASIC doesn’t need the features of littleFS. As there are only short and simple filenames and no folders SPIFFS was the most simple and widespread option. On RP2040 littleFS is the only option. I used the C style wrapper as the whole implementation is not really good on RP2040.

Is there a particular reason, why you can’t use SPIFFS on ESP?

Am 17.11.2022 um 00:45 schrieb atesin @.***>:

i noticed currently littlefs is only supported for raspberry pi pico :( esp8266 has 2-4mb of flash that can be used for internal storage with spiffs or littlefs

https://arduino-esp8266.readthedocs.io/en/3.0.2/filesystem.html#spiffs-and-littlefs https://arduino-esp8266.readthedocs.io/en/3.0.2/filesystem.html#spiffs-and-littlefs — Reply to this email directly, view it on GitHub https://github.com/slviajero/tinybasic/issues/35, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSY56BXLTMWEIP3H5JJSCLWIVW2FANCNFSM6AAAAAASCZBNB4. You are receiving this because you are subscribed to this thread.

atesin commented 1 year ago

Is there a particular reason, why you can’t use SPIFFS on ESP?

https://github.com/littlefs-project/littlefs

because arduino-esp8266 recommends it over spiffs, because littlefs supports true subdirectories and spiffs don't (they are emulated including slashes in file names), littlefs is fault tolerant and spiffs is not, and because spiffs development is inactive and is gonna be DEPRECATED... both are open source but spiffs is old and littlefs is new, littlefs is also well documented, i won't surprise if manufacturers start to drop spiffs to switch to littlefs

https://arduino-esp8266.readthedocs.io/en/3.0.2/filesystem.html#spiffs-deprecation-warning https://github.com/pellepl/spiffs/releases (<-- check the date of latest release)

i think at least littlefs could be available as an option, for who like to complicate ourselves xD (really, esp82xx/32 are powerful enough to work with littlefs instead)

slviajero commented 1 year ago

Very true, but currently not a priority as BASIC really doesn’t need more than SPIFFS can offer. The deprecation notice is there for years now but they still maintain it in the ESP32 core, even in the newest ones. Will put that into the backlog for further development.

Am 18.11.2022 um 17:08 schrieb atesin @.***>:

Is there a particular reason, why you can’t use SPIFFS on ESP?

because littlefs support true subdirectories and spiffs don't (they are emulated including slashes in root file names), littlefs is fault tolerant and spiffs is not, because spiffs is old and littlefs is new, and because spiffs development is inactive and is gonna be DEPRECATED... both are open source, i won't surprise if manufacturers start to drop spiffs to switch to littlefs

https://arduino-esp8266.readthedocs.io/en/3.0.2/filesystem.html#spiffs-deprecation-warning https://arduino-esp8266.readthedocs.io/en/3.0.2/filesystem.html#spiffs-deprecation-warning — Reply to this email directly, view it on GitHub https://github.com/slviajero/tinybasic/issues/35#issuecomment-1320226668, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSY56CNGPBXBEAGFCA3OJ3WI6SWVANCNFSM6AAAAAASCZBNB4. You are receiving this because you commented.

slviajero commented 8 months ago

Taken as item into the project backlog. On hold until a contributor volunteers to implement it.