mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2024-05-23 10:48:11 +00:00
Add --erase-all
to probe-run
invocation
Newer models of the nrf52840 need this in order to flash.
This commit is contained in:
parent
2a1379db5e
commit
5b589af24f
|
@ -7,7 +7,7 @@ rustflags = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[target.thumbv7em-none-eabihf]
|
[target.thumbv7em-none-eabihf]
|
||||||
runner = "probe-run --chip nRF52840_xxAA"
|
runner = "probe-run --chip nRF52840_xxAA --erase-all"
|
||||||
rustflags = [
|
rustflags = [
|
||||||
"-C", "link-arg=-Tlink.x",
|
"-C", "link-arg=-Tlink.x",
|
||||||
]
|
]
|
||||||
|
|
|
@ -9,7 +9,7 @@ rustflags = [
|
||||||
[target.thumbv7em-none-eabihf]
|
[target.thumbv7em-none-eabihf]
|
||||||
# set custom cargo runner to flash & run on embedded target when we call `cargo run`
|
# 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
|
# 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 = [
|
rustflags = [
|
||||||
"-C", "link-arg=-Tlink.x",
|
"-C", "link-arg=-Tlink.x",
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue