rm nrf-recover

This commit is contained in:
Lotte Steenbrink 2021-01-20 14:06:25 +01:00
parent 22f1e42587
commit 4a811d27e1
2 changed files with 7 additions and 16 deletions

View file

@ -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
```

View file

@ -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