esp8266arduino-idenodemcu

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.


Solution

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