-->
Page 1 of 1

Problem Uploading sketch [error: espcomm_open failed]

PostPosted: Thu Oct 05, 2017 1:00 am
by Leandro Boffi
Hi!

I'm running Arduino IDE 1.6.8 in a Macbook with Mac OSX El Capitan 10.11.6, and a Wemos D1 mini board and I'm getting these errors when trying to upload a basic sketch:

Code: Select allSketch uses 219,439 bytes (21%) of program storage space. Maximum is 1,044,464 bytes.
Global variables use 31,140 bytes (38%) of dynamic memory, leaving 50,780 bytes for local variables. Maximum is 81,920 bytes.
/Users/lean/Library/Arduino15/packages/esp8266/tools/esptool/0.4.8/esptool -vv -cd nodemcu -cb 115200 -cp /dev/cu.wchusbserial1410 -ca 0x00000 -cf /var/folders/yj/d596pq611j3g1xtsr0lxy0480000gn/T/build806b0833718d59be0092c896e1dce655.tmp/Blink.ino.bin
esptool v0.4.8 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
   setting board to nodemcu
   setting baudrate from 115200 to 115200
   setting port from /dev/tty.usbserial to /dev/cu.wchusbserial1410
   setting address from 0x00000000 to 0x00000000
   espcomm_upload_file
   espcomm_upload_mem
opening port /dev/cu.wchusbserial1410 at 115200
   tcgetattr
   tcsetattr
   serial open
opening bootloader
resetting board
trying to connect
   setting character timeout 0
   done
   setting character timeout 1
   done
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
trying to connect
   setting character timeout 0
   done
   setting character timeout 1
   done
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
trying to connect
   setting character timeout 0
   done
   setting character timeout 1
   done
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
resetting board
trying to connect
   setting character timeout 0
   done
   setting character timeout 1
   done
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
trying to connect
   setting character timeout 0
   done
   setting character timeout 1
   done
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
trying to connect
   setting character timeout 0
   done
   setting character timeout 1
   done
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
resetting board
trying to connect
   setting character timeout 0
   done
   setting character timeout 1
   done
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
trying to connect
   setting character timeout 0
   done
   setting character timeout 1
   done
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
trying to connect
   setting character timeout 0
   done
   setting character timeout 1
   done
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed


This is how my tools config looks like:
Image

When I click upload, I see the serial led in the board blinking for a few seconds, and then I have this error.

I'm new to this board, do I need to connect something? I have nothing connected to the D1 mini board, I have 2 new boards and trying with both I have the same Issue , I've also tried with differents USB cables.

Please help! Thanks!

Re: Problem Uploading sketch [error: espcomm_open failed]

PostPosted: Thu Oct 05, 2017 10:06 pm
by gdsports
You may have to try different USB serial drivers. The following is a link to the official wemos driver download site. If this one does not work, google for "wemos mac driver" or something similar.

Try different USB cables. Some USB cables provide power but not data wires.

https://wiki.wemos.cc/downloads