Skip to content

Upload error over remote desktop (ESPTOOL-148) #530

@spigotx

Description

@spigotx

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

esptool.py v2.8
Serial port COM5
Connecting....
Traceback (most recent call last):
  File "C:\Users\dtarduino\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.7.1/tools/upload.py", line 65, in <module>
    esptool.main(cmdline)
The uploader process failed
  File "C:/Users/dtarduino/AppData/Local/arduino15/packages/esp8266/hardware/esp8266/2.7.1/tools/esptool\esptool.py", line 2890, in main
    esp.connect(args.before)
  File "C:/Users/dtarduino/AppData/Local/arduino15/packages/esp8266/hardware/esp8266/2.7.1/tools/esptool\esptool.py", line 475, in connect
    last_error = self._connect_attempt(mode=mode, esp32r0_delay=False)
  File "C:/Users/dtarduino/AppData/Local/arduino15/packages/esp8266/hardware/esp8266/2.7.1/tools/esptool\esptool.py", line 455, in _connect_attempt
    self.sync()
  File "C:/Users/dtarduino/AppData/Local/arduino15/packages/esp8266/hardware/esp8266/2.7.1/tools/esptool\esptool.py", line 394, in sync
    timeout=SYNC_TIMEOUT)
  File "C:/Users/dtarduino/AppData/Local/arduino15/packages/esp8266/hardware/esp8266/2.7.1/tools/esptool\esptool.py", line 347, in command
    p = self.read()
  File "C:/Users/dtarduino/AppData/Local/arduino15/packages/esp8266/hardware/esp8266/2.7.1/tools/esptool\esptool.py", line 292, in read
    return next(self._slip_reader)
  File "C:/Users/dtarduino/AppData/Local/arduino15/packages/esp8266/hardware/esp8266/2.7.1/tools/esptool\esptool.py", line 2041, in slip_reader
    read_bytes = port.read(1 if waiting == 0 else waiting)
  File "C:/Users/dtarduino/AppData/Local/arduino15/packages/esp8266/hardware/esp8266/2.7.1/tools/pyserial\serial\serialwin32.py", line 293, in read
    raise SerialException("GetOverlappedResult failed ({!r})".format(ctypes.WinError()))
serial.serialutil.SerialException: GetOverlappedResult failed (OSError(22, 'Reached the end of the file.', None, 38))

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions