-
Notifications
You must be signed in to change notification settings - Fork 476
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
OSError with CMSIS-DAP v2 on Windows #684
Comments
Can reproduce with Python 3.7 + libusb 1.0.22 + pyocd-0.21 OS: Window 10 Pro 1809 (Build 17763.557) |
Yeah, unfortunately there seems to be a bug in pyusb in how it handles releasing objects in the finalizer. Good suggestion to recommend using libusb 1.0.21 instead. Were there any fixes in 1.0.22 that could cause problems by reverting to the earlier version? |
- In reference to pyocd#684.
Have you tried latest pyusb and latest libusb? I can no longer reproduce the issue in Windows 10, git pyusb and git libusb. |
pyusb/pyusb#227 |
@mcuee I haven't yet tried it, but I did notice just yesterday that pyusb/pyusb#227 has been merged. (Thanks for merging the fix!) It would be really helpful to have a new pyusb release. |
Thanks. Yes now we have a new maintainer for pyusb and we will work towards a new pyusb release soon. |
@mcuee Thanks very much for taking over maintainership of pyusb! |
@mcuee, with using latest pyusb from git, the problem seems to be fixed |
@flit Thanks. I am not really the maintainer myself, rather I am helping out on the supporting and testing side of pyusb, similar to my role in libusb, libusb-win32 and libusbk. Jonas Malaco is the current developer/maintainer of pyusb. |
@mcuee Well, either way, your help with these critical projects is greatly appreciated. 😄 |
Hi,
I am observing the following error with CMSIS-DAP v2 (WinUSB) devices either running DAPLink ver. 0254 or Cypress KitProg3:
The problem appears when running any command in pyOCD, however, commands itself do work. Looks like this is known issue with pyusb/libusb:
pyusb/pyusb#203
pyusb/pyusb#227
libusb/libusb#412
I can reproduce this on Windows only with Python3 + libusb 1.0.22. In order not to confuse user with this exception, I propose to update README with an recommendation to use libusb 1.0.21 under Windows until problem is fixed.
OS: Win10 Pro x64
Python: v3.7.3 x64
libusb: MinGW64 v1.0.22
The text was updated successfully, but these errors were encountered: