-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Core versions 3.0.0 and newer use 14% more flash memory after compiling for LOLIN ESP32-S2 Mini #10386
Comments
Yes, frameworks rarely get smaller as they accumulate more cruft. |
Thanks.. But the IDE says that all the libraries are updated. |
majority of the size difference comes from the extra cyphers that need to be supported for newer SSL and WiFi authentication. We are looking into ways to make that optional, but do not have a concrete plan or way to provide that yet. |
This is a similar issue for the ESP32C3 with (for example) the standard "examples/wifi/SimpleWiFiServer" sketch which gives: ESP_ARDUINO_VERSION v2.0.6 ESP_ARDUINO_VERSION v3.0.5 That's an increase of 236,694 bytes or about 34% of the original sketch size (and no SSL for this, just Wifi). |
WiFi is enough to increase the size, because it now supports more security models. WPA3, etc. We looked into providing an options with less security supported, but that ended up being not possible for a few reasons. |
Board
LOLIN S2 MINI
Device Description
Rotary Encoder, OLED display, External EEprom, Buttons..
Hardware Configuration
i2c - SCL on GPIO 35, SDA on GPIO 33
SPI - MOSI 11, MISO 9, and SCK 7
Rotary Encoder is connected to GPIO 2 and 4.
Version
v3.0.4
IDE Name
Arduino IDE 2.3.3
Operating System
Windows 10
Flash frequency
240MHz
PSRAM enabled
yes
Upload speed
115200
Description
I tried to compile some code I wrote a few months ago and it compiled , but using 14% more flash memory. The code should use 66% of flash and now it compiles at 80%. also, when I flash the code to my device, the Encoder only work in General Settings, once it starts running through the main loop, the rotary encoder stops working. If I downgrade the ESP core to version 2.0.17, everything works fine again and the code compiles at 66% flash memory usage.
The same happens when I tried some library example, like for example the WifiManager. With the newer versions of the ESP core, the example "OnDemandConfigPortal" uses 80% of flash memory, and it only uses 74% when compiled with version 2.0.17.
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: