I recently downloaded the expressif ESP32 library and I'm trying to run the CameraWebServer example. Attempting to compile it results in the following error:
Sketch uses 2529577 bytes (192%) of program storage space. Maximum is 1310720 bytes.
Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it.
I can reduce this number (192%) to 120% by changing partition scheme from "Default" to "No OTA (Large APP)". Online I've seen people using a partition scheme called "Huge APP", which I believe would solve my problem, but I don't see that option in Tools. Only "Default", "Large App" and "Minimal SPIFFS" (which doesn't work either).
How can I get the "Huge APP" partition scheme option in Arduino IDE?
1 Answer 1
I was able to fix the issue by editing the boards.txt file and adding the following lines:
lolin32.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
lolin32.menu.PartitionScheme.huge_app.build.partitions=huge_app
lolin32.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
This will add a "Huge APP" partition scheme to WEMOS Lolin32.
-
1Exactly, this is what I described in my comment. Make sure you have a copy or backup of the altered boards.txt files as it will be overwritten when you update the ESP32 Board Manager.StarCat– StarCat2021年03月10日 11:53:49 +00:00Commented Mar 10, 2021 at 11:53
huge_app.upload.maximum_size=3145728
(or more, if there's space available) and its associated entries as a new partition scheme under the board entry for your ESP32Cam.