fix and document template partition table

This commit is contained in:
devsaurus 2018-04-15 22:54:02 +02:00
parent 8d0a8a5763
commit 45be28cf60
2 changed files with 16 additions and 4 deletions

View File

@ -1,7 +1,7 @@
# Espressif ESP32 Partition Table
# Name, Type, SubType, Offset, Size
factory, app, factory, 0x10000, 1M
rfdata, data, rf, 0x110000, 256K
wifidata,data, wifi, 0x150000, 256K
nvs, data, nvs, 0x9000, 0x6000
phy_init, data, phy, 0xf000, 0x1000
factory, app, factory, 0x10000, 1M
# 0xC2 => NodeMCU, 0x0 => Spiffs
spiffs, 0xC2, 0x0, , 448K
spiffs, 0xC2, 0x0, , 960K

1 # Espressif ESP32 Partition Table
2 # Name, Type, SubType, Offset, Size
3 factory, app, factory, 0x10000, 1M nvs, data, nvs, 0x9000, 0x6000
4 rfdata, data, rf, 0x110000, 256K phy_init, data, phy, 0xf000, 0x1000
5 wifidata,data, wifi, 0x150000, 256K factory, app, factory, 0x10000, 1M
6 # 0xC2 => NodeMCU, 0x0 => Spiffs
7 spiffs, 0xC2, 0x0, , 448K spiffs, 0xC2, 0x0, , 960K

View File

@ -90,3 +90,15 @@ Serial flasher config --->
Flash SPI mode --->
Detect flash size when flashing bootloader --->
```
### Partition Table
It is not required to set a custom partition table. Per default the IDF will select `Single factory app, no OTA` and the firmware will create a partition for SPIFFS automatically which fills the remaining flash space.
There is a template partition table available in `components/platform/partitions-2MB.csv` locates the SPIFFS partition at a fixed location. The file can be used as a template for custom partition tables with menuconfig:
```
Partition Table --->
Partition Table (Custom partition table CSV)
(components/platform/partitions-2MB.csv) Custom partition CSV file
(0x10000) Factory app partition offset
```