Skip to content

Commit 820f8ca

Browse files
committed
Move away from GDB to probe-run
1 parent b3ee458 commit 820f8ca

File tree

9 files changed

+11
-45
lines changed

9 files changed

+11
-45
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ You can also export images directly from The GIMP by saving as `.bmp` and choosi
2525

2626
## [Examples](examples)
2727

28+
This crate uses [`probe-run`](https://crates.io/crates/probe-run) to run the examples. Once set up, it should be as simple as `cargo run --example <example name> --release`. `--release` will be required for some examples to reduce FLASH usage.
29+
2830
Load a BMP image of the Rust logo and display it in the center of the display. From
2931
[`examples/bmp.rs`](examples/bmp.rs):
3032

examples/bmp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
//! PB1 -> D/C
1818
//! ```
1919
//!
20-
//! Run on a Blue Pill with `cargo run --example image`.
20+
//! Run on a Blue Pill with `cargo run --release --example image`.
2121
2222
#![no_std]
2323
#![no_main]

examples/graphics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
//! PB1 -> D/C
1616
//! ```
1717
//!
18-
//! Run on a Blue Pill with `cargo run --example graphics`.
18+
//! Run on a Blue Pill with `cargo run --release --example graphics`.
1919
2020
#![no_std]
2121
#![no_main]

examples/image.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
//! PB1 -> D/C
2121
//! ```
2222
//!
23-
//! Run on a Blue Pill with `cargo run --example image`.
23+
//! Run on a Blue Pill with `cargo run --release --example image`.
2424
2525
#![no_std]
2626
#![no_main]

examples/pixelsquare.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
//! PB1 -> D/C
1717
//! ```
1818
//!
19-
//! Run on a Blue Pill with `cargo run --example pixelsquare`.
19+
//! Run on a Blue Pill with `cargo run --release --example pixelsquare`.
2020
2121
#![no_std]
2222
#![no_main]

examples/rotation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
//! PB1 -> D/C
2121
//! ```
2222
//!
23-
//! Run on a Blue Pill with `cargo run --example rotation`.
23+
//! Run on a Blue Pill with `cargo run --release --example rotation`.
2424
2525
#![no_std]
2626
#![no_main]

examples/text.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
//! PB1 -> D/C
1616
//! ```
1717
//!
18-
//! Run on a Blue Pill with `cargo run --example text`.
18+
//! Run on a Blue Pill with `cargo run --release --example text`.
1919
2020
#![no_std]
2121
#![no_main]

0 commit comments

Comments
 (0)