Error in upload using Arduino Mega 2560 & ESP

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

I’m trying to upload using Arduino Mega 2560, and I dont know how to solve the error above, all connections are right (it is on flash mod), I’m using an external supply for esp, but the only thing I was able to upload was a firmware. The blue led blinks before the error message appear and I have no answers when tap AT commands either.

Hello and Welcome to the Blynk Forum.

I moved your issue into your own topic as the topic you had posted in was over a year old.

What model of ESP board are you using?

How are you hooking it up to the Mega? (you should be using Serial1 - Pins 18 & 19, probably at 115200 BAUD)

You need to still connect to Arduino Mega, via the USB port, in the IDE for programming, the ESP WiFi link is only for MEGA ↔ Blynk Server communication.

You don’t put an ESP used as a serial adapter into Flash Mode (after it is already flashed with AT firmware).

http://help.blynk.cc/hardware-and-libraries/arduino/esp8266-with-at-firmware