Closed frenchf1 closed 1 year ago
Hi @frenchf1,
the Hash of data verified.
text is displayed after every file that is written to the flash memory, if the write is not encrypted or if the ESP is not in secure download mode.
In your case, you are flashing 4 files:
After each of these, you should see these two lines:
Wrote 36864 bytes at 0x00000000 in 1.1 seconds (256.4 kbit/s)...
Hash of data verified.
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 Hash of data verified.
text:
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 esp.flash_md5sum
function does not result in NotImplementedInROMError
for every one of the flashed files.
Does this still happen if you don't use the --no-stub
option? Does the flashed application work? Maybe the ROM is just refusing to calculate the MD5 hash for some reason.
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