knurling-rs / probe-run

Run embedded programs just like native ones
Apache License 2.0
645 stars 75 forks source link

CMSIS_DAP is not recognised (fix available link to PR) #400

Open dvdsk opened 1 year ago

dvdsk commented 1 year ago

Describe the bug This cheap Cmsis Dap/Daplink from china results in Error: probe not found

To Reproduce Steps to reproduce the behavior: Run Probe run --chip <some chip> <some-path-to-an-elf>

Expected and observed behavior The probe should flash the elf

config.toml not relevant

Probe details You can get this information from probe-rs-cli. Your microcontroller must be connected to your PC / laptop when you run the command below.

Example:

$ probe-run --list-probes
[0]: CMSIS_DAP (VID: c251, PID: f001, Serial: 202108120001, CmsisDap)

Operating System: Linux

Cause dependency probe-rs recognizes Cmsis Dap devices by looking for the string "CMSIS-DAP". Since this device is called "CMSIS_DAP" with an underscore that check fails.

Fix Wait till upstream merges this PR that fixes the cause, then update to latest probe-rs.