Skip to content

Commit 0d169de

Browse files
authored
probe-run -> probe-rs (#369)
1 parent 25b9de3 commit 0d169de

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

.cargo/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
2-
runner = "probe-run --chip STM32WLE5JCIx --connect-under-reset"
2+
runner = "probe-rs run --chip STM32WLE5JCIx --connect-under-reset"
33
rustflags = [
44
"-C", "link-arg=-Tlink.x",
55
"-C", "link-arg=-Tdefmt.x",

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ jobs:
118118
timeout-minutes: 5
119119
run: |
120120
python3 testsuite/runall.py --elf-dir bins \
121-
002900205553500A20393256 \
122-
0034001A5553500B20393256
121+
0483:374e:002900205553500A20393256 \
122+
0483:374e:0034001A5553500B20393256
123123
124124
test:
125125
name: Unit Tests

testsuite/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ These tests will run automatically as part of CI for every pull-request.
1010
## Quickstart
1111

1212
* `rustup target add --toolchain stable thumbv7em-none-eabi` ([rustup])
13-
* `cargo install probe-run` ([probe-run])
14-
* ⚠️ You must use version >=0.3.1 to avoid bugs with the STM32WL ⚠️
13+
* `cargo install probe-rs --features cli` ([probe-rs])
1514
* Linux users: Add udev rules
1615

1716
```text
@@ -28,7 +27,7 @@ SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374e", MODE="0666"
2827
```console
2928
$ DEFMT_LOG=info cargo test -p testsuite --target thumbv7em-none-eabi --bin pka
3029
Finished dev [optimized + debuginfo] target(s) in 0.01s
31-
Running `probe-run --chip STM32WLE5JCIx --connect-under-reset target/thumbv7em-none-eabi/debug/pka`
30+
Running `probe-rs run --chip STM32WLE5JCIx --connect-under-reset target/thumbv7em-none-eabi/debug/pka`
3231
(HOST) INFO flashing program (17.31 KiB)
3332
(HOST) INFO success!
3433
────────────────────────────────────────────────────────────────────────────────
@@ -68,7 +67,7 @@ Assuming both boards are connected to the same system you will have to pass a
6867
specific probe to each.
6968

7069
```console
71-
$ probe-run --list-probes
70+
$ probe-rs list
7271
The following devices were found:
7372
[0]: STLink V3 (VID: 0483, PID: 374e, Serial: 001D00145553500A20393256, STLink)
7473
[1]: STLink V3 (VID: 0483, PID: 374e, Serial: 001600345553500A20393256, STLink)
@@ -77,5 +76,5 @@ $ DEFMT_LOG=info cargo test -p testsuite --target thumbv7em-none-eabi --bin subg
7776
```
7877

7978
[defmt-test]: https://crates.io/crates/defmt-test
80-
[probe-run]: https://github.com/knurling-rs/probe-run
79+
[probe-rs]: https://github.com/probe-rs/probe-rs
8180
[rustup]: https://rustup.rs/

testsuite/runall.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ async def probe_run(elf_path: str, probe: str, log_prefix: str) -> TestResult:
7777
print(f"[{log_prefix}] Running {elf_path}")
7878
start = time.monotonic()
7979
proc = await asyncio.create_subprocess_exec(
80-
"probe-run",
80+
"probe-rs",
81+
"run",
8182
"--chip",
8283
"STM32WLE5JCIx",
8384
"--connect-under-reset",

testsuite/src/rcc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ impl SysClkSrc {
5050

5151
const LPRUN_RANGES: [LprunRange; 4] = [
5252
// STLink drops the connection when switching to 100k
53-
// with the default JTAG clock frequency set by probe-run
53+
// with the default JTAG clock frequency set by probe-rs
5454
// LprunRange::Range100k,
5555
LprunRange::Range200k,
5656
LprunRange::Range400k,
@@ -63,7 +63,7 @@ const CLKS: [SysClkSrc; 14] = [
6363
SysClkSrc::Hse(Vos::V1_0),
6464
SysClkSrc::Hse(Vos::V1_2),
6565
// STLink drops the connection when switching to 100k
66-
// with the default JTAG clock frequency set by probe-run
66+
// with the default JTAG clock frequency set by probe-rs
6767
// SysClkSrc::Msi(MsiRange::Range100k),
6868
SysClkSrc::Msi(MsiRange::Range200k),
6969
SysClkSrc::Msi(MsiRange::Range400k),

0 commit comments

Comments
 (0)