-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Add option to boards to remove the spiffs filesystem and increase the code space #862
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
Comments
I did this and it is working: generic.menu.FlashSize.512K0=512K (0K SPIFFS) |
It may look like it works, but both options use the same linker script ( |
Added in 81566a9 |
Also I want this ! Thx Sent from my iPhone
|
You could go further: the SPIFFS library is pretty big in terms of code space. |
@sven337 that would be a nice feature. Perhaps can be done by adding |
Actually this doesn't seem to be necessary, because linker does a good job at removing unused code. When I build an empty sketch for Generic (64k SPIFFS), binary size is 198636 bytes. When I add some FS functions, like this: #include <FS.h>
void setup() {SPIFFS.begin();}
void loop() {} Sketch size goes up to 229496 bytes. Running |
This doesn't match my findings, on the contrary I had spiffs functions show up in the binary even without using any spiffs functions in the program. I'll check and get back to you. |
Ok perfect . Thanks
|
An empty sketch like you used does indeed not pull any spiffs functions, but one that includes ESP8266WebServer.h does. Interestingly, removing cores/esp8266/spiffs_api.cpp doesn't make the build fail, it simply removes this extra code that is useless when no spiffs is in use. |
Thanks, i think i have fixed that in 9e930e5. Code size is down from 250k to 228k for HelloServer sample. |
Hello, would it be possible to add to the boards.txt also:
generic.menu.FlashSize.512K=512K (0K SPIFFS)
The text was updated successfully, but these errors were encountered: