4

I am using a windows OS and I tried running a .ino code in arduino IDE for ESP8266 and came across the following error while trying to upload the code to ESP8266.

A fatal esptool.py error occurred: Cannot configure port, something went wrong. Original message: PermissionError(13, 'A device attached to the system is not functioning.', None, 31)

I got to know that this error is being encountered by many people right now. I've used arduino IDE with esp8266 for some time now and this is the first time such an error has popped up. And I think it has something to do with the libraries or drivers installed while setting up the arduino IDE for ESP8266.

  • Tried disconnecting the ESP8266 from my laptop and reconnecting it to a different USB port.
  • Tried resetting the esp8266 using the RESET button to check if it was because of the hardware.
  • Tried running the Arduino IDE as an administrator.
James Z
  • 12,209
  • 10
  • 24
  • 44
Krshnapriy
  • 41
  • 1
  • 1
  • 3
  • The error message is quite clear that you do not have permission to access the serial port. How to get permission to access a serial port on your development machine is a question about system administration. It is not a question about software development (even though the reason you want to use the serial port is for software development). This means the question is not suitable for stack overflow. This exact question has already been moved to superuser.stackexchange.com in the last 24 hours. Asking the same thing again will not make it an allowed question! – Tom V May 01 '23 at 21:52
  • Here is the migrated question: https://superuser.com/questions/1781851/esptool-py-permissionerror-while-configuring-serial-port – Tom V May 02 '23 at 01:42

8 Answers8

8

I had the same problem and solved after installing this CH340 driver

5

uninstall ch340 driver and freshly install the driver then you are good to go!!

2

I had the same issue. I uninstall CH430 driver( CH341SER.ZIP) and installed old version driver(Windows-CH340-Driver.ZIP 2016/11/30) and saved this issue.

0

I had the same issue and it seems like it's specific to Win11. The Arduino online editor should be a workaround for this though.

Python_l
  • 1
  • 1
0

installed again the ch34xx driver and it worked for windows 11

0

Seems that windows 11 has some problems with the ch34xx driver, I had to reinstall it every time i reboot windows 11. after reinstall it works perfectly ;)

Shila Mosammami
  • 999
  • 6
  • 20
0

I was trying to program AI Thinker ESP32-CAM board using ESP32 CAM BM programmer. I got this error.

"A fatal esptool.py error occurred: Cannot configure port, something went wrong. Original message: PermissionError(13, 'A device attached to the system is not functioning.', None, 31)".

I tried reinstalling the CH341 driver and it worked. But sometimes, I had to disconnect the ESP32 CAM BM programmer and close the arduino IDE completely, then reopen the IDE and reconnect the board to make it work.

0

Need to setup on properties of port in manager devices speed of port, in my case was in cketch 115200 but in parameters of port 9600

snake9x
  • 1
  • 1
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jul 20 '23 at 05:58