aboutsummaryrefslogtreecommitdiff
path: root/examples/boot/application/nrf/README.md
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-06-27 12:46:19 +0000
committerGitHub <[email protected]>2022-06-27 12:46:19 +0000
commitc7703ba17c5da3d294544c3a4f451bb7bd04ccfb (patch)
tree9136ffa9f1291f38d399176c038bbec931912f32 /examples/boot/application/nrf/README.md
parent42bc510effae528e7080ddb6bb8465af1bea6856 (diff)
parentf1f90b17b5c1c5cb56b6ac7722b5ef91b6cc3f2d (diff)
Merge #831
831: Move bootloader main to examples r=lulf a=lulf This should remove some confusion around embassy-boot-* being a library vs. a binary. The binary is now an example bootloader instead. Co-authored-by: Ulf Lilleengen <[email protected]> Co-authored-by: Ulf Lilleengen <[email protected]>
Diffstat (limited to 'examples/boot/application/nrf/README.md')
-rw-r--r--examples/boot/application/nrf/README.md34
1 files changed, 34 insertions, 0 deletions
diff --git a/examples/boot/application/nrf/README.md b/examples/boot/application/nrf/README.md
new file mode 100644
index 000000000..703377a20
--- /dev/null
+++ b/examples/boot/application/nrf/README.md
@@ -0,0 +1,34 @@
1# Examples using bootloader
2
3Example for nRF52 demonstrating the bootloader. The example consists of application binaries, 'a'
4which allows you to press a button to start the DFU process, and 'b' which is the updated
5application.
6
7
8## Prerequisites
9
10* `cargo-binutils`
11* `cargo-flash`
12* `embassy-boot-nrf`
13
14## Usage
15
16
17
18```
19# Use bare metal linker script
20cp memory-bl.x ../../bootloader/nrf/memory.x
21
22# Flash bootloader
23cargo flash --manifest-path ../../bootloader/nrf/Cargo.toml --features embassy-nrf/nrf52840 --release --chip nRF52840_xxAA
24# Build 'b'
25cargo build --release --bin b
26# Generate binary for 'b'
27cargo objcopy --release --bin b -- -O binary b.bin
28```
29
30# Flash `a` (which includes b.bin)
31
32```
33cargo flash --release --bin a --chip nRF52840_xxAA
34```