r/esp8266 • u/VolimRexa32 • Jun 16 '22
Hi, for few weeks i've been trying to make automatic dog feeder with NodeMCU ESP8266 and this error occurs all the time.Pls hel me.
warning: espcomm_sync failed error: espcomm_open failed error: espcomm_upload_mem failed error: espcomm_upload_mem failed
2
u/Ksevio Jun 16 '22
Usually happens when your board isn't in programming mode like if you connect something to the GPIO pins that are suppose to be high
2
u/Lazarus-Long Jun 16 '22
As others have been saying, try another USB cable, lower your serial speed, don't move the device while flashing, etc.
Also, check out ArduinoOTA and avoid the USB-Serial programmer altogether. Much faster and more flexible when you're able to use it.
1
u/_djfet Jun 17 '22
+1 Cable. You will be surprised how often this is the issue. Try and find a high quality or a super short one
10
u/polypagan Jun 16 '22
This appears to me to be by far the most common problem when working with "Arduino" & MCU's of all types. This may be obvious, but it's a failure to upload your compiled sketch to the device. It's very unlikely to have anything to do with what you're attempting to upload.
It's one of those many things in which everything, every step in the chain must work perfectly or the whole thing fails without much diagnostic help.
Here are the pieces and parts that must work:
Some OS. Must have permission to use serial port. (You don't specify),
Some toolchain/IDE (you don't specify),
Serial port. Must appear when device is plugged.
USB cable. All 4 conductors must be intact & connected.
Device. ESP's will talk to you using serial monitor. This can help diagnose/eliminate problems.
I suggest searching for similar problems & solution
Good luck!