Comments (5)
This would be detected by an error returned by claim_interface
. probe-rs is currently silently ignoring errors from that call, but by that point you've decided that it's the interface you want, so you should probably display a message if claiming it fails instead of saying "Probe was not found".
probe-rs/probe-rs/src/probe/cmsisdap/tools.rs
Lines 204 to 216 in 6b60cdb
kevinmehall/nusb#41 makes the error from claim_interface
more specific in this case. ErrorKind::Unsupported
roughly maps to "You should use Zadig to bind WinUSB".
Claiming an interface would also fail if another process has it claimed -- ErrorKind::ResourceBusy
on Linux and macOS, currently ErrorKind::PermissionDenied
on Windows, not sure we can tell it apart from a permissions issue.
from probe-rs.
Solution could be to not use a probe requiring Zadig. Zadig has TMO too many compatibility issues.
Question: does the most recent picoprobe still require Zadig? If yes, I'ld suggest https://github.com/rgrr/yapicoprobe ;-)
from probe-rs.
the upstream picoprobe includes the winusb descriptors so it works out of the box on Windows without having to use zadig.
In this particular case, the person who ran into this issue had used zadig anyway for some reason (probably troubleshoot another issue), replacing the default (correct) winusb drivers with something else.
from probe-rs.
Thanks for clarification.
I saw the keyword "Zadig" which creates immediate rash on my side. Now that I have read the last sentence of the description I understand the issue. I'ld write some kind of configuration FAQ. But perhaps not a bad idea to implement this FAQ in code if the problem is clearly detectable.
from probe-rs.
exactly. this issue is about "probe-rs says probe not found
, but it should say probe found but you installed the wrong driver with zadig, please use zadig again to install winusb
"
from probe-rs.
Related Issues (20)
- cargo embed rtt BinaryLE channel does not work properly HOT 1
- JTAG-lock-pick Tiny 2 support HOT 2
- probe-rs run leaves RTT in blocking mode when disconnecting HOT 2
- Better recovery
- Design a lower level interface HOT 2
- Multicore support HOT 2
- Introduce a tier system for architecture support
- Make debug sequences a bit more configurable by making it possible to set them externally
- Automatic chip detection HOT 2
- Define resets and their expected behavior better
- CI tests
- Better documentation
- Make VSCode install probe-rs if it is not present HOT 3
- Clean out debugger code HOT 4
- Make the debugger a separate project that can debug x86
- Stable scripting API in the CLI
- Xtensa: `wait_for_core_halted` sets INTLEVEL to 1
- [feature request] Add pre-verify before flashing
- Fail to compile via cargo `error: failed to run custom build command for libudev-sys v0.1.4` HOT 2
- Typo in Stlink `swj_sequence` function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from probe-rs.