Page 1 of 1

Hash verification fails when I use ota feature, I need the bin file format。

Posted: Mon Dec 25, 2017 7:50 am
by zhoupeng

Code: Select all

D (12931) esp_image: Calculated hash: a4937099[0m
[0;31mE (12941) esp_image: Image hash failed - image is corrupt[0m
D (12941) esp_image: Expected hash: 2ddc33a7

Re: Hash verification fails when I use ota feature, I need the bin file format。

Posted: Mon Dec 25, 2017 9:12 am
by ESP_Sprite
Moved: news -> sdk

Re: Hash verification fails when I use ota feature, I need the bin file format。

Posted: Tue Dec 26, 2017 11:02 pm
by ESP_Angus
Hi zhoupeng,

We need more details to be able to help you with this issue.

What version of ESP-IDF are you using?

If you run "esptool.py --chip esp32 image_info my_ota.bin", does the output say that the hash is correct?

Have you verified the received image length is correct?

Have you checked all of the esp_ota_xxx functions return without errors?

Angus

Re: Hash verification fails when I use ota feature, I need the bin file format。

Posted: Fri Jan 19, 2018 7:51 am
by zhoupeng
ESP_Angus wrote:Hi zhoupeng,

We need more details to be able to help you with this issue.

What version of ESP-IDF are you using?

If you run "esptool.py --chip esp32 image_info my_ota.bin", does the output say that the hash is correct?

Have you verified the received image length is correct?

Have you checked all of the esp_ota_xxx functions return without errors?

Angus
thank you,I have solved this problem

Re: Hash verification fails when I use ota feature, I need the bin file format。

Posted: Sat Jan 20, 2018 5:22 am
by markwj
zhoupeng wrote:thank you,I have solved this problem
It would be helpful if you could explain the issue, and solution, to help others in the same situation.

Re: Hash verification fails when I use ota feature, I need the bin file format。

Posted: Wed Nov 11, 2020 11:15 am
by amruta
I have a similar problem. Getting following error.

Code: Select all

[0;31mE (298214) esp_image: Image hash failed - image is corrupt[0m
[0;31mE (298784) esp_image: Checksum failed. Calculated 0x10 read 0x18[0m
Additional details:
  • Apart from OTA, other two taks are running but they are suspended before starting OTA
  • BLE is running.
I am guessing following threads explain the issue The problem is .
  • There are many devices in the field but OTA is failing only on few devices
  • The suggestions mentioned above threads may fix the issue. But I can't do those changes for the devices in the field
esp-idf: v3.1
Attaching the custom partition format and sdkconfig used.