Skip to content

Commit 15e47c1

Browse files
authored
Switch away from GDB to probe-run (#159)
1 parent 581ad3f commit 15e47c1

File tree

4 files changed

+5
-39
lines changed

4 files changed

+5
-39
lines changed

.cargo/config

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
1-
[target.thumbv6m-none-eabi]
2-
runner = 'gdb-multiarch'
3-
rustflags = [
4-
"-C", "link-arg=-Tlink.x",
5-
]
6-
7-
[target.thumbv7m-none-eabi]
8-
runner = 'gdb-multiarch'
9-
rustflags = [
10-
"-C", "link-arg=-Tlink.x",
11-
]
12-
13-
[target.thumbv7em-none-eabi]
14-
runner = 'gdb-multiarch'
15-
rustflags = [
16-
"-C", "link-arg=-Tlink.x",
17-
]
18-
19-
[target.thumbv7em-none-eabihf]
20-
runner = 'gdb-multiarch'
1+
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
2+
runner = "probe-run --chip STM32F103C8"
213
rustflags = [
224
"-C", "link-arg=-Tlink.x",
235
]

.gdbinit

Lines changed: 0 additions & 18 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
.gdb_history
21
/target/
32
**/*.rs.bk
43
Cargo.lock

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ Please consider [becoming a sponsor](https://github.com/sponsors/jamwaffles/) so
1616

1717
## [Examples](examples)
1818

19+
This crate uses [`probe-run`](https://crates.io/crates/probe-run) to run the examples. Once set up,
20+
it should be as simple as `cargo run --example <example name> --release`.
21+
1922
From [`examples/image_i2c.rs`](examples/image_i2c.rs):
2023

2124
```rust

0 commit comments

Comments
 (0)