aboutsummaryrefslogtreecommitdiff
path: root/examples/boot/application/nrf/README.md
diff options
context:
space:
mode:
authorUlf Lilleengen <[email protected]>2022-06-24 19:56:15 +0200
committerUlf Lilleengen <[email protected]>2022-06-24 19:56:15 +0200
commit776be79f7bb10b09e795e2ea93bb795a653c9b4c (patch)
tree269046d330ee503c84049bb8fc47baf0297ecb80 /examples/boot/application/nrf/README.md
parent84628d36cf743193cbf0e7d47ef1cfa9fb590890 (diff)
Move bootloader main to examples
This should remove some confusion around embassy-boot-* being a library vs. a binary. The binary is now an example bootloader instead.
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```