That's the largest app size you can get. You can use the unaligned space more efficiently for nvs (or have a second nvs).
Code: Select all
# Name, Type, SubType, Offset, Size, Flags
otadata, data, ota, 0x9000, 0x2000,
app0, app, ota_0, 0x10000, 0x1f0000,
app1, app, ota_1, 0x200000,0x1f0000,
nvs, data, nvs, 0x3f0000, 0x10000,
You don't necessarily need two OTA partitions. You can have one minimal factory partition that always boots to a loader program, and then you should be able to tell it to reboot into the ota.
Code: Select all
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xe000, 0x2000,
factory, app, factory, 0x10000, 0x100000
app0, app, ota_0, 0x110000, 0x2f0000,