Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By Idan Sagiv
#46996 Hi friends, i'm testing my new ESP8266 - 01 module.
I want it to run arduino code so im flashing it with Arduino IDE with blink program.
I'm having problems in flashing it, it says on the arduino log:
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed

my connections with the ESP-01:
pin RESET, CH_PD, and GPIO 2 connected to Vcc
and GPIO 0 connected to GND,
TX-RX, RX-TX.

Note:
i'm using USB-UART with CP2102 module.
i have tried supplying power of ESP01 from another source (Pi or Arduino)
but still no luck.
Can someone help me! Any kind of information is appreciated, thanks!
User avatar
By CipiCips
#47005 Hi

Try this

PIN 1 - GND to GND
PIN 4 - CH_PD to Vcc (3.3V)
PIN 6 - RST (solder wire to this pin and leave it floating)
PIN 8 - Vcc to Vcc
PIN 7 - Rx to Tx of TTL
PIN 2 - Tx to Rx of TTL
PIN 3 - GIPIO 2 dont connect to anything
PIN 5 - GIPIO 0 (solder wire to this pin and leave it floating)

Connect your module to USB and run flashing tool.
In flash tool select serial port.
Then PIN 6 - RST take wire and connect to ground, Then Take PIN 5- GIPIO 0 and connect to ground.
Now Remove PIN 6 - RST from ground (blue LED on esp will blink) and then remove PIN 5-GIPIO 0 from ground and your module is set to FLASHING mode
User avatar
By OmarZaid
#47144 Hi

You need to check your serial connection first , connect the serial adapter with ESP module & open the serial monitor on Arduino IDE then power ESP module , you should see something like below :

Image

if so , then you connected the module properly to your computer , if not please change the connection so that RX to RX & TX to TX , I faced that once & reverse the connection solve the issue , after that you need to put the module in flashing status by connecting GPIO0 to ground & reset the module be connect the reset to ground then release it , please try these steps & let us know if it work for you .

Thank you.