unless you need compatability with RRF just go with this https://github.com/espressif/esptool/wiki/ESP8266-Boot-Mode-Selection

or look at the schematic for something like the wemos d1 mini to see how they use dtr/rts to do auto reset/programming