aboutsummaryrefslogtreecommitdiff
path: root/examples/boot/application/nrf/README.md
diff options
context:
space:
mode:
authorUlf Lilleengen <[email protected]>2023-01-04 13:35:01 +0100
committerUlf Lilleengen <[email protected]>2023-01-04 13:38:43 +0100
commit2332d8cd2396a01fdeaf61dce814da79503c8f70 (patch)
tree29973b0546383f536f955f495cfad56265d4d3d4 /examples/boot/application/nrf/README.md
parentbf4c0de16a119b9e3a42daf76c4bc60face3c2a1 (diff)
feat: compile bootloader examples for nRF91
* Add nRF91 as target in CI builds * Add example linker scripts for nrf91 * Make less nRF52 assumptions example config * Add llvm-tools-preview required for cargo objcopy example
Diffstat (limited to 'examples/boot/application/nrf/README.md')
-rw-r--r--examples/boot/application/nrf/README.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/boot/application/nrf/README.md b/examples/boot/application/nrf/README.md
index a6719b505..5d45f6290 100644
--- a/examples/boot/application/nrf/README.md
+++ b/examples/boot/application/nrf/README.md
@@ -1,6 +1,6 @@
1# Examples using bootloader 1# Examples using bootloader
2 2
3Example for nRF52 demonstrating the bootloader. The example consists of application binaries, 'a' 3Example for nRF 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 4which allows you to press a button to start the DFU process, and 'b' which is the updated
5application. 5application.
6 6
@@ -20,19 +20,19 @@ application.
20cp memory-bl.x ../../bootloader/nrf/memory.x 20cp memory-bl.x ../../bootloader/nrf/memory.x
21 21
22# Flash bootloader 22# Flash bootloader
23cargo flash --manifest-path ../../bootloader/nrf/Cargo.toml --features embassy-nrf/nrf52840 --release --chip nRF52840_xxAA 23cargo flash --manifest-path ../../bootloader/nrf/Cargo.toml --features embassy-nrf/nrf52840 --target thumbv7em-none-eabi --release --chip nRF52840_xxAA
24# Build 'b' 24# Build 'b'
25cargo build --release --bin b 25cargo build --release --bin b
26# Generate binary for 'b' 26# Generate binary for 'b'
27cargo objcopy --release --bin b -- -O binary b.bin 27cargo objcopy --release --bin b --features embassy-nrf/nrf52840 --target thumbv7em-none-eabi -- -O binary b.bin
28``` 28```
29 29
30# Flash `a` (which includes b.bin) 30# Flash `a` (which includes b.bin)
31 31
32``` 32```
33cargo flash --release --bin a --chip nRF52840_xxAA 33cargo flash --release --bin a --features embassy-nrf/nrf52840 --target thumbv7em-none-eabi --chip nRF52840_xxAA
34``` 34```
35 35
36You should then see a solid LED. Pressing button 1 will cause the DFU to be loaded by the bootloader. Upon 36You should then see a solid LED. Pressing button 1 will cause the DFU to be loaded by the bootloader. Upon
37successfully loading, you'll see the LED flash. After 5 seconds, because there is no petting of the watchdog, 37successfully loading, you'll see the LED flash. After 5 seconds, because there is no petting of the watchdog,
38you'll see the LED go solid again. This indicates that the bootloader has reverted the update. \ No newline at end of file 38you'll see the LED go solid again. This indicates that the bootloader has reverted the update.