esp-12f cannot program with arduino

I'm trying to program an esp-12f, i connect it to cp2102 and it works fine,but with arduino i can not program it,it goes out this mistake:

warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed

I have looked a lot topics this forum But also in other forum and i have to say that many have not solution it. :frowning:
There is a solution?

I use esp-12f and arduino due.

Without a schematic how you connected the esp, without giving us your specific configuration settings in Arduino and without the steps you took, how can we help? We cannot guess how you hooked it up.

You need to pull GPIO0 to ground before booting.

Take a look at my Beginner's Guide to the ESP8266.
You need to add buttons to reset and GPIO0 (chapter 2) and/or add an auto-reset circuit (chapter 6). Then pull down GPIO0 during reset to upload (chapter 6) or just select the right setting in the IDE if you added an auto-reset circuit.

Pieter

Is the statement in the Beginner's Guide "the ESP8266's I/O pins are not 5V tolerant" correct? See datasheet.

All digital IO pins are protected from over-voltage with a snap-back circuit connected between the
pad and ground. The snap back voltage is typically about 6V, and the holding voltage is 5.8V

I've read a lot of discussions back when I wrote that guide, and it wasn't in the datasheet back then, only some unofficial rumors and Twitter posts by Espressif employees. The general consensus was that the ESP8266 is a 3.3V device, so its pins are 3.3V.
Thanks for mentioning it, I'll update the guide when I find the time.

Pieter

Thanks for the clarification! And great work btw. :slight_smile:

Heloo again,i followed this guide

The guide you linked to describes the uploading process:

Run "Upload" in Arduino IDE.

Get ready for restarting the module: keep pressed the FLASH button.

When "esptool.exe .... -cp COM...." appears in the messages area then quickly press and release RESET. Then release FLASH button.

You should see in the messages area the flashing process.

After the flashing the you should see the the blue led blinking.

That should work, but it's really cumbersome. And you don't need very precise timing, you can just enter flashing mode, and then hit upload afterwards.

I'd recommend using an automatic reset/flash circuit (see chapter 6 of the beginner's guide).
Also note that the Tools settings shown in the Instructable are wrong. You need a QIO flash interface and 4M flash IIRC.

Pieter