From 5b589af24fd0e36debbca7b048cf526ee5ffca82 Mon Sep 17 00:00:00 2001 From: Johann Hemmann Date: Mon, 26 Jun 2023 16:48:55 +0200 Subject: [PATCH] Add `--erase-all` to `probe-run` invocation Newer models of the nrf52840 need this in order to flash. --- advanced/firmware/.cargo/config.toml | 2 +- beginner/apps/.cargo/config.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/advanced/firmware/.cargo/config.toml b/advanced/firmware/.cargo/config.toml index 4c4601e..cb69dd2 100644 --- a/advanced/firmware/.cargo/config.toml +++ b/advanced/firmware/.cargo/config.toml @@ -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", ] diff --git a/beginner/apps/.cargo/config.toml b/beginner/apps/.cargo/config.toml index abfd4b6..3b17a22 100644 --- a/beginner/apps/.cargo/config.toml +++ b/beginner/apps/.cargo/config.toml @@ -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", ]