How to solve the out of memory error when compiling for ESP32. This will occur even when you’ve only used 1Mb of memory and you should have up to 4Mb! If you’ve seen other solutions and they didn’t work for you then try this – as I’ve had the same experience and have pieced this solution together from various sources. I’ve seen the ones where it says use the “partition scheme” menu but you find out that it’s missing! This video will explain what you need to do to get that menu and solve your memory problems. Watch the video and then use the text below to paste into the correct place (as shown on the video).
1 2 3 4 5 6 7 8 9 10 11 12 13 |
esp32doit-devkit-v1.menu.PartitionScheme.default=Default esp32doit-devkit-v1.menu.PartitionScheme.default.build.partitions=default esp32doit-devkit-v1.menu.PartitionScheme.minimal=Minimal (2MB FLASH) esp32doit-devkit-v1.menu.PartitionScheme.minimal.build.partitions=minimal esp32doit-devkit-v1.menu.PartitionScheme.no_ota=No OTA (Large APP) esp32doit-devkit-v1.menu.PartitionScheme.no_ota.build.partitions=no_ota esp32doit-devkit-v1.menu.PartitionScheme.no_ota.upload.maximum_size=2097152 esp32doit-devkit-v1.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (Large APPS with OTA) esp32doit-devkit-v1.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs esp32doit-devkit-v1.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080 esp32doit-devkit-v1.menu.PartitionScheme.fatflash=16M Fat esp32doit-devkit-v1.menu.PartitionScheme.fatflash.build.partitions=ffat |
Can you please help me partition my ESP01, i want to remove all the space allocated for OTA and use only FS and Sketch
Sorry for late reply, real life work has been very busy and I missed this comment. You should just be able to set the OTA partition to 0, although I haven’t tried or tested this.