Files
.github
.vscode
cyw43
cyw43-firmware
cyw43-pio
docs
embassy-boot
embassy-embedded-hal
embassy-executor
embassy-futures
embassy-hal-internal
embassy-lora
embassy-macros
embassy-net
embassy-net-driver
embassy-net-driver-channel
embassy-net-enc28j60
embassy-net-esp-hosted
embassy-net-tuntap
embassy-net-wiznet
embassy-nrf
embassy-rp
embassy-stm32
embassy-stm32-wpan
embassy-sync
embassy-time
embassy-usb
embassy-usb-driver
embassy-usb-logger
examples
.cargo
boot
.cargo
application
nrf
rp
stm32f3
stm32f7
stm32h7
stm32l0
stm32l1
.cargo
src
Cargo.toml
README.md
build.rs
memory.x
stm32l4
stm32wl
bootloader
nrf-rtos-trace
nrf52840
nrf52840-rtic
nrf5340
rp
std
stm32c0
stm32f0
stm32f1
stm32f2
stm32f3
stm32f334
stm32f4
stm32f7
stm32g0
stm32g4
stm32h5
stm32h7
stm32l0
stm32l1
stm32l4
stm32l5
stm32u5
stm32wb
stm32wl
wasm
tests
.gitattributes
.gitignore
LICENSE-APACHE
LICENSE-MIT
NOTICE.md
README.md
ci.sh
ci_stable.sh
rust-toolchain.toml
rustfmt.toml
embassy/examples/boot/application/stm32l1
Ulf Lilleengen a34331ae5f Refactor firmware updater
* Allow manipulating state without accessing DFU partition.
* Provide aligned buffer when creating updater to reduce potential wrong parameters passed.
2023-08-06 19:46:53 +02:00
..
2023-06-29 02:39:28 +02:00
2023-08-06 19:46:53 +02:00
2022-06-24 19:56:15 +02:00
2023-07-06 01:29:44 +02:00
2022-06-29 19:14:07 +02:00
2022-06-24 19:56:15 +02:00

Examples using bootloader

Example for STM32L1 demonstrating the bootloader. The example consists of application binaries, 'a' which allows you to press a button to start the DFU process, and 'b' which is the updated application.

Prerequisites

  • cargo-binutils
  • cargo-flash
  • embassy-boot-stm32

Usage

# Flash bootloader
cargo flash --manifest-path ../../bootloader/stm32/Cargo.toml --release --features embassy-stm32/stm32l151cb-a --chip STM32L151CBxxA
# Build 'b'
cargo build --release --bin b
# Generate binary for 'b'
cargo objcopy --release --bin b -- -O binary b.bin

Flash a (which includes b.bin)

cargo flash --release --bin a --chip STM32L151CBxxA