Chat here is you are connecting ESP-xx type modules to existing AVR based Arduino

Moderator: igrr

User avatar
By djw
#17592 Hi,
I am getting espcomm_open failed error even with GP0 tied to GND, but the message is a bit different. Has anyone seen this type of message before? Could you please let me know how to fix it? Thanks!

esptool v0.4.3 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
setting board to ck
setting baudrate from 115200 to 9600
setting port from COM1 to COM9
setting address from 0x00000000 to 0x00000000
espcomm_upload_file
stat C:\Users\abc\AppData\Local\Temp\build8506209514521761711.tmp/HelloServer.cpp_00000.bin success
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
read 0, requested 1
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
read 0, requested 1
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
read 0, requested 1
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
read 0, requested 1
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
read 0, requested 1
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
read 0, requested 1
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
read 0, requested 1
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
read 0, requested 1
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
read 0, requested 1
warning: espcomm_sync failed
error: espcomm_open failed
User avatar
By arut
#19488 Hello,

I'm getting the same error with my ESP-201. This is the first time I'm trying to use this type of module, so I have nearly no idea what I'm doing.

I have tried connecting the FTDI +IO0 to GND, and using Arduino IDE (with "Generic ESP" board, 80Mhz, 512k, all baud rates). Are these settings correct?

Can someone point me to a good source of information about the correct way of connecting up this module and, possibly, where this type of error might come from?

Is there another way of checking if I have a dud board, or if it's me doing something wrong?

Thanks a lot in advance.
User avatar
By Vader
#29187 Did somebody find a solution?

I'm using an ESP8266-01 and trying to upload a sketch via Arduino Leonardo and the Arduino IDE (1.6.5) with the settings (Arduino status bar): Generic ESP8266 Module, Serial, 80 MHz, 40Mhz, QIO, 115200, 1M (512K SPIFFS).
But I'm always getting the warning and error:
Code: Select allwarning: espcomm_sync failed
error: espcomm_open failed


The Arduino Leonardo has the sketch
Code: Select allvoid setup() {
  Serial.begin(115200);
  while (!Serial); // wait for serial port to connect. Needed for Leonardo only
  Serial1.begin(115200);
}

void loop() {

if (Serial1.available()) {
    int b = Serial1.read();
    Serial.write(b);
  }
 
  if (Serial.available()) {
    int c = Serial.read();
    Serial1.write(c);
  }
 
}


It is possible to communicate via the serial monitor with the ESP8266 (AT commands). But it is not possible to upload a sketch. If I press the upload button, the blue led is flashing but I'm always getting
Code: Select allwarning: espcomm_sync failed
error: espcomm_open failed


The Arduino Leonardo and the ESP8266 are connected with a 74HC 4050 as a level shifter. I connected the GPIO0 to ground. I also tried to connect GPIO2 to 3,3 V. Always the same error. :cry: