ESP_HTTPS_OTA failing on large bin files
Posted: Wed Jun 19, 2019 6:06 pm
Okay, so I have an interesting issue here.
I'm running on Mac OSX 10.14.5 with the ESP32_DevKitC.
I'm just using the ota_example at this point. I've tried and succeeded in flashing the hello_world.bin from the idf examples, but when I try a .bin of the project I'm working on (~1.2MB) the process will start flashing and I'll see successful HTTP transfers, but eventually fail with the following output:
I piped all debug output into a .log file, which I've attached, as its quite long.
Attempts to fix/workaround:
I'm running on Mac OSX 10.14.5 with the ESP32_DevKitC.
I'm just using the ota_example at this point. I've tried and succeeded in flashing the hello_world.bin from the idf examples, but when I try a .bin of the project I'm working on (~1.2MB) the process will start flashing and I'll see successful HTTP transfers, but eventually fail with the following output:
Code: Select all
E (101207) esp_image: invalid segment length 0x456d3133
E (101207) esp_https_ota: Error: esp_ota_write failed! err=0x0
E (101207) simple_ota_example: Firmware upgrade failed
Attempts to fix/workaround:
- Re-built app, after manually checking it flashes normally
- Imaged .bin file onto device using otatool.py successfully
- switched from openssl-based dummy server to python-based server