-
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
Upload error over remote desktop (ESPTOOL-148) #530
Comments
Hi @spigotx , Thanks for the detailed report. The In this case, pyserial (the serial library used by esptool) is calling the Windows ReadFile() function to read from the open COM port and Windows is returning this 'Reached the end of the file' error. I can't explain why this would happen.
Is the WeMos D1 Mini physically connected to the same computer in both cases? Is any feature like remote desktop serial port redirection is being used? |
Hi @projectgus Thank you for the clarification.
In both cases I'm talking about the same pc (virtual machine) I'm using for Arduino. Direct connection - I'm using VMware hypervisor (ESXi) on physical servers. Wemos D1 mini is connected to USB port (server) which is redirected over passthrough from an ESXi host (server) to the virtual machine. Remote desktop - Wemos D1 mini is connected to USB port on my physical pc and this USB port is redirected to the virtual machine over remote desktop. |
Hi @spigotx , Thanks for the explanation and the helpful diagram.
|
Hi @projectgus
|
After some hours trying to upload via RDP (console working ok, but couldnt use esptool.exe to upload because of the GetOverlappedResult failed error). I tried to use some versions of Esptool and I ended recompiled version 8. After that, the same error... so I just used it with --trace option to see what happened and ESP32 was TX/RX correctly so I just tried to press the boot button on the PCB all the time, without waiting to see that ....-----....---- progress bar... and worked! :) Try it first without replacing esptool.exe, and if it doesnt work, install try my compiled version from here esptool compiled. I just forced the --trace option and increased time for sync bootloader Setup upload rate at 115200 (for me doesnt work with other rates) |
Operating system
Windows 10
Python version
Python 3.8.2
What Chip
ESP8266
What development board or other hardware is the chip attached to
Wemos D1 mini
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?
MS Visual Studio
Arduino IDE 1.8.12
Full esptool.py command line that was run:
upload.py" --chip esp8266 --port "COM5" --baud "921600" --before default_reset --after hard_reset write_flash 0x0 Test.ino.bin"
Full output from esptool.py
Do you have any other information from investigating this?
Is there any other information you can think of which will help us reproduce this problem?
Upload over direct connection is working. This problem occurs only over remote desktop connection.
Latest working ESP8266 version is 2.4.2
Esptool command from 2.4.2:
esptool.exe -cd nodemcu -cb 921600 -cp "COM5" -ca 0x00000 -cf "Test.ino.bin"
Arduino IDE settings v2.4.2/2.7.1
The text was updated successfully, but these errors were encountered: