Closed Bromptonaut closed 11 months ago
Changing topic to "ElegantOTA fails in combination with platformio / huge_app.csv" after I found out that it seems to be the partition scheme which makes ElegantOTA fail to update the firmware.
This has already been reported here: https://github.com/ayushsharma82/ElegantOTA/issues/100
This is not a bug in ElegantOTA as such, but maybe a lack of documentations as already mentioned in https://github.com/ayushsharma82/ElegantOTA/issues/75. The partition table needs to contain two app partitions for ElegantOTA to work. Instead of huge_app.csv this partition table worked for my 1.4 MB app (on a device with 4 MB flash):
# Name Type SubType Offset Size Flags
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xe000, 0x2000,
app0, app, ota_0, 0x10000, 0x160000,
app1, app, ota_1, 0x180000, 0x170000,
spiffs, data, spiffs, 0x2F0000, 0x100000,
coredump, data, coredump, 0x3F0000, 0x10000,
ElegantOTO fails to update a firmware.bin with size 1.4 MB on my ESP32-WROVER-E (Lilygo T-SIM7600E). Updating the LittleFS filesystem or updating a smaller firmware.bin works fine. With the bigger file, I get the following message on the terminal:
I guess that the file size is the issue. I could upload a sanitized firmware.bin and littlefs.bin, but they won't run on a board without SD-Card and GSM module, so I am skipping this for now.