atanisoft / Esp32OlcbIO

ESP32 OpenLCB IO Board
9 stars 5 forks source link

OTA: Firmware validation failure #2

Closed atanisoft closed 11 months ago

atanisoft commented 3 years ago
[Web] OTA Update starting (1249878 bytes, target:ota_1)...
16:00:29.473: free heap: 195.46kB (max block size: 111.12kB), mainBufferPool: 0.59kB, task count: 15
E (47831) esp_image: invalid segment length 0x41360000
ESP_ERROR_CHECK_WITHOUT_ABORT failed: esp_err_t 0x1503 (ESP_ERR_OTA_VALIDATE_FAILED) at 0x40086ddb
0x40086ddb: _esp_error_check_failed_without_abort at esp-idf/components/esp_common/src/esp_err.c:40

file: "../main/web_server.cpp" line 120
func: http::AbstractHttpResponse* process_ota(http::HttpRequest*, const string&, size_t, const uint8_t*, size_t, size_t, bool, bool*)
expression: esp_ota_end(otaHandle)
[Web] OTA end failed, aborting!
atanisoft commented 11 months ago

This appears to be a bug in ESP-IDF when using a partial rebuild vs full rebuild for firmware updates via OTA.