# Custom partition layout for the Waveshare ESP32-S3-ePaper-13.3E6 (32 MB OPI flash).
#
# default_16MB.csv ships ~3.5 MB to SPIFFS — too small once we add a
# panel-native /img.bin (960 KB) on top of the three setup-screen .bin
# files (also 960 KB each). LittleFS panics in lfs_ctz_traverse / lfs.c
# with an IntegerDivideByZero when it runs out of blocks mid-write.
#
# This layout: 4 MB app0 + 4 MB app1 (keep OTA option open) + 24 MB
# LittleFS + 64 KB coredump on 32 MB flash. Plenty of headroom.
#
# Name,     Type, SubType,  Offset,   Size,      Flags
nvs,        data, nvs,      0x9000,   0x5000,
otadata,    data, ota,      0xe000,   0x2000,
app0,       app,  ota_0,    0x10000,  0x400000,
app1,       app,  ota_1,    0x410000, 0x400000,
spiffs,     data, spiffs,   0x810000, 0x17E0000,
coredump,   data, coredump, 0x1FF0000,0x10000,
