Compare commits

...

3 commits

Author SHA1 Message Date
Johann Hemmann f24b6aa2fb
Merge pull request #204 from ferrous-systems/erase-all
Add `--erase-all` to `probe-run` invocations
2023-06-28 10:04:55 +02:00
Johann Hemmann 9358dc6599 Fix CI 2023-06-26 16:54:33 +02:00
Johann Hemmann 5b589af24f Add --erase-all to probe-run invocation
Newer models of the nrf52840 need this in order to flash.
2023-06-26 16:48:55 +02:00
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",
]