esp:esp32:partitions
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| esp:esp32:partitions [2025/02/08 09:14] – created - external edit 127.0.0.1 | esp:esp32:partitions [2026/09/12 10:28] (current) – oscar | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | # Partitions |
| - | ===== Partition table ===== | + | ## Partition table |
| - | A file called **partitions.csv** is located in the root of the esp-idf project folder. | + | A file called **partitions.csv** is located in the root of the esp-idf project folder. With content similar to: |
| - | With content similar to: | + | ``` |
| - | < | + | |
| # Name, | # Name, | ||
| nvs, data, nvs, | nvs, data, nvs, | ||
| Line 12: | Line 11: | ||
| config, | config, | ||
| logging, | logging, | ||
| - | </ | + | ``` |
| - | ===== Updating a partition table ===== | + | ## Updating a partition table |
| + | ### Switch to custom partitions | ||
| + | You must tell ESP-IDF to stop using the default layout and look at your new CSV file instead. In **idf.py menuconfig** navigate to Partition Table.Change Partition Table Type from " | ||
| + | ### Build partition table | ||
| Edit the contents of the partitions.csv file and run the following commands: | Edit the contents of the partitions.csv file and run the following commands: | ||
| - | < | + | ``` |
| idf.py menuconfig | idf.py menuconfig | ||
| idf.py partition-table | idf.py partition-table | ||
| idf.py build | idf.py build | ||
| - | idf.py -p / | + | ``` |
| + | ### Write Partition Table to ESP32 | ||
| + | Flash the partition table by: | ||
| + | ``` | ||
| idf.py -p / | idf.py -p / | ||
| - | </ | + | ``` |
| - | After that do a full flash or flash the individual partitions to their new locations | + | Or you can do a full flash which will also write the table. |
| - | < | + | ``` |
| idf.py -p / | idf.py -p / | ||
| - | </ | + | ``` |
| - | + | ### Read Partition Table from ESP32 | |
| - | ===== Erase a partition | + | Read the Partition Table Flashed on a Connected ESP32If you want to pull the partition |
| - | | + | ``` |
| - | + | idf.py -p [PORT] partition-table-dump | |
| - | ===== Full Flash ===== | + | ``` |
| - | idf.py -p / | + | It invokes |
| - | python -m esptool --chip esp32c3 -p / | + | ## Erase a partition area |
| - | + | ``` | |
| - | ===== Write Application to partition | + | esptool |
| - | python -m esptool --chip esp32c3 -p / | + | ``` |
| + | ## Full Flash | ||
| + | ``` | ||
| + | idf.py -p / | ||
| + | python -m esptool --chip esp32c3 -p / | ||
| + | ``` | ||
| + | ### Write Application to partition | ||
| + | ``` | ||
| + | python -m esptool --chip esp32c3 -p / | ||
| + | ``` | ||
| + | ### Read from partition | ||
| + | ``` | ||
| + | esptool --port / | ||
| + | ``` | ||
| + | ### Write Config to partition | ||
| + | ``` | ||
| + | esptool --port / | ||
| + | ``` | ||
| + | ### Read CONFIG from partition | ||
| + | ``` | ||
| + | esptool --port / | ||
| + | ``` | ||
| - | ===== Read/Write config partition ===== | ||
| - | === Write Config to partition === | ||
| - | esptool.py --port / | ||
| - | === Read CONFIG from partition === | ||
| - | esptool.py --port / | ||
esp/esp32/partitions.1739006050.txt.gz · Last modified: by 127.0.0.1
