fbiego / ESP32_BLE_OTA_Arduino

OTA update on ESP32 via BLE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

E (58138) esp_image: Invalid segment length

bebjorn opened this issue · comments

Hi fbiego and thank you for this OTA example.

I'm using your example ESP32 code together with you Android app and are trying to implement this in my own code. It worked well with your example applications but when i changed it to use Ffat I can only upload and install one BIN (the first one i tried, that uses your SPIFFS code and only modified some pins to activate). Any other BIN I try larger or smaller then the original gets an error after upload. The segment length varies between the different files.

File compleate...
Trying to start update
Written : 4096 successfully
E (58138) esp_image: invalid segment length 0x7369
Error Occurred. Error #: 9
TX 0F 57 72 69 74 74 65 6E 20 3A 20 34 30 39 36 2F 34 30 39 36 20 5B 31 30 30 25 5D 20 0A 45 72 72 6F 72 20 23 3A 20 39
Removing update file
Rebooting to complete OTA update

I should say I only tried the the SPIFFS version with the original BIN and now I can't seam to format the ESP32 flash back to SPIFFS, at least the mounting fails.

I assume you do not experience this error, but do you have any tips for where to start looking?
Thanks

I must have broken the esp32 card / flash somehow. Using a new card your example works as does my own code. Sorry to have bother you.