mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2025-01-08 15:25:33 +00:00
Merge pull request #118 from ferrous-systems/rm-nrf-recover
Rm nrf recover
This commit is contained in:
commit
07a3386119
3 changed files with 8 additions and 16 deletions
1
.github/workflows/rust.yml
vendored
1
.github/workflows/rust.yml
vendored
|
@ -46,6 +46,7 @@ jobs:
|
|||
|
||||
- name: install all dependencies
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt-get install libudev-dev libusb-1.0-0-dev
|
||||
rustup +stable target add thumbv7em-none-eabihf
|
||||
|
||||
|
|
|
@ -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
|
||||
```
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue