diff options
Diffstat (limited to 'examples/boot/application/nrf/README.md')
| -rw-r--r-- | examples/boot/application/nrf/README.md | 34 |
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 | |||
| 3 | Example for nRF52 demonstrating the bootloader. The example consists of application binaries, 'a' | ||
| 4 | which allows you to press a button to start the DFU process, and 'b' which is the updated | ||
| 5 | application. | ||
| 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 | ||
| 20 | cp memory-bl.x ../../bootloader/nrf/memory.x | ||
| 21 | |||
| 22 | # Flash bootloader | ||
| 23 | cargo flash --manifest-path ../../bootloader/nrf/Cargo.toml --features embassy-nrf/nrf52840 --release --chip nRF52840_xxAA | ||
| 24 | # Build 'b' | ||
| 25 | cargo build --release --bin b | ||
| 26 | # Generate binary for 'b' | ||
| 27 | cargo objcopy --release --bin b -- -O binary b.bin | ||
| 28 | ``` | ||
| 29 | |||
| 30 | # Flash `a` (which includes b.bin) | ||
| 31 | |||
| 32 | ``` | ||
| 33 | cargo flash --release --bin a --chip nRF52840_xxAA | ||
| 34 | ``` | ||
