fix: Update probe-rs arguments for run-elfs subcommand (#1734)
This commit is contained in:
parent
8cb921f73b
commit
60b9d5c704
@ -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")
|
||||
.arg("run")
|
||||
.arg("--chip")
|
||||
.arg(args.chip.to_string())
|
||||
.arg(elf_path)
|
||||
.output()?;
|
||||
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()?
|
||||
};
|
||||
|
||||
println!(
|
||||
"{}\n{}",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user