Error when using PPPoS to OTA update
Posted: Sat Feb 22, 2020 9:55 am
I have a problem with OTA. I use sim module and PPPoS to update the software.If the file is downloaded, the download is successful, but when using the esp_ota_write function to download and write the file, I cannot download the file. tried using wifi, everything worked perfectly.
I have a problem with OTA. I use sim module and PPPoS to update the software.If the file is downloaded, the download is successful, but when using the esp_ota_write function to download and write the file, I cannot download the file. tried using wifi, everything worked perfectly.
err: esp_image: invalid segment length 0xffffffff
function OTA: PPPos: --------------------------------------------------------------------------------------------------------------------------------------
Output when download and write:
I (23967) [OTA]: Starting OTA example...
I (23977) [OTA]: Running partition type 0 subtype 0 (offset 0x00010000)
I (24547) [OTA]: http ok,content-length:519616
I (24547) [OTA]: Writing to partition subtype 16 at offset 0x110000
I (24647) [OTA]: New firmware version: 1.1
I (24647) [OTA]: Running firmware version: 1.2
I (26977) [OTA]: esp_ota_begin succeeded
I (46307) [OTA]: recv total 8116
I (46307) [OTA]: Connection closed,all data received
I (46307) [OTA]: Total Write binary data length : 8116
I (46307) esp_image: segment 0: paddr=0x00110020 vaddr=0x3f400020 size=0x199ec (104940) map
E (46357) esp_image: invalid segment length 0xffffffff
E (46357) [OTA]: esp_ota_end failed (ESP_ERR_OTA_VALIDATE_FAILED)!
--------------------------------------------------------------------------------------------------------------------------------------
Output when only download (comment esp_ota_write function )
I (20847) [OTA]: Starting OTA example...
I (20857) [OTA]: Running partition type 0 subtype 0 (offset 0x00010000)
I (21437) [OTA]: http ok,content-length:519616
I (21437) [OTA]: Writing to partition subtype 16 at offset 0x110000
I (21537) [OTA]: New firmware version: 1.1
I (21537) [OTA]: Running firmware version: 1.2
I (23857) [OTA]: esp_ota_begin succeeded
I (73017) [OTA]: recv total 519616
I (73017) [OTA]: Connection closed,all data received
I (73017) [OTA]: Total Write binary data length : 519616
function OTA: PPPos: --------------------------------------------------------------------------------------------------------------------------------------
Output when download and write:
I (23967) [OTA]: Starting OTA example...
I (23977) [OTA]: Running partition type 0 subtype 0 (offset 0x00010000)
I (24547) [OTA]: http ok,content-length:519616
I (24547) [OTA]: Writing to partition subtype 16 at offset 0x110000
I (24647) [OTA]: New firmware version: 1.1
I (24647) [OTA]: Running firmware version: 1.2
I (26977) [OTA]: esp_ota_begin succeeded
I (46307) [OTA]: recv total 8116
I (46307) [OTA]: Connection closed,all data received
I (46307) [OTA]: Total Write binary data length : 8116
I (46307) esp_image: segment 0: paddr=0x00110020 vaddr=0x3f400020 size=0x199ec (104940) map
E (46357) esp_image: invalid segment length 0xffffffff
E (46357) [OTA]: esp_ota_end failed (ESP_ERR_OTA_VALIDATE_FAILED)!
--------------------------------------------------------------------------------------------------------------------------------------
Output when only download (comment esp_ota_write function )
I (20847) [OTA]: Starting OTA example...
I (20857) [OTA]: Running partition type 0 subtype 0 (offset 0x00010000)
I (21437) [OTA]: http ok,content-length:519616
I (21437) [OTA]: Writing to partition subtype 16 at offset 0x110000
I (21537) [OTA]: New firmware version: 1.1
I (21537) [OTA]: Running firmware version: 1.2
I (23857) [OTA]: esp_ota_begin succeeded
I (73017) [OTA]: recv total 519616
I (73017) [OTA]: Connection closed,all data received
I (73017) [OTA]: Total Write binary data length : 519616
I have a problem with OTA. I use sim module and PPPoS to update the software.If the file is downloaded, the download is successful, but when using the esp_ota_write function to download and write the file, I cannot download the file. tried using wifi, everything worked perfectly.
err: esp_image: invalid segment length 0xffffffff
function OTA: PPPos: --------------------------------------------------------------------------------------------------------------------------------------
Output when download and write:
I (23967) [OTA]: Starting OTA example...
I (23977) [OTA]: Running partition type 0 subtype 0 (offset 0x00010000)
I (24547) [OTA]: http ok,content-length:519616
I (24547) [OTA]: Writing to partition subtype 16 at offset 0x110000
I (24647) [OTA]: New firmware version: 1.1
I (24647) [OTA]: Running firmware version: 1.2
I (26977) [OTA]: esp_ota_begin succeeded
I (46307) [OTA]: recv total 8116
I (46307) [OTA]: Connection closed,all data received
I (46307) [OTA]: Total Write binary data length : 8116
I (46307) esp_image: segment 0: paddr=0x00110020 vaddr=0x3f400020 size=0x199ec (104940) map
E (46357) esp_image: invalid segment length 0xffffffff
E (46357) [OTA]: esp_ota_end failed (ESP_ERR_OTA_VALIDATE_FAILED)!
--------------------------------------------------------------------------------------------------------------------------------------
Output when only download (comment esp_ota_write function )
I (20847) [OTA]: Starting OTA example...
I (20857) [OTA]: Running partition type 0 subtype 0 (offset 0x00010000)
I (21437) [OTA]: http ok,content-length:519616
I (21437) [OTA]: Writing to partition subtype 16 at offset 0x110000
I (21537) [OTA]: New firmware version: 1.1
I (21537) [OTA]: Running firmware version: 1.2
I (23857) [OTA]: esp_ota_begin succeeded
I (73017) [OTA]: recv total 519616
I (73017) [OTA]: Connection closed,all data received
I (73017) [OTA]: Total Write binary data length : 519616
function OTA: PPPos: --------------------------------------------------------------------------------------------------------------------------------------
Output when download and write:
I (23967) [OTA]: Starting OTA example...
I (23977) [OTA]: Running partition type 0 subtype 0 (offset 0x00010000)
I (24547) [OTA]: http ok,content-length:519616
I (24547) [OTA]: Writing to partition subtype 16 at offset 0x110000
I (24647) [OTA]: New firmware version: 1.1
I (24647) [OTA]: Running firmware version: 1.2
I (26977) [OTA]: esp_ota_begin succeeded
I (46307) [OTA]: recv total 8116
I (46307) [OTA]: Connection closed,all data received
I (46307) [OTA]: Total Write binary data length : 8116
I (46307) esp_image: segment 0: paddr=0x00110020 vaddr=0x3f400020 size=0x199ec (104940) map
E (46357) esp_image: invalid segment length 0xffffffff
E (46357) [OTA]: esp_ota_end failed (ESP_ERR_OTA_VALIDATE_FAILED)!
--------------------------------------------------------------------------------------------------------------------------------------
Output when only download (comment esp_ota_write function )
I (20847) [OTA]: Starting OTA example...
I (20857) [OTA]: Running partition type 0 subtype 0 (offset 0x00010000)
I (21437) [OTA]: http ok,content-length:519616
I (21437) [OTA]: Writing to partition subtype 16 at offset 0x110000
I (21537) [OTA]: New firmware version: 1.1
I (21537) [OTA]: Running firmware version: 1.2
I (23857) [OTA]: esp_ota_begin succeeded
I (73017) [OTA]: recv total 519616
I (73017) [OTA]: Connection closed,all data received
I (73017) [OTA]: Total Write binary data length : 519616