Now it gets to 95% and stops. It did upload 100% a few times (put it in programming mode) but now.i get
Arduino: 1.8.5 (Mac OS X), Board: "Generic ESP8266 Module, 80 MHz, ck, 26 MHz, 40MHz, QIO, 512K (no SPIFFS), 2, v2 Lower Memory, Serial, None, Only Sketch, 115200"
Archiving built core (caching) in: /var/folders/kv/f7drssbs0bv4w17ycwcs5d6r0000gp/T/arduino_cache_695195/core/core_esp8266_esp8266_generic_CpuFrequency_80,ResetMethod_ck,CrystalFreq_26,FlashFreq_40,FlashMode_qio,FlashSize_512K0,led_2,LwIPVariant_v2mss536,Debug_Serial,DebugLevel_None____,FlashErase_none,UploadSpeed_115200_e5ab0ff892b614113ea46e0d82f05a51.a
Sketch uses 253464 bytes (50%) of program storage space. Maximum is 499696 bytes.
Global variables use 32812 bytes (40%) of dynamic memory, leaving 49108 bytes for local variables. Maximum is 81920 bytes.
warning: espcomm_send_command: wrong direction/command: 0x01 0x03, expected 0x01 0x08
Uploading 257616 bytes from /var/folders/kv/f7drssbs0bv4w17ycwcs5d6r0000gp/T/arduino_build_766272/web_server.ino.bin to flash at 0x00000000
................................................................................ [ 31% ]
................................................................................ [ 63% ]
................................................................................ [ 95% ]
...........warning: espcomm_send_command: didn't receive command response
warning: espcomm_send_command(FLASH_DOWNLOAD_DATA) failed
warning: espcomm_send_command: wrong direction/command: 0x01 0x03, expected 0x01 0x04
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.