Skip to content
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

support littlefs for upcoming esp8266 arduino core release #173

Closed
liebman opened this issue Sep 12, 2019 · 12 comments
Closed

support littlefs for upcoming esp8266 arduino core release #173

liebman opened this issue Sep 12, 2019 · 12 comments
Labels

Comments

@liebman
Copy link

liebman commented Sep 12, 2019

The next release of Arduino core for esp8266 will have support for more than one filesystem type. This should be supported.

@DaleMitchell
Copy link

Bump?

@pfeerick
Copy link

pfeerick commented Jan 8, 2020

Further this thread, StridingDragon has come up with a way to 'trick' PlatformIO into creating/uploading a LittleFS formatted file system for the ESP32 using an extra_script, so hopefully that makes this easier to implement formally, now that it has been live since 2.6.0 of the ESP8266 core.

https://community.platformio.org/t/how-to-define-littlefs-partition-build-image-and-flash-it-on-esp32/11333/3

@CODeRUS
Copy link

CODeRUS commented May 12, 2020

SPIFFS is now officially deprecated:
esp8266/Arduino#7263

@andig
Copy link

andig commented May 26, 2020

Joining the party. Not sure even how to declare the LittleFS dependency (not mentioned in https://arduino-esp8266.readthedocs.io/en/latest/filesystem.html#spiffs-and-littlefs). Should be the same for ESP32?

valeros added a commit that referenced this issue May 26, 2020
SPIFFS has been deprecated in the Arduino core v2.7.1
@valeros
Copy link
Member

valeros commented Jul 9, 2020

Added in v2.6.0

@valeros valeros closed this as completed Jul 9, 2020
@jbasiago
Copy link

What was the fix here? When I look at configuring options on my project, I do not see the option board_build.filesystem even though I've loaded version 2.6.0 of the Expressif 8266 platform. Does this fix eliminate the need for any additional outside scripts of do I still have to fool around with python to build the .bin file for the filesystem. As far as I can tell, this fix has done nothing for me. I'm using PlatformIO on CLion. Thanks for any help.

@CODeRUS
Copy link

CODeRUS commented Jul 12, 2020

@jbasiago
Copy link

The issue I was having was I had not noticed the Uploadfs target in the PlatformIO build configurations in Clion. Small details get you every time. Once I selected this target, it all worked as described. Thanks for the help.

@45gfg9
Copy link

45gfg9 commented Jul 20, 2020

Oh, so I guess I ran into the same situation...
I am using PIO on VSCode. As I go with example code which uses SPIFFS, compiler gives out deprecation warnings, so I switched to LittleFS and found out SPIFFS image does not work with LittleFS.
Then I found this: https://docs.platformio.org/en/latest/platforms/espressif8266.html#selecting-appropriate-filesystem and added board_build.filesystem = littlefs to platformio.ini. But next time when I select Upload File System image it still does SPIFFS image.
I don't know where went wrong. Is it the problem with me or PIO? If the VSCode portion of PIO doesn't support switching to LittleFS image automatically, then is there a script or something I can use?
Thanks a million.

@jbasiago
Copy link

I don't know about VSCode, but in CLion, when you run the UploadFS task with board_build.filesystem = littlefs , platformIO generates a file littlefs.bin under .pio/build/"board"/ directory. Perhaps you need to delete the SPIFFS.bin file that might be there. Try cleaning and rebuilding. This works for me in CLion. Good luck.

@drzony
Copy link

drzony commented Jul 20, 2020

@45gfg9
Make sure that:

  1. board_build.filesystem = littlefs is in correct place (either under [env] or [env:myboard])
  2. Esp8226 platform is updated to the latest version (PIO Home->Libraries->Updates and PIO Home->Platforms->Updates)
  3. Make sure Arduino core is the latest (this should update with 2. unless you have some overrides such as framework = xxx),

@45gfg9
Copy link

45gfg9 commented Jul 21, 2020

Thanks!
I was using 2.5.3 version of framework. As I upgrade to 2.6.0 it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants