Skip to content

Commit 91023ff

Browse files
committed
Use target-gen as a runner
1 parent 8da6c29 commit 91023ff

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.cargo/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ rustflags = [
1717
"-C",
1818
"force-frame-pointers=no",
1919
]
20+
runner = "target-gen run"
2021

2122
[build]
2223
target = "{{target-arch}}"

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,15 @@ cargo generate gh:probe-rs/flash-algorithm-template --name=algorithm \
3535

3636
to generate a new project from the template.
3737

38-
## Building the algorithm
39-
40-
Building requires nightly Rust.
41-
42-
Just run `target-gen export`. It spits out the flash algo in the probe-rs YAML format.
43-
4438
## Developing the algorithm
4539

4640
Building requires nightly Rust.
4741

48-
Just run `target-gen test`. It spits out the flash algo in the probe-rs YAML format and downloads it onto a target and makes a test run.
42+
Just run `cargo run`. It spits out the flash algo in the probe-rs YAML format and downloads it onto a target and makes a test run.
4943
You will also be able to see RTT messages.
5044

45+
You can find the generated YAML in `target/definition.yaml`.
46+
5147
# License
5248

5349
This thingy is licensed under either of

0 commit comments

Comments
 (0)