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

zhoupeng
Posts: 35
Joined: Sun Sep 24, 2017 1:31 pm

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

Postby zhoupeng » Mon Dec 25, 2017 7:50 am

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

ESP_Sprite
Posts: 9772
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Mon Dec 25, 2017 9:12 am

Moved: news -> sdk

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

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

Postby ESP_Angus » Tue Dec 26, 2017 11:02 pm

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

zhoupeng
Posts: 35
Joined: Sun Sep 24, 2017 1:31 pm

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

Postby zhoupeng » Fri Jan 19, 2018 7:51 am

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

markwj
Posts: 90
Joined: Tue Mar 08, 2016 5:03 am

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

Postby markwj » Sat Jan 20, 2018 5:22 am

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.

amruta
Posts: 18
Joined: Mon Aug 21, 2017 10:03 am

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

Postby amruta » Wed Nov 11, 2020 11:15 am

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.
Attachments
sdkconfig.txt
(14.72 KiB) Downloaded 448 times
partitions.csv
(407 Bytes) Downloaded 491 times

Who is online

Users browsing this forum: Majestic-12 [Bot] and 89 guests