igrr / esptool-ck

ESP8266 build/flash helper tool by Christian Klippel
GNU General Public License v2.0
360 stars 123 forks source link

Can not connect from WSL #77

Open horihiro opened 5 years ago

horihiro commented 5 years ago

I'm trying to use this useful tool from bash on WSL in order to write my program into ESP8266.

But the process stoped after trying to connect was displayed. Please see following result.

Isn't execution on WSL supported? Does anyone know about it?

$ ./esptool -vvv -cd nodemcu -cb 115200 -cp /dev/ttyS11 -ca 0x00000 -cf ${PATH_TO_BIN_FILE}
esptool v0.4.13 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
        setting board to nodemcu
        setting baudrate from 115200 to 115200
        setting port from /dev/ttyUSB0 to /dev/ttyS11
        setting address from 0x00000000 to 0x00000000
        espcomm_upload_file
        espcomm_upload_mem
opening port /dev/ttyS11 at 115200
        tcgetattr
        tcsetattr
        serial open
opening bootloader
resetting board
trying to connect

ESP8266 is connected via COM11, so I use /dev/ttyS11 on WSL.

Windows environment:

WSL environment:

$ uname -a
Linux horihiroxps13 4.4.0-17763-Microsoft #253-Microsoft Mon Dec 31 17:49:00 PST 2018 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.5 LTS"