Program ESP8266 12 E with arduino Mega

Hello,

I am trying to program ESP8266 12E with Arduino Mega. After quite a bit of googling and stumbling through links I still cant get it to work properly.

Here is what I am doing:

vcc -> 3.3v on Mega

gnd -> gnd on Mega

reset -> 10k resitor -> 3.3v on Mega

en -> 3.3v on Mega

gpio0 and gpio15 to ground on Mega

tx -> rx (pin 15)

rx -> tx (pin 14)

I followed the steps to install the esp2866 board on arduino IDE and chose the generic ESP2866 (also tried nodeMCU ESP8266 12E) and I got these errors when I tried to upload a blink program from library.

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

p.s if I buy a USB programmer will that make it easier for me as I am a beginner?

Surely after all that googling you have realized that you need to connect more than vcc and gnd.

Sorry for some reason only half of my question got posted, I have updated it now

pert:
Surely after all that googling you have realized that you need to connect more than vcc and gnd.

I suggest taking a look at this guide to the ESP8266.