Add --erase-all to probe-run invocation

Newer models of the nrf52840 need this in order to flash.
This commit is contained in:
Johann Hemmann 2023-06-26 16:48:55 +02:00
parent 2a1379db5e
commit 5b589af24f
2 changed files with 2 additions and 2 deletions

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