Skip to content

Please test with LITTLEFS for esp32 #197

Open
@lorol

Description

@lorol

Hi @rjwats

I tested with minor tweak of platformio.ini and ESPFS.h, at least it builds fine with my "hacky" esp32 library here: https://github.com/lorol/LITTLEFS
See the PlatformIO note at the the bottom of README.
You can add also to build_flags -D CONFIG_LITTLEFS_FOR_IDF_3_2 until the core repositories get moved to newer IDF

Update:
It seems to be actually working. Few "errors" on serial console, but they are due to:
https://github.com/espressif/arduino-esp32/blob/4638628873a061c36faffebe4d146d13f960076d/libraries/FS/src/vfs_api.cpp#L57
I don't know what to do with them :) SPIFFS is different than LittleFS and we have to live with that ...
... see also here: espressif/arduino-esp32#4138

Update2:
I forgot to mention I needed to add a /config folder (and a dummy holder.txt file in it) to project data directory before flash the FS image. Otherwise it will not be able to create and save the config jsons. I guess again SPIFFS creates folder/file at once (as file) while LittleFS not, unless we make-up backwards as on ESP8266 is done.
It is maybe the best to have all 7 x .json files created as empty files under /config folder. Probably other tweaks ...

image

BTW the error [E][WiFiGeneric.cpp:117] wifiLowLevelInit(): esp_wifi_init 4353 is present also with standard SPIFFS setting

Appreciate your validation.

Thank you,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions