-
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
Reading flash from ESP32-S3 with read_flash command is very slow (ESPTOOL-774) #936
Comments
For some reason, the communication speed does not seem to change on the ESP32-S3 regardless of the With the same settings (only changing the read size to 4 [MiB]), I tried it on the ESP32-C3 and confirmed that the read speed changes with the |
Through investigation, I confirmed that implementing the following measures improves the read speed to a normal level.
|
Hello @ciniml, I can confirm this is a real issue and can be fully reproduced. We will fix this ASAP. |
Hello @radimkarnis . I am testing the stub on Windows, but it seems that the transfer stops midway. It's likely that further adjustment of the flush timing is needed. I will continue to investigate what is happening. |
Hello. Further investigation has revealed that in the problematic Windows environment, reducing the accumulating amount from 64 bytes to 63 bytes prevents the system from hanging. The exact cause is not well understood, but when observing packet captures, it appears that packets of an unnaturally long length occur regularly with 64 bytes. https://github.com/ciniml/esptool/tree/improve_esp32s3_read_flash_speed |
Hi @ciniml, thank you for the investigation and providing the fix it is much appreciated. I have just one question.
What is the issue with setting the divider? I have tried the fix with and without this part and I cannot see a difference. Can you please explain why you think this change is needed? |
Operating System
Ubuntu 22.04
Esptool Version
v4.7.dev3-5-gda4a486
Python Version
Python 3.10.12
Chip Description
ESP32-S3
Device Description
ESP32-S3-WROOM-1-N8R8
Hardware Configuration
Connect "USB" port (which is connected to internal USB Serial/JTAG) to host PC.
Force ESP32-S3 to enter download mode by pushing BOOT and RESET button on the board.
How is Esptool Run
No IDE
Full Esptool Command Line that Was Run
esptool.py --port /dev/ttyACM1 --baud 1500000 read_flash 0 16777216 dump.bin
Esptool Output
More Information
The command takes around 15 minutes to complete. (around 8000 bytes/s to reading flash)
Other Steps to Reproduce
No response
I Have Read the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: