-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
espflash 1.3.0+ doesn't not work under WSL with usbipd #166
Comments
same here, wsl, espflash v1.4.1 minicom can see the board perfeclty
ps just downgraded to 1.2.0 and it works
|
I don't use Windows, so unfortunately I can't make any suggestions. It's possible this may be an issue with the serialport library, but again I have no way to verify. |
I am also seeing this same behavior. |
@JurajSadel whenever you get a chance would you be able to take a look at this please? |
I tested this out and I'm able to interact with I'm not sure but judging by my output the problem is that the port type is considered "unknown" rather than "usb". Adding a flag to allow Edit: |
Kind of, but not quite. I think the true reason for this is that Ubuntu's usbip database of USB hardware identifiers does not have this kind of device (which is true for all new devices until the drivers update anyway), so the serialport crate honestly describes this port as Unknown. The question is - how should we react on that. Theoretically it should be enough to just add our port data into
but for whatever reason it didn't work for me. The port still However this issue will end, the error message |
guys, for those who need to work with espflash on wsl NOW (me) I've created a really quick fix here https://github.com/andywswan/espflash that works like so:
Installation v1.5.0-dev
it is not a permanent solution to the problem though as it just gets port data from espflash.toml and ignores all the previous logic completely, it's just a temporary measure until the bug is fixed. actually I don't think it is a bag at all, I think the crate works as intended. it is a feature that silently protects you from unknown ports. the only bug here is an error message that port can not be found, that is not correct. it is found and then filtered out as "Non USB". |
I'm sorry for the delay, can you guys test #179 if it resolves issues with |
Works @JurajSadel |
As the title suggests, commits post 1.2.0 break compatibility with WSL and usbipd.
Connecting to the device over uart with the usual Python IDF utilities works fine.
Narrowing down the issue, it appears it started with commit 85c8eb8 .
The error shows as below:
However the device is definitely connected and is listed under
/dev/
, as well as works with the Python IDF utilities.espflash 1.4.1 works fine under a Linux host, and on Windows itself as expected.
The text was updated successfully, but these errors were encountered: