Skip to content

Commit ac65801

Browse files
committed
Expanded documentation a bit and made probe-run the default runner
Signed-off-by: Daniel Egger <[email protected]>
1 parent f98013c commit ac65801

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.cargo/config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[target.thumbv6m-none-eabi]
2-
runner = 'arm-none-eabi-gdb'
2+
runner = 'probe-run --chip nRF51822_xxAA'
33
rustflags = [
44
"-C", "link-arg=-Tlink.x",
55
#"--emit=asm",

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,35 @@
1010

1111
_microbit_ contains everything required to get started with the use of Rust to create firmwares for the fabulous [BBC micro:bit][] microcontroller board. This little board has everything and a kitchen sink built-in, even a capable debugging interface, so all that one needs to get going with programming this device is:
1212

13-
* A BBC micro:bit board
13+
* A BBC micro:bit board (at the moment v1 only)
1414
* A computer (macOS and Linux work perfectly, [Windows tested as well](http://flames-of-code.netlify.com/blog/rust-microbit-windows/))
1515
* A bit of open source software
1616

1717
Some very preliminary examples of using this crate can be found [here in this repo][examples] or [here on my blog][myblog].
1818

1919
A guide to embedded development with Rust on the _microbit_ using this crate can be found in the [MicroRust book][microrust].
2020

21+
The [BBC micro:bit][] and this crate is compatible with the fantastic tooling
22+
provided by the [knurling] project. If you haven't done so already, installing
23+
`probe-run` and playing around with the examples is highly recommended:
24+
```bash
25+
# cargo install probe-run
26+
# cargo run --release --example led_blocking
27+
Compiling microbit v0.8.0
28+
Finished release [optimized + debuginfo] target(s) in 15.39s
29+
Running `probe-run --chip nRF51822_xxAA target/thumbv6m-none-eabi/release/examples/led_blocking`
30+
(HOST) INFO flashing program (1.95 KiB)
31+
(HOST) INFO success!
32+
RTT logs not available; blocking until the device halts..
33+
```
34+
2135
[BBC micro:bit]: https://microbit.org
2236
[cortex-m]:(https://github.com/japaric/cortex-m)
2337
[cortex-m-rt]:(https://github.com/japaric/cortex-m-rt)
2438
[examples]: https://github.com/therealprof/microbit/tree/master/examples
2539
[myblog]: https://www.eggers-club.de/blog/2018/05/31/rust-on-the-microbit-101-part-1
2640
[microrust]: https://droogmic.github.io/microrust/
41+
[knurling]: https://knurling.ferrous-systems.com/
2742
2843
## License
2944

0 commit comments

Comments
 (0)