From 4a811d27e16196387706c73df2551d3c9ddfc110 Mon Sep 17 00:00:00 2001 From: Lotte Steenbrink Date: Wed, 20 Jan 2021 14:06:25 +0100 Subject: [PATCH] rm nrf-recover --- embedded-workshop-book/src/installation.md | 14 -------------- .../src/troubleshoot-cargo-flash.md | 9 +++++++-- 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/embedded-workshop-book/src/installation.md b/embedded-workshop-book/src/installation.md index a427739..629e990 100644 --- a/embedded-workshop-book/src/installation.md +++ b/embedded-workshop-book/src/installation.md @@ -299,17 +299,3 @@ nrfutil version 6.1.0 ``` *end of nrfutil python 3.9 workaround* - -### `nrf-recover` - -Some nRF52840 devices, specially older revisions, may have parts of their Flash memory locked. To unlock the memory use the [`nrf-recover`](https://crates.io/crates/nrf-recover) tool. - -This is only relevant to the nRF52840 Development Kit. First connect the nRF52840 DK to your PC using micro-USB J2 (as done before) then run the following commands: - -``` console -$ cargo install nrf-recover - -$ nrf-recover -y -Starting mass erase... -Mass erase completed, chip unlocked -``` diff --git a/embedded-workshop-book/src/troubleshoot-cargo-flash.md b/embedded-workshop-book/src/troubleshoot-cargo-flash.md index 1b2f44c..bf0888e 100644 --- a/embedded-workshop-book/src/troubleshoot-cargo-flash.md +++ b/embedded-workshop-book/src/troubleshoot-cargo-flash.md @@ -18,10 +18,15 @@ $ cargo flash --chip nRF52840_xxAA --bin hello Error failed to flash app: The execution of 'erase_sector' failed with code 1 ``` -flash write protection is enabled in the device. To disable it use the `nrf-recover` tool. Instructions can be found in the [`nrf-recover` section of the Installation Instructions]. +Ensure that you've installed version 0.10 or higher of `cargo-flash` and `cargo-embed` -[`nrf-recover` section of the Installation Instructions]: ./installation.md#nrf-recover +``` console +$ cargo flash --version +0.10.2 +$ cargo embed --version +0.10.2 +```` ## Linux permissions