Page 1 of 1

Custom partition not following the csv file

Posted: Mon Jul 17, 2023 9:13 pm
by VormsThierry
Hello,
I have an esp32 with 8 mo.
I do a csv partition file like that:

# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x24000
otadata, data, ota, 0x2D000, 0x2000
app0, app, ota_0, 0x30000, 0x3A0000
app1, app, ota_1, 0x3D0000, 0x3A0000

As you can see ther is no core dump partition, no spiff, etc.
When I run the ini program for displaying partition, I see:

ESP32 Partition table:

| Type | Sub | Offset | Size | Label |
| ---- | --- | -------- | -------- | ---------------- |
| 01 | 02 | 0x009000 | 0x005000 | nvs |
| 01 | 00 | 0x00E000 | 0x002000 | otadata |
| 00 | 10 | 0x010000 | 0x140000 | app0 |
| 00 | 11 | 0x150000 | 0x140000 | app1 |
| 01 | 82 | 0x290000 | 0x160000 | spiffs |
| 01 | 03 | 0x3F0000 | 0x010000 | coredump |

So, even I select my custom partition, with the erase all flash enabled the partition table is not following my custom partition.
What I am missed ?
Many thanks for your help

Re: Custom partition not following the csv file

Posted: Mon Jul 17, 2023 9:29 pm
by lbernstone
To use a custom partition, you must name the file partitions.csv in your sketch folder.
https://docs.espressif.com/projects/ard ... table.html