fix: Update probe-rs arguments for run-elfs subcommand (#1734)

This commit is contained in:
Sergio Gasquez Arcos 2024-06-28 15:42:30 +02:00 committed by GitHub
parent 8cb921f73b
commit 60b9d5c704
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -585,12 +585,30 @@ fn run_elfs(args: RunElfArgs) -> Result<()> {
log::info!("Running test '{}' for '{}'", elf_name, args.chip);
let command = Command::new("probe-rs")
let command = if args.chip == Chip::Esp32 {
Command::new("probe-rs")
.arg("run")
.arg("--chip")
.arg("esp32-3.3v")
.arg(elf_path)
.output()?
} else if args.chip == Chip::Esp32c2 {
Command::new("probe-rs")
.arg("run")
.arg("--chip")
.arg(args.chip.to_string())
.arg("--speed")
.arg("15000")
.arg(elf_path)
.output()?
} else {
Command::new("probe-rs")
.arg("run")
.arg("--chip")
.arg(args.chip.to_string())
.arg(elf_path)
.output()?;
.output()?
};
println!(
"{}\n{}",