Skip to content

warning: espcomm_sync failed error: espcomm_open failed error: espcomm_upload_mem failed error: espcomm_upload_mem failed #2751

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tanyp97 opened this issue Dec 10, 2016 · 13 comments

Comments

@tanyp97
Copy link

tanyp97 commented Dec 10, 2016

Fail to upload program to ESP8266 with Arduino Geniono Uno and Arduino Mega, last few day it still working fine but suddenlly when im going to upload the program to the ESP8266 the error came out.

I have tried to add an External 2x AA battery to it but still same
i also tried to add External 9V battery with AMS1117 3.3V regulator to it and still not working

Here is my wiring
TX >> TX
RX >> RX
3.3V >> CH_PD
3.3V >> VCC
RST >> button >> GND
GPIO 0 >> butoon >> GND
GND >> GND

both button is to get the ESP 8266 into flash mode....

can anyone please help.....

@jyotirajsharma
Copy link

Did you get it working now?

@jyotirajsharma
Copy link

Should TX from Arduino not be connected to Rx of ESP8266 and vice versa ??

@kumarmaxwell
Copy link

Hi all,
By Connecting RESET,CH_PD pins of E01 module to 3.3V and GPIO0 to GND. These error can resolved..A brief post on Errors are here

@jyotirajsharma
Copy link

Do we need to supply 3.3v supply from external power source or we can use arduino power source only ?

@jyotirajsharma
Copy link

Hi,
I am still getting same error after using configuration suggested by you:
C:\Users\Jyoti\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.9/esptool.exe -vv -cd ck -cb 115200 -cp COM3 -ca 0x00000 -cf C:\Users\Jyoti\AppData\Local\Temp\arduino_build_39553/dht_wifi.ino.bin
esptool v0.4.9 - (c) 2014 Ch. Klippel [email protected]
setting board to ck
setting baudrate from 115200 to 115200
setting port from COM1 to COM3
setting address from 0x00000000 to 0x00000000
espcomm_upload_file
espcomm_upload_mem
setting serial port timeouts to 1000 ms
opening bootloader
resetting board
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
serialport_receive_C0: 08 instead of C0

Thanks,

@jyotirajsharma
Copy link

I have nearly spent more than 20 days trying to run esp8266 but ended up doing nothing. It appears to me that esp8266 has lots of bugs and there is no exact connection diagram to fix sync error problem. I am getting same error everytime even after following almost all the suggestions mentioned in the esp8266 community. I am frustrated.

Is there noway to flash the esp8266 ? I see that almost 99% people are facing this problem and seems no exact solution to this.

@vicnevicne
Copy link
Contributor

Do we need to supply 3.3v supply from external power source or we can use arduino power source only ?

jyotirajsharma, you're asking that question again and again. You even opened #2825 explicitely about it.
This is not a bug, it's a usability question, so I already suggested that you post that question to the esp8266.com forums, but I searched for your name on the forums and couldn't find any match. Did you post it ?
Moreover, I notice you already got an answer by hackernikhilraj in #2772 :

arduino didn't supply that much of current that is required for ESP8266 to work. arduino o/p current is less than that.

And common sense just dictates that if you are still wondering after a week, well, just try with a separate source. If you don't have a power supply, use 3 rechargeable batteries (3 x 1.2V = 3.6V) for example and try it for yourself.
Plus, I couldn't find anywhere the exact setup you're using. Is it a stand-alone module ? And if so, which one ? Do you use a USB to serial converter? If so, which one ?
But please don't answer here: head to the forums, ask this question or complete it with as much detail as possible and post a link here so that we continue the discussion there.

Once again: only open an issue if you were able to confirm you have found a bug.

Oh, and no, 99% of ESP8266 users are not facing this problem... but 99% of users that ask vague questions at the wrong place never get a solution indeed... ;-)

@jyotirajsharma
Copy link

I have raised a question regarding this by creating a new forum but it says it needs a approval from moderator so do not have a link to post it now. I posted my concern here because the suggestion posted above where it looked they used arduino power supply only and i tried same config but did not get the correct result. I am using
LAPTOP USB<---->ARDUINO(3.3v)<------->esp8266(Vcc)
Anyway, please accept post from forum i just raised now and please do not get upset about my last post.
Thank you for your anticipated co-operation :-)

@jyotirajsharma
Copy link

I am still getting same error after using external power supply (3 AA 1.2v = 3.6v battery).
Please reply on http://www.esp8266.com/viewtopic.php?f=6&t=13279#p60775.
Please help to resolve this. I am not finding anything wrong with the connection.

@proddy
Copy link

proddy commented Feb 18, 2017

on my boards you cannot upload when there is something connected to TX

@kanstantsin-bucha
Copy link

Just my 2 cents
Generally this error means there are no running esp8266 on the other side
So Check
0 rx connected to tx and vise versa
1 the gpio0 and gpio15, gnd connected to ground
2 the vcc and en connected to external (not to programmer itself) power source
in my case the board doesn't work from programmer power supply
3 if you use breadboard please check carefully power line from power supply to esp, especially to en pin. the en pin should be connected right to the source without resistor.
if you measure some voltage on connected esp it is still not clear that connection is good enough.
in my case using dupont connectors on this lines leads to errors that appears by random from time to time
if you want read some from console my esp12s has default rate 74880, maybe yours to.
some of UARTs want high CTS signal (CTS<->10k resistor to power source)

@Bushii7
Copy link

Bushii7 commented Jul 27, 2017

TX >> TX
RX >> RX
3.3V >> CH_PD
3.3V >> VCC
RST >> button >>VCC
GPIO 0 >> butoon >> GND
GND >> GND
GPIO 1>>VCC

ESP8266-01on arduino mega
getting the same error while uploading
espcomm_sync failed error: espcomm_open failed error: espcomm_upload_mem failed error: espcomm_upload_mem failed

what should i do?

@devyte
Copy link
Collaborator

devyte commented Oct 6, 2017

The espcomm open failed error is documented. If what the doc says doesn't fix your problem, you have either bad wiring, bad power supply, or a bad board.
Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants