Create a custom partition scheme

Hi, I've never created a custom partition scheme before, but now I need it due to space requirements for the application, I would appreciate it if someone could tell me how to create a partition scheme for an ESP32 Dev Module that has 4MB of memory. What I want is to allocate 3.6MB for the program, not OTA, and 150KB for SPIFFS.

I would appreciate it in advance if someone could help me solve this since I was unable to do so, thank you very much.

@13Avallejo82 if you have chosen your board as ESP32 Dev Module in the IDE then under the Tools menu scroll down to Partition Scheme: and you will be presented with several different partition options.

If none are suitable then from that list you can select 'Custom' - the last option. You then need to create a .csv file:

https://docs.espressif.com/projects/arduino-esp32/en/latest/tutorials/partition_table.html

I have never used this option, but might be worth a try.

Looks like you are going on for needing an 8mb version of the WROOM or the perhaps the WROVER!

This discussion may be worth a read:

`Arduino 2.1.1, Custom Partitions with ESP32 Core

I just ran across that the other day, here is a video about it. https://youtu.be/EuHxodrye6E?si=-IDsqmBtsZBZP3SL

1 Like

If you look into the boards.txt for the core that you use, (it should be somewhere in the core main folder) You can see how the partition scheme is defined as a menu and what those menu settings mean for some of the variables passed to the compiler / upload tool. My advice is to create a copy of the board spec you intent to use and modify that to suit your needs. Goes almost without saying that a core update overwrites your work.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.