ESP8266 warning: espcomm_sync failed Error

Hello,

I'm using an Ardunio Genuino 101 and I've been trying to make a program using ESP8266-01 Module. But I always get this error:

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

Cable layout:

ESP 8266 E01 ARDUINO

TXD TXD
RXD RXD
CH_PD 3.3V
VCC 3.3V
RESET 3.3V
GND GND
GPIO0 GND

and I am trying to run this code:

#include <ESP8266WiFi.h>

void setup(){

Serial.begin(115200);
delay(500);

Serial.println();
Serial.print("MAC: ");
Serial.println(WiFi.macAddress());

}

void loop(){}

I am using this code in order to find the mac address of the module.

I am looking forward to any questions and helpful suggestions.

Thank you!

the TX-TX, RX-RX method to use the USB of other board to flash the esp doesn't work with every board. it is a possible solution if you do not have an USB to ttl adapter.

or you could try to flash the esp8266 with EspProxy sketch

Hello,

I didn’t quite understood what you meant. Can you clarify what you meant on your previous reply? @Juraj

Thanks

you should buy an USB to TTL adapter to flash the esp8266, if you do not understand the tricks

Alright thanks...