Skip to content
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

pyocd 0.36.0 version in python 3.12.2 can't find stlink v2 probe #1682

Closed
3x00 opened this issue Mar 29, 2024 · 5 comments
Closed

pyocd 0.36.0 version in python 3.12.2 can't find stlink v2 probe #1682

3x00 opened this issue Mar 29, 2024 · 5 comments

Comments

@3x00
Copy link

3x00 commented Mar 29, 2024

I test pyocd 0.36.0 in pytho 3.9.6 is works, it can find my stlink-v2 probe
pyocd 0.35.0 in python 3.11.0 is works too
when I install pyocd on 3.12.2 which pyocd version is 0.36.0, use pyocd list return No available debug probes are connected
the step of install is same

@reed-dan
Copy link

reed-dan commented Apr 7, 2024

@3x00 do you have a generic stlink-v2 probe, and if so what mcu is on the probe?

@3x00
Copy link
Author

3x00 commented Apr 11, 2024

@3x00 do you have a generic stlink-v2 probe, and if so what mcu is on the probe?

I had tried daplink and jlink, they can works.
python is 3.12.2 and pyocd is 0.36.0

@elfmimi
Copy link

elfmimi commented Apr 14, 2024

This is an issue caused by libusb-package not providing the wheel for Python 3.12 .
If Python 3.12 is in use, pip will try to build libusb-1.0.dll .
For this build to complete successfully on the Windows platform,
VisualStudio must be properly installed on your local PC environment.
Otherwise pip will install libusb-package without libusb-1.0.dll .

The workaround is to manually get libusb-1.0.dll and place it where it should be.
https://github.com/libusb/libusb/releases/tag/v1.0.27
Put it to C:\Windows\System32\libusb-1.0.dll if you are not certain where to.

cf.
pyocd/libusb-package#16
pyocd/libusb-package#17

@3x00
Copy link
Author

3x00 commented Apr 14, 2024

well, python 3.12.3 is released, and I try it st-link is works now.

@3x00 3x00 closed this as completed Apr 14, 2024
@3x00
Copy link
Author

3x00 commented Apr 15, 2024

This is an issue caused by libusb-package not providing the wheel for Python 3.12 . If Python 3.12 is in use, pip will try to build libusb-1.0.dll . For this build to complete successfully on the Windows platform, VisualStudio must be properly installed on your local PC environment. Otherwise pip will install libusb-package without libusb-1.0.dll .

The workaround is to manually get libusb-1.0.dll and place it where it should be. https://github.com/libusb/libusb/releases/tag/v1.0.27 Put it to C:\Windows\System32\libusb-1.0.dll if you are not certain where to.

cf. pyocd/libusb-package#16 pyocd/libusb-package#17

you are right

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants