diff --git a/components/platform/partitions-2MB.csv b/components/platform/partitions-2MB.csv index 69e651a6..957f28b5 100644 --- a/components/platform/partitions-2MB.csv +++ b/components/platform/partitions-2MB.csv @@ -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 diff --git a/docs/en/build.md b/docs/en/build.md index 5269dce0..3294f9ce 100644 --- a/docs/en/build.md +++ b/docs/en/build.md @@ -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 +```