From 166c1a7708d8db19ae8bd86e0611aec3fa08b1ab Mon Sep 17 00:00:00 2001 From: robert Date: Mon, 16 Nov 2026 12:06:35 +0200 Subject: [PATCH] update partitions --- tutorials/esp32/device-dashboard/Makefile | 4 ++-- tutorials/esp32/device-dashboard/partitions.csv | 4 ++-- tutorials/esp32/device-dashboard/sdkconfig.defaults | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tutorials/esp32/device-dashboard/Makefile b/tutorials/esp32/device-dashboard/Makefile index 10f01f36..582f1201 100644 --- a/tutorials/esp32/device-dashboard/Makefile +++ b/tutorials/esp32/device-dashboard/Makefile @@ -32,7 +32,7 @@ dashboard.hex: build esputil mkhex \ 0x8000 build/partition_table/partition-table.bin \ 0x1000 build/bootloader/bootloader.bin \ - 0x100000 build/mongoose-esp32-example.bin > $@ + 0x20000 build/mongoose-esp32-example.bin > $@ flash2: dashboard.hex esputil -p $(PORT) -b 921600 -fp 0x220 flash dashboard.hex @@ -41,7 +41,7 @@ flash2: dashboard.hex ESPTOOL ?= esptool.py flash3: - cd build && $(ESPTOOL) --chip esp32 -p $(PORT) -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x100000 mongoose-esp32-example.bin + cd build && $(ESPTOOL) --chip esp32 -p $(PORT) -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 4MB 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x20000 mongoose-esp32-example.bin clean: test -d build && $(DOCKER) rm -rf build sdkconfig || true diff --git a/tutorials/esp32/device-dashboard/partitions.csv b/tutorials/esp32/device-dashboard/partitions.csv index 2b052b04..e3858615 100644 --- a/tutorials/esp32/device-dashboard/partitions.csv +++ b/tutorials/esp32/device-dashboard/partitions.csv @@ -2,5 +2,5 @@ nvs, data, nvs, , 0x6000 otadata, data, ota, , 0x2000, phy_init, data, phy, , 0x1000, -ota_0, app, ota_0, , 948K, -ota_1, app, ota_1, , 948K, +ota_0, app, ota_0, , 1536K, +ota_1, app, ota_1, , 1536K, diff --git a/tutorials/esp32/device-dashboard/sdkconfig.defaults b/tutorials/esp32/device-dashboard/sdkconfig.defaults index a9d981ed..a2542543 100644 --- a/tutorials/esp32/device-dashboard/sdkconfig.defaults +++ b/tutorials/esp32/device-dashboard/sdkconfig.defaults @@ -1,3 +1,5 @@ +CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y +CONFIG_ESPTOOLPY_FLASHSIZE="4MB" CONFIG_PARTITION_TABLE_CUSTOM=y CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv" CONFIG_PARTITION_TABLE_FILENAME="partitions.csv"