-
Notifications
You must be signed in to change notification settings - Fork 7.6k
[Question] Core 2.0 increased in size so much my code won't fit with (default) OTA Partition? (was using 1.0.6) #5697
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
Facing the same problem, build with 1.0.4 before no problem with 2.0.0 I get this:
|
A solution could be to use OTA partitions with different sizes. The bigger for the running firmware and the smaller to store a gzip version of the uploaded new firmware. This firmware is extracted and flashed on the fly over the old firmware. |
Interesting approach, any sample code or working samples? |
But the main question is why changing core version give so much bigger code? |
Please check issue #5630 We are working to reduce binary size for next release 2.0.1. In the issue #5630 you will see more details about how to test a beta version. It is now better than 1.0.6 for several sketches. |
This is solved by espressif/esp32-arduino-lib-builder#47 |
) Summary Modifies WiFi lib to allow dynamic buffer allocation along with SPIRAM MALLOC enabled This gives more heap space to the users Related PR in Arduino Lib Builder: espressif/esp32-arduino-lib-builder#47 Impact WiFi will work the same as it was in version 1.0.6, restoring free heap. close #5630 close #5474 close #5699 close #5697
…pressif#5791) Summary Modifies WiFi lib to allow dynamic buffer allocation along with SPIRAM MALLOC enabled This gives more heap space to the users Related PR in Arduino Lib Builder: espressif/esp32-arduino-lib-builder#47 Impact WiFi will work the same as it was in version 1.0.6, restoring free heap. close espressif#5630 close espressif#5474 close espressif#5699 close espressif#5697
Hardware:
Description:
I ran my code with core 1.0.6 (94% size use) with default partition (as im using OTA HTTPUpdates).
So I went and updated core to 2.0 and with its increase in size I exceeded a bit the max. partition size.
I can upload my code of course if I change partition size to Huge APP (No OTA) but then I wouldn't be able to use HTTPUpdate( https://github.com/espressif/arduino-esp32/tree/master/libraries/HTTPUpdate)? Or is that only for Arduino IDE Updates and its different from HTTUpdates...
And If I try to use the other partition schemes my LittleFS code won't work
Debug Messages:
The text was updated successfully, but these errors were encountered: