-
Notifications
You must be signed in to change notification settings - Fork 549
Closed
Description
I'm getting "No supported probe was found" error on Micorobit V2. I run the following commands:
Also, after connecting the Microbit, I've got 529 error on LEDs
PS E:\Rust\sample_code\discovery\microbit\src\05-led-roulette> rustup target add thumbv7em-none-eabihf
info: component 'rust-std' for target 'thumbv7em-none-eabihf' is up to date
PS E:\Rust\sample_code\discovery\microbit\src\05-led-roulette> cargo build --features v2 --target thumbv7em-none-eabihf
Finished dev [unoptimized + debuginfo] target(s) in 0.37s
PS E:\Rust\sample_code\discovery\microbit\src\05-led-roulette> cargo readobj --features v2 --target thumbv7em-none-eabihf --bin led-roulette -- --file-headers
Finished dev [unoptimized + debuginfo] target(s) in 0.07s
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: ARM
Version: 0x1
Entry point address: 0x101
Start of program headers: 52 (bytes into file)
Start of section headers: 958740 (bytes into file)
Flags: 0x5000400
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 4
Size of section headers: 40 (bytes)
Number of section headers: 24
Section header string table index: 22
PS E:\Rust\sample_code\discovery\microbit\src\05-led-roulette> cargo embed --features v2 --target thumbv7em-none-eabihf
Finished dev [unoptimized + debuginfo] target(s) in 0.06s
Config default
Target E:\Rust\sample_code\discovery\microbit\target\thumbv7em-none-eabihf\debug\led-roulette
Error No supported probe was found
It looks like this error is thrown in cargo-embeded/main.rs (section below)
// Only automatically select a probe if there is only
// a single probe detected.
let list = Probe::list_all();
if list.len() > 1 {
return Err(anyhow!("The following devices were found:\n \
{} \
\
Use '--probe VID:PID'\n \
\
You can also set the [default.probe] config attribute \
(in your Embed.toml) to select which probe to use. \
For usage examples see https://github.com/probe-rs/cargo-embed/blob/master/src/config/default.toml .",
list.iter().enumerate().map(|(num, link)| format!("[{}]: {:?}\n", num, link)).collect::<String>()));
}
Probe::open(
list.first()
.map(|info| {
METADATA.lock().unwrap().probe = Some(format!("{:?}", info.probe_type));
info
})
.ok_or_else(|| anyhow!("No supported probe was found"))?,
)?
Metadata
Metadata
Assignees
Labels
No labels