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

Unable to Connect with Debug Probe Through Remote USB Hub #1714

Open
yalkhayyatmke opened this issue Jul 31, 2024 · 0 comments
Open

Unable to Connect with Debug Probe Through Remote USB Hub #1714

yalkhayyatmke opened this issue Jul 31, 2024 · 0 comments

Comments

@yalkhayyatmke
Copy link

yalkhayyatmke commented Jul 31, 2024

I was running pyOCD on a virtual machine, with the debug probe connected to a port on a AnywhereUSB remote USB hub. The probe itself is detected correctly-It's a ST-LINK V3. When opening a session with ConnectHelper, the code eventually steps into flush_rx in pyocd\probe\stlink\usb.py. This is the fix I implemented in order to get it working:

image

Normally, it would get stuck in this while loop forever, never hitting an exception. I also noticed, the rx_buffer was normally an empty list, but in my case it was a list full of 0's. So, to exit the loop, I added a check to see if the rx_buffer only contained 0's.

To clarify, the device and probe connections were all fine. I was able to connect and flash with STMCubeProgrammer for example.

Let me know if you would like any more information.

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

1 participant