Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PermissionError(13, 'A device attached to the system is not functioning.', None, 31)Serial port COM4

I'm very new to using ESP8266,I tried to upload this simple script

void setup() {
  pinMode(D4, OUTPUT);

}

void loop() {
  digitalWrite(D4, HIGH);
  delay(1000);
  digitalWrite(D4, LOW);
  delay(1000);

} 

to the node mcu(ESP8266) but I keep on getting this error esptool.py v3.0 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)Serial port COM4

Anyone answering the question ,explain it step by step and do remember that I've zero knowledge on esp8266. I've tried installing driver's but still the same error.

like image 994
Durai Murugan Avatar asked Sep 10 '25 03:09

Durai Murugan


2 Answers

As many said here: uninstall the driver and install it again. This is how-to. Sparkfun has link to download uninfected driver which works.

like image 88
Ivy Growing Avatar answered Sep 12 '25 23:09

Ivy Growing


Click flash botton on nodemcu before flashing the file or update the driver’s

like image 36
Durai Murugan Avatar answered Sep 12 '25 23:09

Durai Murugan