Flashing firmware: accessing USB port from WSL environment

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
a-ha
Posts: 21
Joined: Sat Jun 27, 2020 10:42 pm

Flashing firmware: accessing USB port from WSL environment

Post by a-ha » Sun Jul 05, 2020 2:53 am

I have configured my WSL/Linux environment for building upython.
I can build the firmware successfully. Great job to upython dev team for supporting WSL env!

Currently I still need to go back to windows env to flash the firmware.
I am having issues with the /dev/ttyS3 which is supposed to be mapped to COM3 (the usb port to the device).
I think I have configured the right group and chmod for this tty, but still getting the following error.
If anyone has luck getting this to work. please let me know.
Thanks

The error follows:
--
(build-venv) hikari@glorious:/mnt/c/Users/purel/source/repos/espressif/esp-idf$ ./components/esptool_py/esptool/esptool.py --port /dev/ttyS3 erase_flash
esptool.py v2.8
Serial port /dev/ttyS3
Traceback (most recent call last):
File "/home/hikari/.espressif/python_env/idf4.0_py3.8_env/lib/python3.8/site-packages/serial/serialposix.py", line 323, in _reconfigure_port
orig_attr = termios.tcgetattr(self.fd)
termios.error: (5, 'Input/output error')

Post Reply