-
-
Notifications
You must be signed in to change notification settings - Fork 795
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
Streamline SPIFFS upload #458
Comments
I understand the custom FS images somewhat. The issue is more about defaults. 3MB takes a lot of time and is somehow a default, bad user experience. Add a few more examples of command line invocation in the docs? |
How about to use smaller SPIFFS size? http://docs.platformio.org/en/latest/platforms/espressif.html#custom-flash-size |
Yes, but I don't like our current defaults:
I guess due to the design of esp12e we only have 1MB or 3MB options, but I'd be happy to be proven wrong. |
BTW, for some reason, 1MB option causes my file reading code to fail - it can't find the file? The only change was to specify this in `platformio.ini':
|
Ivan, I noticed that switching the FS image size requires one to run a Will test out the dev build by tomorrow and report. |
If you edit Looks, like this is another problem. I'll wait any news from you as for this issue. |
I reopen this issue until you test it. |
Thank you. I have tested the latest dev version of the platform. The defaults are now 1MB for a SPIFF, and FS image rebuild works correctly when going between sizes (tested cycling it up and down several times). |
@aperepel thanks for the report! |
Hi, I wonder if there is a usable way to optimize the uploadfs target. For esp12e it generates a 3MB file regardless of the data size (usually it's a small json config file and not much more, so mostly padded space).
E.g. guys at Smartjs.io have a good approach of exposing SPIFFS via a WebDAV and being able to add/remove files interactively. I'm not advocating adding this layer, but rather thinking of ways to create a smaller FS image if we know it's gonna be small. And save 5 minutes of waiting for upload to finish.
The text was updated successfully, but these errors were encountered: