You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
esptool.py v2.8
A fatal error occurred: Contents of segment at SHA256 digest offset 0xb0 are not all zero. Refusing to overwrite.
What is the expected behaviour?
Image is generated successfully and SHA digest is inserted
Do you have any other information from investigating this?
in function maybe_patch_segment_data(), I think patch_offset -= self.SEG_HEADER_LEN should be done before performing the zero check.
Is there any other information you can think of which will help us reproduce this problem?
I'm trying to generate an image for ESP32 using ESP-IDF v3.3.3 with a modified esp_app_desc.
If I fully initialize esp_app_desc except member app_elf_sha256 with non-zero values, the zero check fails.
Full esptool.py command line as run:
esptool.py --chip esp32 elf2image --flash_mode qio --flash_freq 40m --flash_size 4MB --secure-pad --elf-sha256-offset 0xb0 -o image.bin Build\Debug\project.elf
Full output from esptool.py
What is the expected behaviour?
Image is generated successfully and SHA digest is inserted
Do you have any other information from investigating this?
in function maybe_patch_segment_data(), I think
patch_offset -= self.SEG_HEADER_LEN
should be done before performing the zero check.Is there any other information you can think of which will help us reproduce this problem?
I'm trying to generate an image for ESP32 using ESP-IDF v3.3.3 with a modified
esp_app_desc
.If I fully initialize
esp_app_desc
except memberapp_elf_sha256
with non-zero values, the zero check fails.First 256 bytes of the first segment data generated:
.bin file generated without --elf-sha256-offset 0xb0
The text was updated successfully, but these errors were encountered: