WSL Ubuntu & Silabs CP210x => COM Port Problem
Posted: Tue Jan 01, 2019 3:48 pm
Hi,
being new to the ESP-IDF and Linux I hope that my question is worth asking it here.
Searching the web I was not able to find a solution:
1.) In Windows 10 64x (1809) my ESP32 (HelTec ESP32) shows up as COM3 (Silabs CP210x_Universal_Windows_Driver)
unplugging the device: it disappears
In Device Manager->Silicon Labs CP... ->Right Click -> Properties -> Port Settings I set it to 115200 Baud
2.) In Ubuntu (Windows Subsystem for Linux) I execute:
sudo chmod 666 /dev/ttyS3
sudo usermod -a -G dialout $USER
3.) Menuconfig is configured ->Serial Flasher config -> (/dev/ttyS3) default port
Running make flash I get an error:
raise.serialutil.SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg)
serial.serialutil.SerialException: [Errno 5] could not open port /dev/ttyS3: [Errno 5] Input/Output error: '/dev/ttyS3'
____________________________________________________________
Now the strange thing that do not understand:
a.) I go into the registry and change the COM port to something else (e.q. 9)
b.) I adjust the port in Ubuntu and makeconfig to /dev/ttyS9
Now I can flash my ESP32
BUT: make monitor does not work:
Errno 5
could no open port
Input/Output error
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I followed several instructions to get things working, but have failed so far.
Any clue, any ideas?
Please help.
Thank you very much in advance and a happy new year to everyone!
Georg
being new to the ESP-IDF and Linux I hope that my question is worth asking it here.
Searching the web I was not able to find a solution:
1.) In Windows 10 64x (1809) my ESP32 (HelTec ESP32) shows up as COM3 (Silabs CP210x_Universal_Windows_Driver)
unplugging the device: it disappears
In Device Manager->Silicon Labs CP... ->Right Click -> Properties -> Port Settings I set it to 115200 Baud
2.) In Ubuntu (Windows Subsystem for Linux) I execute:
sudo chmod 666 /dev/ttyS3
sudo usermod -a -G dialout $USER
3.) Menuconfig is configured ->Serial Flasher config -> (/dev/ttyS3) default port
Running make flash I get an error:
raise.serialutil.SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg)
serial.serialutil.SerialException: [Errno 5] could not open port /dev/ttyS3: [Errno 5] Input/Output error: '/dev/ttyS3'
____________________________________________________________
Now the strange thing that do not understand:
a.) I go into the registry and change the COM port to something else (e.q. 9)
b.) I adjust the port in Ubuntu and makeconfig to /dev/ttyS9
Now I can flash my ESP32
BUT: make monitor does not work:
Errno 5
could no open port
Input/Output error
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I followed several instructions to get things working, but have failed so far.
Any clue, any ideas?
Please help.
Thank you very much in advance and a happy new year to everyone!
Georg