-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP32-S3 "Hash of data verified." not reported after writing flash block (ESPTOOL-758) #927
Comments
Hi @frenchf1, In your case, you are flashing 4 files:
After each of these, you should see these two lines:
Does this not happen in your case? Your log clearly shows the lines. |
Hi @radimkarnis , In my case the line "Hash of data verified." is generated most of time but sometimes this line is missing after each writing and I have no idea about the root cause ? Thank you for your help. |
@frenchf1 please send a log where the line is missing. |
@frenchf1 thanks for the log. I am not sure why these are not shown in your case. Let's analyze. This is the code for showing the if not encrypted and not esp.secure_download_mode:
try:
res = esp.flash_md5sum(address, uncsize)
if res != calcmd5:
print("File md5: %s" % calcmd5)
print("Flash md5: %s" % res)
print(
"MD5 of 0xFF is %s"
% (hashlib.md5(b"\xFF" * uncsize).hexdigest())
)
raise FatalError("MD5 of file does not match data in flash!")
else:
print("Hash of data verified.")
except NotImplementedInROMError:
pass What this means is that it is shown only if the write is not encrypted, the esp is not in secure download mode and the Does this still happen if you don't use the |
I will be closing this issue. Please feel free to open another one if the flashing process fails (or if you suspect flashing to fail silently and the app doesn't work). |
Operating System
Windows 10
Esptool Version
v4.5.1
Python Version
3.10.10
Chip Description
ESP32-S3
Device Description
ESP-PROG
Hardware Configuration
No response
How is Esptool Run
Windows Terminal
Full Esptool Command Line that Was Run
esptool --chip esp32s3 -p COM11 -b 1000000 --before=default_reset --after=hard_reset --no-stub write_flash --flash_mode dio --flash_freq 80M --flash_size 4MB --force 0x0 bootloader.bin 0x20000 firmware.bin 0xc000 partition-table.bin 0x1d000 ota_data_initial.bin
Esptool Output
More Information
Sometimes for each flash block the "Hash of data verified." text is missing ? What does it mean ? Why ?
Other Steps to Reproduce
No response
I Have Read the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: