-
Notifications
You must be signed in to change notification settings - Fork 21
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
ST-Link not detected #18
Comments
what version do you use? is it latest? |
Yes, the latest, I downloaded today. |
Hi Pavel, |
these devices are not supported, what st-link do you have ? and what version is there ? |
Hi Pavel,
yes, it’s true, these are not ST-Link. Meanwhile I know a little more and can say that the problem is not a PySWD issue but a PyUSB one. It is PyUSB that does not find the devices.
I will try from a Raspi and see if that works.
Thanks for your help
Martin
|
Try to install drivers for ST-link, this will make access to these drivers from libusb (hope) |
Hi Pavel, Martin |
I have had also used it on windows. drivers for ST-LINK add (enable) access for this USB device (it will install only .inf file) |
Hi Pavel, |
I don;t have windows at home, so I can't test this, but if I remember, the process was to install:
|
Hi Pavel, print (STLink) print (STLink.get_version ().str)
All three the same on windows and Raspberry Pi so I think it must be somewhere in the PySWD code. Can you help please, it seems success is getting closer... Thanks a lot Martin |
I think I should give you some details because that might help you further investigate in detail: Thanks for any help |
okay, |
yes I looked at these lines before and my STlink is 0x483 and 0x374F, so it is in your list. |
please provide me debug info with parameter |
Ah, now I took a closer look, my sources are different although pip-installed just 4 weeks back |
step by step... |
More details: |
just a though, You can try updating the STLINK fw. |
Hi Pavel,
I just installed swd and wrote a small program to start with. But it does not find my ST-Link V3 nor a STM32-Nucleo board. I found issue #15 which looked for all devices and copied that to my program, so I hav this now:
it produces this output:
With the upper dev = ... line nothing is found
I changed idProduct to 0x374B (instead of 0x374F as in issue #15), because I found this value in Windows device manager.
I'm running Python 3.10 under Win 10
(also swd.Swd () does not accept a keyword argument 'logger': error message is :TypeError: Swd.init() got an unexpected keyword argument 'logger')
Thanks for any help
Martin
The text was updated successfully, but these errors were encountered: