diff options
| author | Ulf Lilleengen <[email protected]> | 2022-04-20 13:49:59 +0200 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2022-04-27 15:17:18 +0200 |
| commit | 484e0acc638c27366e19275c32db9c8487ea8fba (patch) | |
| tree | 5649591dad34cadcb28503f94c1bbca0bf5578a1 /examples/boot/README.md | |
| parent | 9c283cd44504d6d9d6f9e352e4c7a8d043bd673f (diff) | |
Add stm32 flash + bootloader support
* Add flash drivers for L0, L1, L4, WB and WL. Not tested for WB, but
should be similar to WL.
* Add embassy-boot-stm32 for bootloading on STM32.
* Add flash examples and bootloader examples
* Update stm32-data
Diffstat (limited to 'examples/boot/README.md')
| -rw-r--r-- | examples/boot/README.md | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/examples/boot/README.md b/examples/boot/README.md deleted file mode 100644 index b97513a9d..000000000 --- a/examples/boot/README.md +++ /dev/null | |||
| @@ -1,31 +0,0 @@ | |||
| 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 | # Flash bootloader | ||
| 20 | cargo flash --manifest-path ../../embassy-boot/nrf/Cargo.toml --release --features embassy-nrf/nrf52840 --chip nRF52840_xxAA | ||
| 21 | # Build 'b' | ||
| 22 | cargo build --release --features embassy-nrf/nrf52840 --bin b | ||
| 23 | # Generate binary for 'b' | ||
| 24 | cargo objcopy --release --features embassy-nrf/nrf52840 --bin b -- -O binary b.bin | ||
| 25 | ``` | ||
| 26 | |||
| 27 | # Flash `a` (which includes b.bin) | ||
| 28 | |||
| 29 | ``` | ||
| 30 | cargo flash --release --features embassy-nrf/nrf52840 --bin a --chip nRF52840_xxAA | ||
| 31 | ``` | ||
