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

Add pyOCD linux device rules #1421

Open
kammce opened this issue Dec 31, 2020 · 2 comments
Open

Add pyOCD linux device rules #1421

kammce opened this issue Dec 31, 2020 · 2 comments
Labels
Bug Something isn't working Build Issue or feature in code compilation system

Comments

@kammce
Copy link
Member

kammce commented Dec 31, 2020

Bug Report

Describe the bug

On many systems, specifically Windows host systems with a Ubuntu or other Linux VM, the stlink v2's do not seem to work. Even with udev rules they seem to fail. But the pyOCD rules seems to make this work.

https://github.com/pyocd/pyOCD/tree/master/udev

To Reproduce

  1. On a windows 10 machine
  2. Install SJSU-Dev2
  3. Using an stlinkv2 with any microcontroller attempt to flash
  4. Should fail with LIBUSB_ERROR

Expected behavior

Should debug or program device

Screenshots

None at the moment

Setup Information

  • Host OS: WIndows 10
  • Platform: any
  • Browser: n/a
  • Commit hash: Any/ N/A

Additional context

Add any other context about the problem here.

@kammce kammce added Bug Something isn't working Build Issue or feature in code compilation system labels Dec 31, 2020
@manasabhyankar
Copy link

If you use Zadig to install LibUSB, this problem goes away: https://zadig.akeo.ie/. I initially had this problem with my STLink V2 as well and this executable solved it. Essentially, it installs WinUSB, libusb-win32/libusb0.sys or libusbK (as quoted from the site) and makes things work.

@kammce
Copy link
Member Author

kammce commented Jan 27, 2021

Oh cool. We should look at the license for this program and see if we can just throw this into the tools/ directory for Windows Users to run on their machines if they see issues with flashing and jtag flashing.

If the license works out, could you make a PR adding this and a note in the documentation to help windows users out with flashing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Build Issue or feature in code compilation system
Projects
None yet
Development

No branches or pull requests

2 participants