-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Platformio and littlefs #16
Comments
Hi For Arduino I already did my best to recognize IDF at compile time and the last repo code works on any. Note, I will not maintain too much this detached library as it is already part of next Arduino core major release (2.xx) based on IDF 4.2. Then everything is up to PIO people. Also, you can locally copy the last source to your PIO project /lib folder and use it as you wish. It should work. |
I think that the code you referenced does exactly what I need. Will investigate and report back. |
Why not using the git commit you want with PlatformIO? |
I don't like that, too brittle (especially with CI/CD based building). Given the comments by @lorol I've stopped using LittleFS on esp32 for now, reverting to SPIFFS. As soon as PlatformIO use IDF 4.2 and the corresponding Arduino as their standard install it'll all work. |
Does it take the latest code this way? (w/ #git commit in URL)?
@jackjansen and @Jason2866 I really don't know how platformio library manager works, neither I recall submitting something myself there. |
Release 1.0.4 is commit 9b67677 |
Btw upcoming Arduino ESP 1.0.5 release is based on IDF3.3. |
It will be earlier than you think. ESP want to have esp32s2 Arduino support, so If you look at repository, both are updating together: |
We will see 😀 Using new releases is now easy with Platformio. No more waiting for Platformio release. With this commit the Espressif release can be used directly from Platformio |
Closing ... |
At the moment it is rather nasty to install the correct version of Arduino and littlefs when using platformio.
The core issue is #14: littlefs by default is compatible with a newer version of IDF than platformio installs for Arduino, therefore littlefs 1.0.5 does not compile.
The work-around of manually editing the littlefs source does not work in case of using platformio to build with a CI/CD (there's no-one there to do the manual editing).
At the moment my workaround is to use
but in effect this uses 1.0, because intermediate versions (like 1.0.4) are not available in the platformio library manager.
Life would be a lot simpler if littlefs set this
CONFIG_LITTLEFS_FOR_IDF_3_2
define dynamically (at compile time), by triggering on some IDF define for the IDF version currently being built for. https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/system.html#idf-version-h suggests this is possible (but I've never tried it myself).The text was updated successfully, but these errors were encountered: