Skip to content

Commit aa092da

Browse files
committed
Migrate from GDB to probe-run
1 parent 573a454 commit aa092da

File tree

3 files changed

+9
-39
lines changed

3 files changed

+9
-39
lines changed

.cargo/config

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,8 @@
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
]
246

257
[build]
26-
target = "thumbv7m-none-eabi"
8+
target = "thumbv7m-none-eabi"

.gdbinit

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

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ I2C driver for the SH1106 OLED display written in 100% Rust
1010

1111
## [Documentation](https://docs.rs/sh1106)
1212

13+
## [Examples]
14+
15+
This crate uses [`probe-run`](https://crates.io/crates/probe-run) to run the examples. Once set up,
16+
it should be as simple as `cargo run --example <example name> --release`. `--release` will be
17+
required for some examples to reduce FLASH usage.
18+
1319
From [`examples/text.rs`](examples/text.rs):
1420

1521
```rust

0 commit comments

Comments
 (0)