-
Notifications
You must be signed in to change notification settings - Fork 15
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
rusty-probe enumerates two USB devices #20
Comments
cc @korken89 |
Additional information, this is the output of $ probe-rs list
The following debug probes were found:
[0]: Rusty Probe with CMSIS-DAP v1/v2 Support (VID: 1209, PID: 4853, Serial: DC645020138A1122EF4014, CmsisDap)
[1]: HS-Probe CMSIS-DAP v1 Interface (VID: 1209, PID: 4853, Serial: dc645020138a1122ef4014, CmsisDap) |
A similar thing has been mentioned on matrix a while ago: https://matrix.to/#/!vhKMWjizPZBgKeknOo:matrix.org/$9MlglhlFheOzD1NGEnnf1jRZrPQokowR8M-SNUTeMJY?via=matrix.org&via=chat.berline.rs&via=tchncs.de Dirbaio diagnosed it as probably caused by kevinmehall/nusb#22 |
That's odd, how do you get this to happen? I was not able to reproduce on any of my computers, but it seems like two interfaces have different descriptions. |
Nothing special to be honest. |
Ah sorry, I did not know you ran on Windows. |
I can confirm that this also happens on windows for me. |
I've checked now and we only register one device, however it has multiple interfaces. Not sure why that would be a problem. To me it seems like an |
Thank you for looking into it @korken89 . $ probe-rs.exe list
The following debug probes were found:
[0]: Rusty Probe with CMSIS-DAP v1/v2 Support (VID: 1209, PID: 4853, Serial: DC645020138A1122EF4014, CmsisDap)
[1]: AK-CMSIS-DAP (VID: 10c4, PID: 8b54, Serial: AKA5130B, CmsisDap)
[2]: HS-Probe CMSIS-DAP v1 Interface (VID: 1209, PID: 4853, Serial: dc645020138a1122ef4014, CmsisDap) |
Ah no, I see the confusion, but the difference is that the probe is one device with two interfaces. It exposes a CMSIS-DAP v1 and v2 at the same time so both old and new tooling can use it. The issue though is that probe-rs, AFAIK, hides redundant interfaces of probes and only shows the v2. And in here lies the issue because on Windows, for some reason, the interfaces don't get the same serial ID. Hence why it can be fixed in probe-rs by doing comparison that is not case sensitive, or in nusb to fix the serial ID output. In your case though I would just remove the V1 interface, it would be the easiest solution. Maybe it's worth adding a feature gate to enable the dual interface that's enabled by default? It would make it easier. |
They actuall have the same serial, but a different case.
With this you mean "customizing" the FW of the rusty probe, right? |
Correct. It's a small change to perform. |
At least on windows (I did not test other OSs yet), the rusty-probe enumerates as two devices with the same serial number.
For this reason,
probe-rs
requires additional parameters--probe 1209:4853
even though I actually have only one probe connected.When developing and working via command-line it's quite annoying.
Is there a way to avoid this double-enumeration?
Why it's there in the first place? I don't see for me a way to select "the other" probe, since PID and VID are the same...
The text was updated successfully, but these errors were encountered: