diff --git a/embedded-workshop-book/src/installation.md b/embedded-workshop-book/src/installation.md index 54939e8..2d34235 100644 --- a/embedded-workshop-book/src/installation.md +++ b/embedded-workshop-book/src/installation.md @@ -43,6 +43,42 @@ $ rustup +stable component add llvm-tools-preview $ cargo install cargo-binutils ``` +## `nrf-recover` + +Some nRF52840 devices, specially older revisions, may have parts of their Flash memory locked. To unlock the memory use the `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 +``` + +## Cargo subcommands + +Install version v0.8.0 of the `cargo-flash` and `cargo-embed` subcommands, as well as the `cargo-binutils` set of subcommands and the `cargo-bloat` subcommand using the following Cargo commands: + +``` console +$ cargo install cargo-flash --version 0.8.0 -f +(..) +Installed package `cargo-flash v0.8.0` (..) + +$ cargo install cargo-embed --version 0.8.0 -f +(..) +Installed package `cargo-embed v0.8.0` (..) + +$ cargo install cargo-binutils +(..) +Installed package `cargo-binutils v0.3.0` (..) + +$ cargo install cargo-bloat +(..) +Installed package `cargo-bloat v0.9.3` (..) +``` + ## Python **Windows**: Go to https://www.python.org/downloads/ and run the Python *3* installer @@ -156,39 +192,3 @@ In Zadig's graphical user interface, 4. Select 'WinUSB' as the target driver (right side) 5. Click "Install WinUSB driver". The process may take a few minutes to complete. - -## `nrf-recover` - -Some nRF52840 devices, specially older revisions, may have parts of their Flash memory locked. To unlock the memory use the `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 -``` - -## Cargo subcommands - -Install version v0.8.0 of the `cargo-flash` and `cargo-embed` subcommands, as well as the `cargo-binutils` set of subcommands and the `cargo-bloat` subcommand using the following Cargo commands: - -``` console -$ cargo install cargo-flash --version 0.8.0 -f -(..) -Installed package `cargo-flash v0.8.0` (..) - -$ cargo install cargo-embed --version 0.8.0 -f -(..) -Installed package `cargo-embed v0.8.0` (..) - -$ cargo install cargo-binutils -(..) -Installed package `cargo-binutils v0.3.0` (..) - -$ cargo install cargo-bloat -(..) -Installed package `cargo-bloat v0.9.3` (..) -``` \ No newline at end of file