-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
Error: espcomm_open failed #466
Comments
I got that recently on Adafruit HUZZAH ESP8266 module and found I had the TX / RX leads swapped over. I fixed the connections and the problem went away. |
I tried. But didnt work for me. |
here is the list what need to be connected and where the pullups shut be: |
The ESP-12 chip exposes GPIO 15. This pin must be pulled to ground for the chip to operate in the flash or UART modes. |
Sorry, I have to correct myself: You have to leave connected the GPIO15 to the Ground to make the board functioning after the upload. Only the GPIO0 is to be disconnected. |
Still having the same issues but with the standard ESP8266. Tried swapping the TX/RX, grounded GPIO0, and even tried updating the firmware but not successful. Here's the link of the test http://iot-playground.com/2-uncategorised/35-esp8266-firmware-update Hope for any help! |
Hi. I was having the same problem. |
From Adafruit's tutorial, using the Huzzah board, did you try:
Then in the upload. https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout/using-arduino-ide |
I was having the same issue as well. The way the issue was fixed for me is by connecting GPIO2 to 3.3V and GPIO0 to ground then resetting before uploading. GPIO2 can be disconnected from 3.3V after the upload is finished. |
@stephenmueller You are a life saver man ! |
I got an ESP8266MOD based WiFi Shield made by SZDOIT and it's meant to be a transparent Wifi-serial bridge. Although, the documentation reveals that the official AT or NodeMCU firmware can be loaded. So, I have been trying to flash the module on the board with an arduino sketch and I always had this error: Warning: espcomm_sync failed I'm using Arduino IDE 1.6.5 |
It seems to be a repeated issue. I believe that all the ESP8266 modules with whatever board they are mounted on - all have to be configured into the "bootload mode". The ESP8266 HAS TO BE in the "bootload mode" before each upload/flash. There is no timeout for bootload mode, so you don't have to rush!
Now, reading the Adafruit HUZZAH ESP8266 Breakout document will tell you that: GPIO#0, which does not have an internal pullup, and is also connected to both a mini tactile switch and red LED. This pin is used by the ESP8266 to determine when to boot into the bootloader. If the pin is held low during power-up it will start bootloading! That said, you can always use it as an output, and blink the red LED. And RESET - this is the reset pin for the ESP8266, pulled high by default. When pulled down to Therefore, I am pretty sure that if you want to program/flash/upload to the ESP8266 you will have to hold LOW the GPIO0 pin of the ESP8266 module you have, then hold LOW the RESET pin of the ESP8266 module you have in order to clear the ESP8266. Then set the RESET pin HIGH, and then set the GPIO0 pin HIGH. Following those 4 steps will cause the ESP8266 chip to enter into bootloading mode. At this point you should be able to upload any program/sketch you want. I could not find any schematic for the SZDOIT's ESP8266MOD board so I am not sure what is the pinout. But try to follow the above? |
Thanks so much, Klimovitsky. I'll try that again and get back. Also, I want to know if there's a particular baudrate for flashing the chip. Although, in the previous discrete ones I have used 115200 was cool. |
Yeah, that is what I used as well. |
I had the same espcomm_sync failed problems with an Adafruit Huzzah, but I think mine is caused by a cheap FTDI adapter with a counterfeit FTDI chip. This is something FTDI put in the newest Windows drivers to block communication with counterfeit chips. |
Not having a common logic ground can cause this. If you are running your FTDI from a 5 Volts source and your ESP82 from a separate 3 volt source, connect the grounds. |
So to be totally newbie to this. |
Using Adafruit Feather HUZZAH ESP8266 you do not need to worry about toggling individual GPIO pins in order to put ESP into bootloader mode. This is done for you by the sketch uploader program (esptool) over USB/serial interface. If not done already just follow Adafruit's guide https://learn.adafruit.com/adafruit-feather-huzzah-esp8266/using-arduino-ide Krzysztof |
Yeah, I have followed the adafruit guide, step by step. I also suspect the usb driver I was told to install. I have the .dmg file and upon double clicking it, nothing seems to happen. Usually there apears a .pkg or something like that. |
Now looking closer at my serial ports on the arduino IDE drop down menu, I see no usb ports. Product ID: 0xea60 Looks right? |
There's a link to a 5 sec showing the lights light up and turn of upon connecting. |
I stand before you, with my head bowed in shame. |
@hzd1977 |
Remove the LED on GPIO2!!!! I spent hours to find out that my LED was the issue! |
Trying a different usb cable works for me .. Lucky i didn't removed anything or added a jumper wire or something else. That site contains some tips for that issue: https://learn.sparkfun.com/tutorials/esp8266-thing-hookup-guide/discuss |
okay, Firstly I'm trying to do this,(watch this video) |
Hi Vedant803, |
The thing that worked for me was to set baud rate to 115200 (was 921600 by default when installing Arduino,(don't know why, by the way)). |
These are reaaaaally annoying. I got the same problem and guess what? |
Closing per #3655 . |
ESP01 Flash config:--> ESP07 Flash config:--> When programming the ESP8266, connect VCC, ground, TX and RX properly. (FTDI <->ESP) VCC --> 3.3V (Power from USB 2.0 was enough to program ESP01 and ESP07; I used arduino software to program; Nodemcu flasher can also be used to flash) In order to turn into program the ESP, first both the RESET and the GPIO0 should be connected to the ground. |
I'm using ESP8266 Wifi Module ESP-03.
Picture of the board is here - https://cdn.instructables.com/FTH/XRX4/IRHV3YPI/FTHXRX4IRHV3YPI.LARGE.jpg Connection: |
Changing the USB cable solved it for me as well. Same thing helped others according to this thread: |
Re plugging the cable each time before upload work for me. |
I am using Arduino 1.6.5 along with ESP8266MOD (16 Pin).
Connections are: RX-TX, TX-RX, GND-GND, VCC,GPIO0 and CH_PD- 3.3v arduino..
no error in compilation of the code.
But while uploading a warning and an error occurs:
warning: espcomm_sync failed
error: espcomm_open failed
Tried changing RX and TX, and also GPIO0 while ploading kept it low. still the same errors..
code:
void setup() {
Serial.begin(9600);
Serial.begin(9600);
delay(1000);
}
void loop() {
if(Serial.available()){
byte b = Serial.read();
Serial.write(b);
}
if(Serial.available()) {
byte c = Serial.read();
Serial.write(c);
}
}
Please help me out!!!
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: