mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2025-01-02 12:28:48 +00:00
Merge pull request #204 from ferrous-systems/erase-all
Add `--erase-all` to `probe-run` invocations
This commit is contained in:
commit
f24b6aa2fb
3 changed files with 4 additions and 9 deletions
9
.github/workflows/rust.yml
vendored
9
.github/workflows/rust.yml
vendored
|
@ -18,13 +18,8 @@ jobs:
|
|||
- name: check out repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: set up rust toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
|
||||
- name: set up actions.rs
|
||||
uses: actions-rs/cargo@v1
|
||||
- name: Use the latest stable release
|
||||
run: rustup update stable && rustup default stable
|
||||
|
||||
- name: cache rust dependencies
|
||||
uses: actions/cache@v2
|
||||
|
|
|
@ -7,7 +7,7 @@ rustflags = [
|
|||
]
|
||||
|
||||
[target.thumbv7em-none-eabihf]
|
||||
runner = "probe-run --chip nRF52840_xxAA"
|
||||
runner = "probe-run --chip nRF52840_xxAA --erase-all"
|
||||
rustflags = [
|
||||
"-C", "link-arg=-Tlink.x",
|
||||
]
|
||||
|
|
|
@ -9,7 +9,7 @@ rustflags = [
|
|||
[target.thumbv7em-none-eabihf]
|
||||
# set custom cargo runner to flash & run on embedded target when we call `cargo run`
|
||||
# for more information, check out https://github.com/knurling-rs/probe-run
|
||||
runner = "probe-run --chip nRF52840_xxAA"
|
||||
runner = "probe-run --chip nRF52840_xxAA --erase-all"
|
||||
rustflags = [
|
||||
"-C", "link-arg=-Tlink.x",
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue