2

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.

Durai Murugan
  • 39
  • 1
  • 5

6 Answers6

1

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

Durai Murugan
  • 39
  • 1
  • 5
0

Permission errors are usually caused by the driver CH34x is not working in your computer. Try update the driver or reinstall

0

Try to rollback the driver to its original version and restart your computer

  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community May 09 '23 at 11:13
0

This worked for me. I rolled back my driver for the ch34x and voila... all working! hint: you may find some boards will program successfully and others not. In my case I found that only the ch340 boards failed. All others passed with flying colors.

0

This usually happens on windows 11. Uninstall your driver and restart your PC or laptop then install the driver back.

YAP
  • 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 Aug 21 '23 at 22:42
0

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

Ivy Growing
  • 2,688
  • 2
  • 17
  • 23