Shrink LittleFS partition, grow OTA app slots

Web assets only use ~489 KB but the default 1.375 MB spiffs
partition wasted the rest. Rebalance to 768 KB spiffs / 1.56 MB
per app slot (was 1.25 MB), giving the tight esp32 build real
headroom (99.6% -> 79.7% flash used) while preserving dual-slot
OTA. Wire the custom layout into both the local PlatformIO build
(new partitions.csv + platformio.ini) and the Arduino-CLI CI/release
pipeline (PartitionScheme=custom, matching littlefs image size and
merge_bin offset).
This commit is contained in:
Frédéric Metrich 2026-09-05 23:15:29 +02:00
parent db22c16bb3
commit 182d859870
4 changed files with 83 additions and 16 deletions

7
partitions.csv Normal file
View file

@ -0,0 +1,7 @@
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xe000, 0x2000,
app0, app, ota_0, 0x10000, 0x190000,
app1, app, ota_1, 0x1A0000,0x190000,
spiffs, data, spiffs, 0x330000,0xC0000,
coredump, data, coredump,0x3F0000,0x10000,
1 # Name Type SubType Offset Size Flags
2 nvs data nvs 0x9000 0x5000
3 otadata data ota 0xe000 0x2000
4 app0 app ota_0 0x10000 0x190000
5 app1 app ota_1 0x1A0000 0x190000
6 spiffs data spiffs 0x330000 0xC0000
7 coredump data coredump 0x3F0000 0x10000