Pinout of debug port: (pin 1 is near the USB port) 1 - GND 2 - GPIO0 3 - /RESET 4 - RXD 5 - TXD Pull down GPIO0 and pulse low /RESET to make the ESP enter programming mode.