To put the ESP chip into programming mode, remove the Vcc pin, press and hold the pushbutton and while the button is held down plug the Vcc pin back in.