From a0906763f2906c4817a199cec0e1ea3d47ae2fb6 Mon Sep 17 00:00:00 2001 From: Linar Yusupov Date: Tue, 21 Nov 2023 14:11:28 +0300 Subject: [PATCH 1/2] Espressif 16MB flash memory layout with 4MB app/ota partitions --- .../espressif/boards/lilygo_ttgo_t_twr_plus/sdkconfig | 2 +- ports/espressif/partitions-16MB-ota4MB.csv | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 ports/espressif/partitions-16MB-ota4MB.csv diff --git a/ports/espressif/boards/lilygo_ttgo_t_twr_plus/sdkconfig b/ports/espressif/boards/lilygo_ttgo_t_twr_plus/sdkconfig index 6e973a6c4..39ed36ccf 100644 --- a/ports/espressif/boards/lilygo_ttgo_t_twr_plus/sdkconfig +++ b/ports/espressif/boards/lilygo_ttgo_t_twr_plus/sdkconfig @@ -1,7 +1,7 @@ # Board Specific Config # Partition Table -CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions-16MB.csv" +CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions-16MB-ota4MB.csv" # Serial flasher config CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y diff --git a/ports/espressif/partitions-16MB-ota4MB.csv b/ports/espressif/partitions-16MB-ota4MB.csv new file mode 100644 index 000000000..5457fce4e --- /dev/null +++ b/ports/espressif/partitions-16MB-ota4MB.csv @@ -0,0 +1,10 @@ +# ESP-IDF Partition Table +# Name, Type, SubType, Offset, Size, Flags +# bootloader.bin,, 0x1000, 32K +# partition table,, 0x8000, 4K +nvs, data, nvs, 0x9000, 20K, +otadata, data, ota, 0xe000, 8K, +ota_0, app, ota_0, 0x10000, 4096K, +ota_1, app, ota_1, 0x410000, 4096K, +uf2, app, factory,0x810000, 256K, +ffat, data, fat, 0x850000, 7872K, \ No newline at end of file From f38abdb37949416914ff07482fa910775dc81819 Mon Sep 17 00:00:00 2001 From: Linar Yusupov Date: Tue, 21 Nov 2023 14:41:47 +0300 Subject: [PATCH 2/2] add EOF new line missing --- ports/espressif/partitions-16MB-ota4MB.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/espressif/partitions-16MB-ota4MB.csv b/ports/espressif/partitions-16MB-ota4MB.csv index 5457fce4e..c6ee53392 100644 --- a/ports/espressif/partitions-16MB-ota4MB.csv +++ b/ports/espressif/partitions-16MB-ota4MB.csv @@ -7,4 +7,4 @@ otadata, data, ota, 0xe000, 8K, ota_0, app, ota_0, 0x10000, 4096K, ota_1, app, ota_1, 0x410000, 4096K, uf2, app, factory,0x810000, 256K, -ffat, data, fat, 0x850000, 7872K, \ No newline at end of file +ffat, data, fat, 0x850000, 7872K,