-->
Page 1 of 1

error: espcomm_open failed error: espcomm_upload_mem failede

PostPosted: Mon Dec 25, 2017 1:37 am
by VSRKRAJU
HI All,

I am getting below error while uploading sketch, could you please check and let me know the fix for this.

Arduino: 1.8.4 (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS), ck, Disabled, None"


"C:\Users\rajus\AppData\Local\Temp\arduino_build_620120/w1.ino.bin" -bm dio -bf 40 -bz 512K -bs .text -bp 4096 -ec -eo "C:\Users\rajus\AppData\Local\Temp\arduino_build_620120/w1.ino.elf" -bs .irom0.text -bs .text -bs .data -bs .rodata -bc -ec
Using library ESP8266WiFi at version 1.0 in folder: C:\Users\rajus\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi
Sketch uses 230117 bytes (53%) of program storage space. Maximum is 434160 bytes.
Global variables use 32380 bytes (39%) of dynamic memory, leaving 49540 bytes for local variables. Maximum is 81920 bytes.
C:\Users\rajus\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.9/esptool.exe -vv -cd ck -cb 115200 -cp COM3 -ca 0x00000 -cf C:\Users\rajus\AppData\Local\Temp\arduino_build_620120/w1.ino.bin
esptool v0.4.9 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
setting board to ck
setting baudrate from 115200 to 115200
setting port from COM1 to COM3
setting address from 0x00000000 to 0x00000000
espcomm_upload_file
espcomm_upload_mem
setting serial port timeouts to 1000 ms
opening bootloader
resetting board
trying to connect
An error occurred while uploading the sketch
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
resetting board
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
resetting board
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed

Re: error: espcomm_open failed error: espcomm_upload_mem fai

PostPosted: Sun Jan 07, 2018 2:47 am
by Ratto
What kind of programmer are you using? I built the one described at https://www.allaboutcircuits.com/projects/flashing-the-ESP-01-firmware-to-SDK-v2.0.0-is-easier-now/. It has two buttons, one for RESET and one for FLASH. Before starting the download, there are three steps. 1) Press the FLASH button and keep it down. 2) Click the RESET button and check that the blue LED flashes. 3) Release the FLASH button.

If I don't perform these three steps, I get the same "error: espcomm_open failed......" messages.