Skip to content

Commit

Permalink
fix: Update probe-rs arguments for run-elfs subcommand (#1734)
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioGasquez authored Jun 28, 2024
1 parent 8cb921f commit 60b9d5c
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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{}",
Expand Down

0 comments on commit 60b9d5c

Please sign in to comment.