respond to comments

This commit is contained in:
Lotte Steenbrink 2021-01-22 15:15:11 +01:00
parent 9f3126c594
commit 19af229d0b
5 changed files with 14 additions and 9 deletions

View file

@ -59,6 +59,7 @@ jobs:
- name: build and fmt beginner/apps
working-directory: ./beginner/apps
run: |
cargo install flip-link
cargo build --verbose
cargo fmt --all -- --check

View file

@ -25,11 +25,11 @@ usb2 = { git = "https://github.com/japaric/usb2" }
# optimize code in both profiles
[profile.dev]
codegen-units = 1
debug = 2
debug = 1
debug-assertions = true # !
incremental = false
lto = "fat"
opt-level = 1 # !
opt-level = 'z' # !
overflow-checks = false
[profile.release]

View file

@ -25,6 +25,5 @@ fn spam() {
log::info!("address of current `use_stack`: {:?}", &use_stack as *const u32);
log::info!("entering next recursive step");
spam(); // infinite recursion
}

View file

@ -1,3 +1,10 @@
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
# (..)
rustflags = [
"-C", "linker=flip-link", # adds stack overflow protection
# (..)
]
[target.thumbv7em-none-eabihf]
runner = "probe-run --chip nRF52840_xxAA"
rustflags = [

View file

@ -143,6 +143,10 @@ Installed package `cargo-binutils v0.3.3` (..)
$ cargo install probe-run
(..)
Installed package `probe-run v0.1.8` (..)
$ cargo install flip-link
(..)
Installed package `flip-link v0.1.2` (..)
```
### Workshop specific tools
@ -176,12 +180,6 @@ Leave the processes running in the background.
#### Advanced workshop
```console
$ cargo install flip-link
(..)
Installed package `flip-link v0.1.2` (..)
```
Change to the `tools` folder and run these commands:
```console