platformio / platformio-docs

PlatformIO Documentation
https://docs.platformio.org
Apache License 2.0
240 stars 326 forks source link

Arduino ESP32 core issue: esp_vfs.h with littlefs #177

Closed doobedoobedo closed 3 years ago

doobedoobedo commented 3 years ago

The littlefs_esp32 library (both versions 1 and 1.05) fails to build with the error: .pio/libdeps/esp32doit-devkit-v1/LittleFS_esp32/src/esp_littlefs.c:208:9: error: unknown field 'utime_p' specified in initializer

This is because the esp_vfs_t struct (~/.platformio/packages/framework-arduinoespressif32/tools/sdk/include/vfs/esp_vfs.h) is missing the definition. Taking the definition from https://github.com/espressif/esp-idf/blob/master/components/vfs/include/esp_vfs.h (lines 206-209 at the time of reporting) and inserting it at line 184 allows the library to build at least, I've not done any further investigation.

valeros commented 3 years ago

That library is not supposed to work with the current stable Arduino core v1.0.4 as it depends on he latest idf-release/v4.2 branch.