mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2025-02-13 16:05:13 +00:00
respond to comments
This commit is contained in:
parent
9f3126c594
commit
19af229d0b
5 changed files with 14 additions and 9 deletions
1
.github/workflows/rust.yml
vendored
1
.github/workflows/rust.yml
vendored
|
@ -59,6 +59,7 @@ jobs:
|
||||||
- name: build and fmt beginner/apps
|
- name: build and fmt beginner/apps
|
||||||
working-directory: ./beginner/apps
|
working-directory: ./beginner/apps
|
||||||
run: |
|
run: |
|
||||||
|
cargo install flip-link
|
||||||
cargo build --verbose
|
cargo build --verbose
|
||||||
cargo fmt --all -- --check
|
cargo fmt --all -- --check
|
||||||
|
|
||||||
|
|
|
@ -25,11 +25,11 @@ usb2 = { git = "https://github.com/japaric/usb2" }
|
||||||
# optimize code in both profiles
|
# optimize code in both profiles
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
debug = 2
|
debug = 1
|
||||||
debug-assertions = true # !
|
debug-assertions = true # !
|
||||||
incremental = false
|
incremental = false
|
||||||
lto = "fat"
|
lto = "fat"
|
||||||
opt-level = 1 # !
|
opt-level = 'z' # !
|
||||||
overflow-checks = false
|
overflow-checks = false
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
|
|
|
@ -25,6 +25,5 @@ fn spam() {
|
||||||
|
|
||||||
log::info!("address of current `use_stack`: {:?}", &use_stack as *const u32);
|
log::info!("address of current `use_stack`: {:?}", &use_stack as *const u32);
|
||||||
|
|
||||||
log::info!("entering next recursive step");
|
|
||||||
spam(); // infinite recursion
|
spam(); // infinite recursion
|
||||||
}
|
}
|
||||||
|
|
|
@ -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]
|
[target.thumbv7em-none-eabihf]
|
||||||
runner = "probe-run --chip nRF52840_xxAA"
|
runner = "probe-run --chip nRF52840_xxAA"
|
||||||
rustflags = [
|
rustflags = [
|
||||||
|
|
|
@ -143,6 +143,10 @@ Installed package `cargo-binutils v0.3.3` (..)
|
||||||
$ cargo install probe-run
|
$ cargo install probe-run
|
||||||
(..)
|
(..)
|
||||||
Installed package `probe-run v0.1.8` (..)
|
Installed package `probe-run v0.1.8` (..)
|
||||||
|
|
||||||
|
$ cargo install flip-link
|
||||||
|
(..)
|
||||||
|
Installed package `flip-link v0.1.2` (..)
|
||||||
```
|
```
|
||||||
|
|
||||||
### Workshop specific tools
|
### Workshop specific tools
|
||||||
|
@ -176,12 +180,6 @@ Leave the processes running in the background.
|
||||||
|
|
||||||
#### Advanced workshop
|
#### Advanced workshop
|
||||||
|
|
||||||
```console
|
|
||||||
$ cargo install flip-link
|
|
||||||
(..)
|
|
||||||
Installed package `flip-link v0.1.2` (..)
|
|
||||||
```
|
|
||||||
|
|
||||||
Change to the `tools` folder and run these commands:
|
Change to the `tools` folder and run these commands:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
|
|
Loading…
Reference in a new issue