https://iot-guider.com/esp8266-nodemcu/program-esp8266-esp-12e-with-arduino-using-ftdi/
Program ESP8266 ESP-12E with Arduino using FTDI Cable