Merge pull request #204 from ferrous-systems/erase-all

Add `--erase-all` to `probe-run` invocations
This commit is contained in:
Johann Hemmann 2023-06-28 10:04:55 +02:00 committed by GitHub
commit f24b6aa2fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 9 deletions

View file

@ -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

View file

@ -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",
]

View file

@ -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",
]