Unable to perform write operation while esp8266 flash operation I have just started working with Arduion project from scratch using esp8266 (AI-cloud inside) black module. Now I'm trying to flash the esp8266 using esptool.py I observed that the esp module gets erased successfully but gives the fatal error while performing write operation.

for more details about the steps I have taken follow the below statments

C:\Users\iSandeep&gt;esptool.py --port COM3 erase_flash
esptool.py v2.3.1
Connecting.....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Uploading stub...
Running stub...
Stub running...
Erasing flash (this may take a while)...
Chip erase completed successfully in 0.0s
Hard resetting via RTS pin...

C:\Users\iSandeep&gt;esptool.py --port COM3 --baud 115200 write_flash --flash_size=
detect 0 "D:\sw\Arduino\aTTEMPT 4\esp8266-20170108-v1.8.7.bin" --verify
esptool.py v2.3.1
Connecting........_____....._____....._____....._____....._____....._____.....__
___....._____....._____....._____

A fatal error occurred: Failed to connect to Espressif device: Timed out waiting for packet header


Tutorial or instructions followed from here.
Maybe you can try to use ESP Flash Download Tool from here