-
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
Can't flash ESP32 over RFC2217 (ESPTOOL-243) #628
Comments
@ferrarimarco Thank you for the issue, Do I understand correctly that you are running Docker on the remote Linux machine (because |
Hi @kumekay ! Thanks for your support. See my replies below :)
Correct
Yup, more than hundreds of Mbit/s downstream and upstream.
I tried with a lower bitrate as well (tested with Didn't try by flashing using Thanks! |
Stub is a tiny flasher that is loaded to the chip memory on every flash to add extra features that ROM bootloader doesn't have, for example flashing on baud rates higher than 115200. Since it fails after stub upload, maybe the failure somehow related to it. |
Thanks for the support @kumekay . I tried many times, but could not reproduce the issue. Closing for now. If it happens again, I'll reopen. |
I have this exact same issue. Were you ever able to resolve it? Same idea, running through a docker container on a macbook. Was working just fine until the I reset my docker and it had to pull the newest image of the container. Not sure exactly what changed between docker images but it no longer flashes and I receive the exact same error as shown above. |
@cchaz003 What is the version of docker image/idf are you using? Maybe something else has changed? Did you try to run |
I have the same problem. My client is in the internet (actually in a gitpod), my server is in the office, so the connection is via internet. The problem appeared when our internet connection had some performance issues. |
I traked down the problem and saw that there is a very short timeout of 0.05s applied after esptool.py output This causes problems on slow connections. I worked around it as follows:
|
Operating system
macOS 13.3.1
Linux (Debian)
Python version
3.6.9 (via the esp-idf Docker container)
What Chip
ESP32
What development board or other hardware is the chip attached to
Adafruit huzzah 32
Is anything else attached to the development board, except for the serial flasher connections?
No.
Are you running esptool.py from an IDE such as Arduino or Eclipse?
No IDE. Running the esp-idf Docker container.
Full esptool.py command line that was run:
Full output from esptool.py
Do you have any other information from investigating this?
The command always errors.
My setup is the following:
ESP32 board connected to a MacBook.
Exposing the serial port with the esptool RFC2217 server:
python3 .env/esp_rfc2217_server.py -p 3000 /dev/cu.SLAB_USBtoUART
(in another shell) Remote SSH forward the local 3000 to a remote host:
ssh -R 3000:localhost:3000 remote.host.com
Try flashing the board with
idf.py
:Is there any other information you can think of which will help us reproduce this problem?
Using the "plain" pyserial
rfc2217_server.py
makes no difference.Can you help me debug this? The stack trace just points me to that line, and I cannot deduce what's happening.
Thanks!
The text was updated successfully, but these errors were encountered: