Having board esp32 devkit v1, to get started with arduino ide (installed recommended boards for esp32) I marked board asDOIT ESP32 DEVKIT V1 (as no other options as like ESP32 DEVKIT V1 ) so upload gets this error

    esptool.py v2.6
Serial port COM3
Traceback (most recent call last):
File "esptool.py", line 2959, in <module>
File "esptool.py", line 2952, in _main
File "esptool.py", line 2652, in main
File "esptool.py", line 222, in __init__
File "site-packages\serial\__init__.py", line 88, in serial_for_url
File "site-packages\serial\serialwin32.py", line 62, in open
serial.serialutil.SerialException: could not open port 'COM3': WindowsError(31, 'A device attached to the system is not functioning.')
Failed to execute script esptool
the selected serial port Failed to execute script esptool
 does not exist or your board is not connected

so how do I upload my programs? I would be highly obliged if you could please help me solve this problem. Thank you.

  • are you sure COM3 is the correct port? – Jaromanda X Mar 24 '19 at 22:50
  • It's only available – Muhammad Umer Mar 25 '19 at 4:26
  • is that trying to say that COM3 is the only one available? if you disconnect the ESP, does COM3 also disappear? – Jaromanda X Mar 25 '19 at 5:32
  • Have you installed the CP2102 drivers? – Majenko Mar 25 '19 at 10:30
  • 1
    No I haven't install that drivers – Muhammad Umer Mar 25 '19 at 13:14

I got this error. Then switching USB ports fixed the problem. Showed up on COM3 in either place. I just switched from a built-in USB port to on off a hub, and it started working.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.