diff options
| author | Ulf Lilleengen <[email protected]> | 2022-06-24 19:56:15 +0200 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2022-06-24 19:56:15 +0200 |
| commit | 776be79f7bb10b09e795e2ea93bb795a653c9b4c (patch) | |
| tree | 269046d330ee503c84049bb8fc47baf0297ecb80 | |
| parent | 84628d36cf743193cbf0e7d47ef1cfa9fb590890 (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.
| -rwxr-xr-x | ci.sh | 18 | ||||
| -rw-r--r-- | embassy-boot/nrf/Cargo.toml | 37 | ||||
| -rw-r--r-- | embassy-boot/stm32/Cargo.toml | 4 | ||||
| -rw-r--r-- | examples/boot/application/nrf/.cargo/config.toml (renamed from examples/boot/nrf/.cargo/config.toml) | 0 | ||||
| -rw-r--r-- | examples/boot/application/nrf/Cargo.toml | 18 | ||||
| -rw-r--r-- | examples/boot/application/nrf/README.md (renamed from examples/boot/nrf/README.md) | 4 | ||||
| -rw-r--r-- | examples/boot/application/nrf/build.rs (renamed from examples/boot/nrf/build.rs) | 0 | ||||
| -rw-r--r-- | examples/boot/application/nrf/memory-bl.x (renamed from examples/boot/nrf/memory-bl.x) | 0 | ||||
| -rw-r--r-- | examples/boot/application/nrf/memory.x (renamed from examples/boot/nrf/memory.x) | 0 | ||||
| -rw-r--r-- | examples/boot/application/nrf/src/bin/a.rs (renamed from examples/boot/nrf/src/bin/a.rs) | 0 | ||||
| -rw-r--r-- | examples/boot/application/nrf/src/bin/b.rs (renamed from examples/boot/nrf/src/bin/b.rs) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32f3/.cargo/config.toml (renamed from examples/boot/stm32f3/.cargo/config.toml) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32f3/Cargo.toml | 25 | ||||
| -rw-r--r-- | examples/boot/application/stm32f3/README.md (renamed from examples/boot/stm32f3/README.md) | 2 | ||||
| -rw-r--r-- | examples/boot/application/stm32f3/build.rs (renamed from embassy-boot/nrf/build.rs) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32f3/memory.x (renamed from examples/boot/stm32f3/memory.x) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32f3/src/bin/a.rs (renamed from examples/boot/stm32f3/src/bin/a.rs) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32f3/src/bin/b.rs (renamed from examples/boot/stm32f3/src/bin/b.rs) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32f7/.cargo/config.toml (renamed from examples/boot/stm32f7/.cargo/config.toml) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32f7/Cargo.toml | 25 | ||||
| -rw-r--r-- | examples/boot/application/stm32f7/README.md (renamed from examples/boot/stm32f7/README.md) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32f7/build.rs (renamed from examples/boot/stm32f3/build.rs) | 0 | ||||
| -rwxr-xr-x | examples/boot/application/stm32f7/flash-boot.sh | 8 | ||||
| -rw-r--r-- | examples/boot/application/stm32f7/memory-bl.x (renamed from examples/boot/stm32f7/memory-bl.x) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32f7/memory.x (renamed from examples/boot/stm32f7/memory.x) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32f7/src/bin/a.rs (renamed from examples/boot/stm32f7/src/bin/a.rs) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32f7/src/bin/b.rs (renamed from examples/boot/stm32f7/src/bin/b.rs) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32h7/.cargo/config.toml (renamed from examples/boot/stm32h7/.cargo/config.toml) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32h7/Cargo.toml | 25 | ||||
| -rw-r--r-- | examples/boot/application/stm32h7/README.md (renamed from examples/boot/stm32h7/README.md) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32h7/build.rs (renamed from examples/boot/stm32f7/build.rs) | 0 | ||||
| -rwxr-xr-x | examples/boot/application/stm32h7/flash-boot.sh | 8 | ||||
| -rw-r--r-- | examples/boot/application/stm32h7/memory-bl.x (renamed from examples/boot/stm32h7/memory-bl.x) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32h7/memory.x (renamed from examples/boot/stm32h7/memory.x) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32h7/src/bin/a.rs (renamed from examples/boot/stm32h7/src/bin/a.rs) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32h7/src/bin/b.rs (renamed from examples/boot/stm32h7/src/bin/b.rs) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32l0/.cargo/config.toml (renamed from examples/boot/stm32l0/.cargo/config.toml) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32l0/Cargo.toml | 25 | ||||
| -rw-r--r-- | examples/boot/application/stm32l0/README.md (renamed from examples/boot/stm32l0/README.md) | 2 | ||||
| -rw-r--r-- | examples/boot/application/stm32l0/build.rs (renamed from examples/boot/stm32h7/build.rs) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32l0/memory.x (renamed from examples/boot/stm32l0/memory.x) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32l0/src/bin/a.rs (renamed from examples/boot/stm32l0/src/bin/a.rs) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32l0/src/bin/b.rs (renamed from examples/boot/stm32l0/src/bin/b.rs) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32l1/.cargo/config.toml (renamed from examples/boot/stm32l1/.cargo/config.toml) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32l1/Cargo.toml | 25 | ||||
| -rw-r--r-- | examples/boot/application/stm32l1/README.md (renamed from examples/boot/stm32l1/README.md) | 2 | ||||
| -rw-r--r-- | examples/boot/application/stm32l1/build.rs (renamed from examples/boot/stm32l0/build.rs) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32l1/memory.x (renamed from examples/boot/stm32l1/memory.x) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32l1/src/bin/a.rs (renamed from examples/boot/stm32l1/src/bin/a.rs) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32l1/src/bin/b.rs (renamed from examples/boot/stm32l1/src/bin/b.rs) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32l4/.cargo/config.toml (renamed from examples/boot/stm32l4/.cargo/config.toml) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32l4/Cargo.toml | 25 | ||||
| -rw-r--r-- | examples/boot/application/stm32l4/README.md (renamed from examples/boot/stm32l4/README.md) | 2 | ||||
| -rw-r--r-- | examples/boot/application/stm32l4/build.rs (renamed from examples/boot/stm32l1/build.rs) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32l4/memory.x (renamed from examples/boot/stm32l4/memory.x) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32l4/src/bin/a.rs (renamed from examples/boot/stm32l4/src/bin/a.rs) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32l4/src/bin/b.rs (renamed from examples/boot/stm32l4/src/bin/b.rs) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32wl/.cargo/config.toml (renamed from examples/boot/stm32wl/.cargo/config.toml) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32wl/Cargo.toml | 25 | ||||
| -rw-r--r-- | examples/boot/application/stm32wl/README.md (renamed from examples/boot/stm32wl/README.md) | 2 | ||||
| -rw-r--r-- | examples/boot/application/stm32wl/build.rs (renamed from examples/boot/stm32l4/build.rs) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32wl/memory.x (renamed from examples/boot/stm32wl/memory.x) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32wl/src/bin/a.rs (renamed from examples/boot/stm32wl/src/bin/a.rs) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32wl/src/bin/b.rs (renamed from examples/boot/stm32wl/src/bin/b.rs) | 0 | ||||
| -rw-r--r-- | examples/boot/bootloader/nrf/.cargo/config.toml (renamed from embassy-boot/nrf/.cargo/config.toml) | 0 | ||||
| -rw-r--r-- | examples/boot/bootloader/nrf/Cargo.toml | 58 | ||||
| -rw-r--r-- | examples/boot/bootloader/nrf/README.md (renamed from embassy-boot/nrf/README.md) | 0 | ||||
| -rw-r--r-- | examples/boot/bootloader/nrf/build.rs (renamed from examples/boot/stm32wl/build.rs) | 0 | ||||
| -rw-r--r-- | examples/boot/bootloader/nrf/memory-bm.x (renamed from embassy-boot/nrf/memory-bm.x) | 0 | ||||
| -rw-r--r-- | examples/boot/bootloader/nrf/memory-s140.x (renamed from embassy-boot/nrf/memory-s140.x) | 0 | ||||
| -rw-r--r-- | examples/boot/bootloader/nrf/memory.x (renamed from embassy-boot/nrf/memory.x) | 0 | ||||
| -rw-r--r-- | examples/boot/bootloader/nrf/src/main.rs (renamed from embassy-boot/nrf/src/main.rs) | 0 | ||||
| -rw-r--r-- | examples/boot/bootloader/stm32/Cargo.toml | 57 | ||||
| -rw-r--r-- | examples/boot/bootloader/stm32/README.md | 11 | ||||
| -rw-r--r-- | examples/boot/bootloader/stm32/build.rs (renamed from embassy-boot/stm32/build.rs) | 0 | ||||
| -rw-r--r-- | examples/boot/bootloader/stm32/memory.x (renamed from embassy-boot/stm32/memory.x) | 0 | ||||
| -rw-r--r-- | examples/boot/bootloader/stm32/src/main.rs (renamed from embassy-boot/stm32/src/main.rs) | 0 | ||||
| -rw-r--r-- | examples/boot/nrf/Cargo.toml | 18 | ||||
| -rw-r--r-- | examples/boot/stm32f3/Cargo.toml | 25 | ||||
| -rw-r--r-- | examples/boot/stm32f7/Cargo.toml | 25 | ||||
| -rwxr-xr-x | examples/boot/stm32f7/flash-boot.sh | 8 | ||||
| -rw-r--r-- | examples/boot/stm32h7/Cargo.toml | 25 | ||||
| -rwxr-xr-x | examples/boot/stm32h7/flash-boot.sh | 8 | ||||
| -rw-r--r-- | examples/boot/stm32l0/Cargo.toml | 25 | ||||
| -rw-r--r-- | examples/boot/stm32l1/Cargo.toml | 25 | ||||
| -rw-r--r-- | examples/boot/stm32l4/Cargo.toml | 25 | ||||
| -rw-r--r-- | examples/boot/stm32wl/Cargo.toml | 25 |
87 files changed, 358 insertions, 259 deletions
| @@ -85,14 +85,16 @@ cargo batch \ | |||
| 85 | --- build --release --manifest-path examples/stm32u5/Cargo.toml --target thumbv8m.main-none-eabihf --out-dir out/examples/stm32u5 \ | 85 | --- build --release --manifest-path examples/stm32u5/Cargo.toml --target thumbv8m.main-none-eabihf --out-dir out/examples/stm32u5 \ |
| 86 | --- build --release --manifest-path examples/stm32wb/Cargo.toml --target thumbv7em-none-eabihf --out-dir out/examples/stm32wb \ | 86 | --- build --release --manifest-path examples/stm32wb/Cargo.toml --target thumbv7em-none-eabihf --out-dir out/examples/stm32wb \ |
| 87 | --- build --release --manifest-path examples/stm32wl/Cargo.toml --target thumbv7em-none-eabihf --out-dir out/examples/stm32wl \ | 87 | --- build --release --manifest-path examples/stm32wl/Cargo.toml --target thumbv7em-none-eabihf --out-dir out/examples/stm32wl \ |
| 88 | --- build --release --manifest-path examples/boot/nrf/Cargo.toml --target thumbv7em-none-eabi --out-dir out/examples/boot/nrf --bin b \ | 88 | --- build --release --manifest-path examples/boot/application/nrf/Cargo.toml --target thumbv7em-none-eabi --out-dir out/examples/boot/nrf --bin b \ |
| 89 | --- build --release --manifest-path examples/boot/stm32f3/Cargo.toml --target thumbv7em-none-eabi --out-dir out/examples/boot/stm32f3 --bin b \ | 89 | --- build --release --manifest-path examples/boot/application/stm32f3/Cargo.toml --target thumbv7em-none-eabi --out-dir out/examples/boot/stm32f3 --bin b \ |
| 90 | --- build --release --manifest-path examples/boot/stm32f7/Cargo.toml --target thumbv7em-none-eabi --out-dir out/examples/boot/stm32f7 --bin b \ | 90 | --- build --release --manifest-path examples/boot/application/stm32f7/Cargo.toml --target thumbv7em-none-eabi --out-dir out/examples/boot/stm32f7 --bin b \ |
| 91 | --- build --release --manifest-path examples/boot/stm32h7/Cargo.toml --target thumbv7em-none-eabi --out-dir out/examples/boot/stm32h7 --bin b \ | 91 | --- build --release --manifest-path examples/boot/application/stm32h7/Cargo.toml --target thumbv7em-none-eabi --out-dir out/examples/boot/stm32h7 --bin b \ |
| 92 | --- build --release --manifest-path examples/boot/stm32l0/Cargo.toml --target thumbv6m-none-eabi --out-dir out/examples/boot/stm32l0 --bin b \ | 92 | --- build --release --manifest-path examples/boot/application/stm32l0/Cargo.toml --target thumbv6m-none-eabi --out-dir out/examples/boot/stm32l0 --bin b \ |
| 93 | --- build --release --manifest-path examples/boot/stm32l1/Cargo.toml --target thumbv7m-none-eabi --out-dir out/examples/boot/stm32l1 --bin b \ | 93 | --- build --release --manifest-path examples/boot/application/stm32l1/Cargo.toml --target thumbv7m-none-eabi --out-dir out/examples/boot/stm32l1 --bin b \ |
| 94 | --- build --release --manifest-path examples/boot/stm32l4/Cargo.toml --target thumbv7em-none-eabi --out-dir out/examples/boot/stm32l4 --bin b \ | 94 | --- build --release --manifest-path examples/boot/application/stm32l4/Cargo.toml --target thumbv7em-none-eabi --out-dir out/examples/boot/stm32l4 --bin b \ |
| 95 | --- build --release --manifest-path examples/boot/stm32wl/Cargo.toml --target thumbv7em-none-eabihf --out-dir out/examples/boot/stm32wl --bin b \ | 95 | --- build --release --manifest-path examples/boot/application/stm32wl/Cargo.toml --target thumbv7em-none-eabihf --out-dir out/examples/boot/stm32wl --bin b \ |
| 96 | --- build --release --manifest-path examples/boot/bootloader/nrf/Cargo.toml --target thumbv7em-none-eabi --features embassy-nrf/nrf52840 \ | ||
| 97 | --- build --release --manifest-path examples/boot/bootloader/stm32/Cargo.toml --target thumbv7em-none-eabi --features embassy-stm32/stm32wl55jc-cm4,embassy/time-tick-32768hz \ | ||
| 96 | --- build --release --manifest-path examples/wasm/Cargo.toml --target wasm32-unknown-unknown --out-dir out/examples/wasm \ | 98 | --- build --release --manifest-path examples/wasm/Cargo.toml --target wasm32-unknown-unknown --out-dir out/examples/wasm \ |
| 97 | --- build --release --manifest-path tests/stm32/Cargo.toml --target thumbv7m-none-eabi --features stm32f103c8 --out-dir out/tests/bluepill-stm32f103c8 \ | 99 | --- build --release --manifest-path tests/stm32/Cargo.toml --target thumbv7m-none-eabi --features stm32f103c8 --out-dir out/tests/bluepill-stm32f103c8 \ |
| 98 | --- build --release --manifest-path tests/stm32/Cargo.toml --target thumbv7em-none-eabi --features stm32f429zi --out-dir out/tests/nucleo-stm32f429zi \ | 100 | --- build --release --manifest-path tests/stm32/Cargo.toml --target thumbv7em-none-eabi --features stm32f429zi --out-dir out/tests/nucleo-stm32f429zi \ |
diff --git a/embassy-boot/nrf/Cargo.toml b/embassy-boot/nrf/Cargo.toml index b5cc9c4fe..ea5794836 100644 --- a/embassy-boot/nrf/Cargo.toml +++ b/embassy-boot/nrf/Cargo.toml | |||
| @@ -2,11 +2,12 @@ | |||
| 2 | edition = "2021" | 2 | edition = "2021" |
| 3 | name = "embassy-boot-nrf" | 3 | name = "embassy-boot-nrf" |
| 4 | version = "0.1.0" | 4 | version = "0.1.0" |
| 5 | description = "Bootloader for nRF chips" | 5 | description = "Bootloader lib for nRF chips" |
| 6 | |||
| 7 | [lib] | ||
| 6 | 8 | ||
| 7 | [dependencies] | 9 | [dependencies] |
| 8 | defmt = { version = "0.3", optional = true } | 10 | defmt = { version = "0.3", optional = true } |
| 9 | defmt-rtt = { version = "0.3", optional = true } | ||
| 10 | 11 | ||
| 11 | embassy = { path = "../../embassy", default-features = false } | 12 | embassy = { path = "../../embassy", default-features = false } |
| 12 | embassy-nrf = { path = "../../embassy-nrf", default-features = false, features = ["nightly"] } | 13 | embassy-nrf = { path = "../../embassy-nrf", default-features = false, features = ["nightly"] } |
| @@ -28,35 +29,3 @@ defmt = [ | |||
| 28 | softdevice = [ | 29 | softdevice = [ |
| 29 | "nrf-softdevice-mbr", | 30 | "nrf-softdevice-mbr", |
| 30 | ] | 31 | ] |
| 31 | debug = ["defmt-rtt"] | ||
| 32 | |||
| 33 | [profile.dev] | ||
| 34 | debug = 2 | ||
| 35 | debug-assertions = true | ||
| 36 | incremental = false | ||
| 37 | opt-level = 'z' | ||
| 38 | overflow-checks = true | ||
| 39 | |||
| 40 | [profile.release] | ||
| 41 | codegen-units = 1 | ||
| 42 | debug = 2 | ||
| 43 | debug-assertions = false | ||
| 44 | incremental = false | ||
| 45 | lto = 'fat' | ||
| 46 | opt-level = 'z' | ||
| 47 | overflow-checks = false | ||
| 48 | |||
| 49 | # do not optimize proc-macro crates = faster builds from scratch | ||
| 50 | [profile.dev.build-override] | ||
| 51 | codegen-units = 8 | ||
| 52 | debug = false | ||
| 53 | debug-assertions = false | ||
| 54 | opt-level = 0 | ||
| 55 | overflow-checks = false | ||
| 56 | |||
| 57 | [profile.release.build-override] | ||
| 58 | codegen-units = 8 | ||
| 59 | debug = false | ||
| 60 | debug-assertions = false | ||
| 61 | opt-level = 0 | ||
| 62 | overflow-checks = false | ||
diff --git a/embassy-boot/stm32/Cargo.toml b/embassy-boot/stm32/Cargo.toml index 3f198c114..1b6eeef93 100644 --- a/embassy-boot/stm32/Cargo.toml +++ b/embassy-boot/stm32/Cargo.toml | |||
| @@ -2,7 +2,9 @@ | |||
| 2 | edition = "2021" | 2 | edition = "2021" |
| 3 | name = "embassy-boot-stm32" | 3 | name = "embassy-boot-stm32" |
| 4 | version = "0.1.0" | 4 | version = "0.1.0" |
| 5 | description = "Bootloader for STM32 chips" | 5 | description = "Bootloader lib for STM32 chips" |
| 6 | |||
| 7 | [lib] | ||
| 6 | 8 | ||
| 7 | [dependencies] | 9 | [dependencies] |
| 8 | defmt = { version = "0.3", optional = true } | 10 | defmt = { version = "0.3", optional = true } |
diff --git a/examples/boot/nrf/.cargo/config.toml b/examples/boot/application/nrf/.cargo/config.toml index 8ca28df39..8ca28df39 100644 --- a/examples/boot/nrf/.cargo/config.toml +++ b/examples/boot/application/nrf/.cargo/config.toml | |||
diff --git a/examples/boot/application/nrf/Cargo.toml b/examples/boot/application/nrf/Cargo.toml new file mode 100644 index 000000000..0ae7163c3 --- /dev/null +++ b/examples/boot/application/nrf/Cargo.toml | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | [package] | ||
| 2 | edition = "2021" | ||
| 3 | name = "embassy-boot-nrf-examples" | ||
| 4 | version = "0.1.0" | ||
| 5 | |||
| 6 | [dependencies] | ||
| 7 | embassy = { version = "0.1.0", path = "../../../../embassy", features = ["nightly"] } | ||
| 8 | embassy-nrf = { version = "0.1.0", path = "../../../../embassy-nrf", features = ["time-driver-rtc1", "gpiote", "nightly", "nrf52840"] } | ||
| 9 | embassy-boot-nrf = { version = "0.1.0", path = "../../../../embassy-boot/nrf" } | ||
| 10 | embassy-embedded-hal = { version = "0.1.0", path = "../../../../embassy-embedded-hal" } | ||
| 11 | |||
| 12 | defmt = { version = "0.3", optional = true } | ||
| 13 | defmt-rtt = { version = "0.3", optional = true } | ||
| 14 | panic-reset = { version = "0.1.1" } | ||
| 15 | embedded-hal = { version = "0.2.6" } | ||
| 16 | |||
| 17 | cortex-m = "0.7.3" | ||
| 18 | cortex-m-rt = "0.7.0" | ||
diff --git a/examples/boot/nrf/README.md b/examples/boot/application/nrf/README.md index 1f25ffc05..703377a20 100644 --- a/examples/boot/nrf/README.md +++ b/examples/boot/application/nrf/README.md | |||
| @@ -17,10 +17,10 @@ application. | |||
| 17 | 17 | ||
| 18 | ``` | 18 | ``` |
| 19 | # Use bare metal linker script | 19 | # Use bare metal linker script |
| 20 | cp memory-bl.x ../../../embassy-boot/nrf/memory.x | 20 | cp memory-bl.x ../../bootloader/nrf/memory.x |
| 21 | 21 | ||
| 22 | # Flash bootloader | 22 | # Flash bootloader |
| 23 | cargo flash --manifest-path ../../../embassy-boot/nrf/Cargo.toml --features embassy-nrf/nrf52840 --release --chip nRF52840_xxAA | 23 | cargo flash --manifest-path ../../bootloader/nrf/Cargo.toml --features embassy-nrf/nrf52840 --release --chip nRF52840_xxAA |
| 24 | # Build 'b' | 24 | # Build 'b' |
| 25 | cargo build --release --bin b | 25 | cargo build --release --bin b |
| 26 | # Generate binary for 'b' | 26 | # Generate binary for 'b' |
diff --git a/examples/boot/nrf/build.rs b/examples/boot/application/nrf/build.rs index cd1a264c4..cd1a264c4 100644 --- a/examples/boot/nrf/build.rs +++ b/examples/boot/application/nrf/build.rs | |||
diff --git a/examples/boot/nrf/memory-bl.x b/examples/boot/application/nrf/memory-bl.x index 8a32b905f..8a32b905f 100644 --- a/examples/boot/nrf/memory-bl.x +++ b/examples/boot/application/nrf/memory-bl.x | |||
diff --git a/examples/boot/nrf/memory.x b/examples/boot/application/nrf/memory.x index 3a54ca460..3a54ca460 100644 --- a/examples/boot/nrf/memory.x +++ b/examples/boot/application/nrf/memory.x | |||
diff --git a/examples/boot/nrf/src/bin/a.rs b/examples/boot/application/nrf/src/bin/a.rs index 0b9715e49..0b9715e49 100644 --- a/examples/boot/nrf/src/bin/a.rs +++ b/examples/boot/application/nrf/src/bin/a.rs | |||
diff --git a/examples/boot/nrf/src/bin/b.rs b/examples/boot/application/nrf/src/bin/b.rs index a06c20f8b..a06c20f8b 100644 --- a/examples/boot/nrf/src/bin/b.rs +++ b/examples/boot/application/nrf/src/bin/b.rs | |||
diff --git a/examples/boot/stm32f3/.cargo/config.toml b/examples/boot/application/stm32f3/.cargo/config.toml index a76d6cab4..a76d6cab4 100644 --- a/examples/boot/stm32f3/.cargo/config.toml +++ b/examples/boot/application/stm32f3/.cargo/config.toml | |||
diff --git a/examples/boot/application/stm32f3/Cargo.toml b/examples/boot/application/stm32f3/Cargo.toml new file mode 100644 index 000000000..36fc135fe --- /dev/null +++ b/examples/boot/application/stm32f3/Cargo.toml | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | [package] | ||
| 2 | edition = "2021" | ||
| 3 | name = "embassy-boot-stm32f3-examples" | ||
| 4 | version = "0.1.0" | ||
| 5 | |||
| 6 | [dependencies] | ||
| 7 | embassy = { version = "0.1.0", path = "../../../../embassy", features = ["nightly", "time-tick-32768hz"] } | ||
| 8 | embassy-stm32 = { version = "0.1.0", path = "../../../../embassy-stm32", features = ["unstable-traits", "nightly", "stm32f303re", "time-driver-any", "exti"] } | ||
| 9 | embassy-boot-stm32 = { version = "0.1.0", path = "../../../../embassy-boot/stm32" } | ||
| 10 | embassy-embedded-hal = { version = "0.1.0", path = "../../../../embassy-embedded-hal" } | ||
| 11 | |||
| 12 | defmt = { version = "0.3", optional = true } | ||
| 13 | defmt-rtt = { version = "0.3", optional = true } | ||
| 14 | panic-reset = { version = "0.1.1" } | ||
| 15 | embedded-hal = { version = "0.2.6" } | ||
| 16 | |||
| 17 | cortex-m = "0.7.3" | ||
| 18 | cortex-m-rt = "0.7.0" | ||
| 19 | |||
| 20 | [features] | ||
| 21 | defmt = [ | ||
| 22 | "dep:defmt", | ||
| 23 | "embassy-stm32/defmt", | ||
| 24 | "embassy-boot-stm32/defmt", | ||
| 25 | ] | ||
diff --git a/examples/boot/stm32f3/README.md b/examples/boot/application/stm32f3/README.md index e92ffb692..46f033d5e 100644 --- a/examples/boot/stm32f3/README.md +++ b/examples/boot/application/stm32f3/README.md | |||
| @@ -15,7 +15,7 @@ application. | |||
| 15 | 15 | ||
| 16 | ``` | 16 | ``` |
| 17 | # Flash bootloader | 17 | # Flash bootloader |
| 18 | cargo flash --manifest-path ../../../embassy-boot/stm32/Cargo.toml --release --features embassy-stm32/stm32f303re --chip STM32F303RETx | 18 | cargo flash --manifest-path ../../bootloader/stm32/Cargo.toml --release --features embassy-stm32/stm32f303re --chip STM32F303RETx |
| 19 | # Build 'b' | 19 | # Build 'b' |
| 20 | cargo build --release --bin b | 20 | cargo build --release --bin b |
| 21 | # Generate binary for 'b' | 21 | # Generate binary for 'b' |
diff --git a/embassy-boot/nrf/build.rs b/examples/boot/application/stm32f3/build.rs index e1da69328..e1da69328 100644 --- a/embassy-boot/nrf/build.rs +++ b/examples/boot/application/stm32f3/build.rs | |||
diff --git a/examples/boot/stm32f3/memory.x b/examples/boot/application/stm32f3/memory.x index 14b2a2c9f..14b2a2c9f 100644 --- a/examples/boot/stm32f3/memory.x +++ b/examples/boot/application/stm32f3/memory.x | |||
diff --git a/examples/boot/stm32f3/src/bin/a.rs b/examples/boot/application/stm32f3/src/bin/a.rs index 4ff18d7c7..4ff18d7c7 100644 --- a/examples/boot/stm32f3/src/bin/a.rs +++ b/examples/boot/application/stm32f3/src/bin/a.rs | |||
diff --git a/examples/boot/stm32f3/src/bin/b.rs b/examples/boot/application/stm32f3/src/bin/b.rs index 4487e586e..4487e586e 100644 --- a/examples/boot/stm32f3/src/bin/b.rs +++ b/examples/boot/application/stm32f3/src/bin/b.rs | |||
diff --git a/examples/boot/stm32f7/.cargo/config.toml b/examples/boot/application/stm32f7/.cargo/config.toml index a90e1ccbb..a90e1ccbb 100644 --- a/examples/boot/stm32f7/.cargo/config.toml +++ b/examples/boot/application/stm32f7/.cargo/config.toml | |||
diff --git a/examples/boot/application/stm32f7/Cargo.toml b/examples/boot/application/stm32f7/Cargo.toml new file mode 100644 index 000000000..ad4a6fa76 --- /dev/null +++ b/examples/boot/application/stm32f7/Cargo.toml | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | [package] | ||
| 2 | edition = "2021" | ||
| 3 | name = "embassy-boot-stm32f7-examples" | ||
| 4 | version = "0.1.0" | ||
| 5 | |||
| 6 | [dependencies] | ||
| 7 | embassy = { version = "0.1.0", path = "../../../../embassy", features = ["nightly", "time-tick-32768hz"] } | ||
| 8 | embassy-stm32 = { version = "0.1.0", path = "../../../../embassy-stm32", features = ["unstable-traits", "nightly", "stm32f767zi", "time-driver-any", "exti"] } | ||
| 9 | embassy-boot-stm32 = { version = "0.1.0", path = "../../../../embassy-boot/stm32" } | ||
| 10 | embassy-embedded-hal = { version = "0.1.0", path = "../../../../embassy-embedded-hal" } | ||
| 11 | |||
| 12 | defmt = { version = "0.3", optional = true } | ||
| 13 | defmt-rtt = { version = "0.3", optional = true } | ||
| 14 | panic-reset = { version = "0.1.1" } | ||
| 15 | embedded-hal = { version = "0.2.6" } | ||
| 16 | |||
| 17 | cortex-m = "0.7.3" | ||
| 18 | cortex-m-rt = "0.7.0" | ||
| 19 | |||
| 20 | [features] | ||
| 21 | defmt = [ | ||
| 22 | "dep:defmt", | ||
| 23 | "embassy-stm32/defmt", | ||
| 24 | "embassy-boot-stm32/defmt", | ||
| 25 | ] | ||
diff --git a/examples/boot/stm32f7/README.md b/examples/boot/application/stm32f7/README.md index bf9142a1c..bf9142a1c 100644 --- a/examples/boot/stm32f7/README.md +++ b/examples/boot/application/stm32f7/README.md | |||
diff --git a/examples/boot/stm32f3/build.rs b/examples/boot/application/stm32f7/build.rs index e1da69328..e1da69328 100644 --- a/examples/boot/stm32f3/build.rs +++ b/examples/boot/application/stm32f7/build.rs | |||
diff --git a/examples/boot/application/stm32f7/flash-boot.sh b/examples/boot/application/stm32f7/flash-boot.sh new file mode 100755 index 000000000..debdb17a7 --- /dev/null +++ b/examples/boot/application/stm32f7/flash-boot.sh | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | mv ../../bootloader/stm32/memory.x ../../bootloader/stm32/memory-old.x | ||
| 3 | cp memory-bl.x ../../bootloader/stm32/memory.x | ||
| 4 | |||
| 5 | cargo flash --manifest-path ../../bootloader/stm32/Cargo.toml --release --features embassy-stm32/stm32f767zi --chip STM32F767ZITx --target thumbv7em-none-eabihf | ||
| 6 | |||
| 7 | rm ../../bootloader/stm32/memory.x | ||
| 8 | mv ../../bootloader/stm32/memory-old.x ../../bootloader/stm32/memory.x | ||
diff --git a/examples/boot/stm32f7/memory-bl.x b/examples/boot/application/stm32f7/memory-bl.x index 47f3f4d9b..47f3f4d9b 100644 --- a/examples/boot/stm32f7/memory-bl.x +++ b/examples/boot/application/stm32f7/memory-bl.x | |||
diff --git a/examples/boot/stm32f7/memory.x b/examples/boot/application/stm32f7/memory.x index 1c5537d17..1c5537d17 100644 --- a/examples/boot/stm32f7/memory.x +++ b/examples/boot/application/stm32f7/memory.x | |||
diff --git a/examples/boot/stm32f7/src/bin/a.rs b/examples/boot/application/stm32f7/src/bin/a.rs index 9c7921a1a..9c7921a1a 100644 --- a/examples/boot/stm32f7/src/bin/a.rs +++ b/examples/boot/application/stm32f7/src/bin/a.rs | |||
diff --git a/examples/boot/stm32f7/src/bin/b.rs b/examples/boot/application/stm32f7/src/bin/b.rs index aa05bbcdd..aa05bbcdd 100644 --- a/examples/boot/stm32f7/src/bin/b.rs +++ b/examples/boot/application/stm32f7/src/bin/b.rs | |||
diff --git a/examples/boot/stm32h7/.cargo/config.toml b/examples/boot/application/stm32h7/.cargo/config.toml index fefdd370e..fefdd370e 100644 --- a/examples/boot/stm32h7/.cargo/config.toml +++ b/examples/boot/application/stm32h7/.cargo/config.toml | |||
diff --git a/examples/boot/application/stm32h7/Cargo.toml b/examples/boot/application/stm32h7/Cargo.toml new file mode 100644 index 000000000..54530cc5b --- /dev/null +++ b/examples/boot/application/stm32h7/Cargo.toml | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | [package] | ||
| 2 | edition = "2021" | ||
| 3 | name = "embassy-boot-stm32f7-examples" | ||
| 4 | version = "0.1.0" | ||
| 5 | |||
| 6 | [dependencies] | ||
| 7 | embassy = { version = "0.1.0", path = "../../../../embassy", features = ["nightly", "time-tick-32768hz"] } | ||
| 8 | embassy-stm32 = { version = "0.1.0", path = "../../../../embassy-stm32", features = ["unstable-traits", "nightly", "stm32h743zi", "time-driver-any", "exti"] } | ||
| 9 | embassy-boot-stm32 = { version = "0.1.0", path = "../../../../embassy-boot/stm32" } | ||
| 10 | embassy-embedded-hal = { version = "0.1.0", path = "../../../../embassy-embedded-hal" } | ||
| 11 | |||
| 12 | defmt = { version = "0.3", optional = true } | ||
| 13 | defmt-rtt = { version = "0.3", optional = true } | ||
| 14 | panic-reset = { version = "0.1.1" } | ||
| 15 | embedded-hal = { version = "0.2.6" } | ||
| 16 | |||
| 17 | cortex-m = "0.7.3" | ||
| 18 | cortex-m-rt = "0.7.0" | ||
| 19 | |||
| 20 | [features] | ||
| 21 | defmt = [ | ||
| 22 | "dep:defmt", | ||
| 23 | "embassy-stm32/defmt", | ||
| 24 | "embassy-boot-stm32/defmt", | ||
| 25 | ] | ||
diff --git a/examples/boot/stm32h7/README.md b/examples/boot/application/stm32h7/README.md index 1fdc305e6..1fdc305e6 100644 --- a/examples/boot/stm32h7/README.md +++ b/examples/boot/application/stm32h7/README.md | |||
diff --git a/examples/boot/stm32f7/build.rs b/examples/boot/application/stm32h7/build.rs index e1da69328..e1da69328 100644 --- a/examples/boot/stm32f7/build.rs +++ b/examples/boot/application/stm32h7/build.rs | |||
diff --git a/examples/boot/application/stm32h7/flash-boot.sh b/examples/boot/application/stm32h7/flash-boot.sh new file mode 100755 index 000000000..debdb17a7 --- /dev/null +++ b/examples/boot/application/stm32h7/flash-boot.sh | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | mv ../../bootloader/stm32/memory.x ../../bootloader/stm32/memory-old.x | ||
| 3 | cp memory-bl.x ../../bootloader/stm32/memory.x | ||
| 4 | |||
| 5 | cargo flash --manifest-path ../../bootloader/stm32/Cargo.toml --release --features embassy-stm32/stm32f767zi --chip STM32F767ZITx --target thumbv7em-none-eabihf | ||
| 6 | |||
| 7 | rm ../../bootloader/stm32/memory.x | ||
| 8 | mv ../../bootloader/stm32/memory-old.x ../../bootloader/stm32/memory.x | ||
diff --git a/examples/boot/stm32h7/memory-bl.x b/examples/boot/application/stm32h7/memory-bl.x index c6f447d8b..c6f447d8b 100644 --- a/examples/boot/stm32h7/memory-bl.x +++ b/examples/boot/application/stm32h7/memory-bl.x | |||
diff --git a/examples/boot/stm32h7/memory.x b/examples/boot/application/stm32h7/memory.x index 497a09e41..497a09e41 100644 --- a/examples/boot/stm32h7/memory.x +++ b/examples/boot/application/stm32h7/memory.x | |||
diff --git a/examples/boot/stm32h7/src/bin/a.rs b/examples/boot/application/stm32h7/src/bin/a.rs index 704979dba..704979dba 100644 --- a/examples/boot/stm32h7/src/bin/a.rs +++ b/examples/boot/application/stm32h7/src/bin/a.rs | |||
diff --git a/examples/boot/stm32h7/src/bin/b.rs b/examples/boot/application/stm32h7/src/bin/b.rs index ea0140253..ea0140253 100644 --- a/examples/boot/stm32h7/src/bin/b.rs +++ b/examples/boot/application/stm32h7/src/bin/b.rs | |||
diff --git a/examples/boot/stm32l0/.cargo/config.toml b/examples/boot/application/stm32l0/.cargo/config.toml index 2627967ab..2627967ab 100644 --- a/examples/boot/stm32l0/.cargo/config.toml +++ b/examples/boot/application/stm32l0/.cargo/config.toml | |||
diff --git a/examples/boot/application/stm32l0/Cargo.toml b/examples/boot/application/stm32l0/Cargo.toml new file mode 100644 index 000000000..de7bea47b --- /dev/null +++ b/examples/boot/application/stm32l0/Cargo.toml | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | [package] | ||
| 2 | edition = "2021" | ||
| 3 | name = "embassy-boot-stm32l0-examples" | ||
| 4 | version = "0.1.0" | ||
| 5 | |||
| 6 | [dependencies] | ||
| 7 | embassy = { version = "0.1.0", path = "../../../../embassy", features = ["nightly", "time-tick-32768hz"] } | ||
| 8 | embassy-stm32 = { version = "0.1.0", path = "../../../../embassy-stm32", features = ["unstable-traits", "nightly", "stm32l072cz", "time-driver-any", "exti", "memory-x"] } | ||
| 9 | embassy-boot-stm32 = { version = "0.1.0", path = "../../../../embassy-boot/stm32" } | ||
| 10 | embassy-embedded-hal = { version = "0.1.0", path = "../../../../embassy-embedded-hal" } | ||
| 11 | |||
| 12 | defmt = { version = "0.3", optional = true } | ||
| 13 | defmt-rtt = { version = "0.3", optional = true } | ||
| 14 | panic-reset = { version = "0.1.1" } | ||
| 15 | embedded-hal = { version = "0.2.6" } | ||
| 16 | |||
| 17 | cortex-m = "0.7.3" | ||
| 18 | cortex-m-rt = "0.7.0" | ||
| 19 | |||
| 20 | [features] | ||
| 21 | defmt = [ | ||
| 22 | "dep:defmt", | ||
| 23 | "embassy-stm32/defmt", | ||
| 24 | "embassy-boot-stm32/defmt", | ||
| 25 | ] | ||
diff --git a/examples/boot/stm32l0/README.md b/examples/boot/application/stm32l0/README.md index a0e8021fc..762bdfe71 100644 --- a/examples/boot/stm32l0/README.md +++ b/examples/boot/application/stm32l0/README.md | |||
| @@ -15,7 +15,7 @@ application. | |||
| 15 | 15 | ||
| 16 | ``` | 16 | ``` |
| 17 | # Flash bootloader | 17 | # Flash bootloader |
| 18 | cargo flash --manifest-path ../../../embassy-boot/stm32/Cargo.toml --release --features embassy-stm32/stm32l072cz --chip STM32L072CZTx | 18 | cargo flash --manifest-path ../../bootloader/stm32/Cargo.toml --release --features embassy-stm32/stm32l072cz --chip STM32L072CZTx |
| 19 | # Build 'b' | 19 | # Build 'b' |
| 20 | cargo build --release --bin b | 20 | cargo build --release --bin b |
| 21 | # Generate binary for 'b' | 21 | # Generate binary for 'b' |
diff --git a/examples/boot/stm32h7/build.rs b/examples/boot/application/stm32l0/build.rs index e1da69328..e1da69328 100644 --- a/examples/boot/stm32h7/build.rs +++ b/examples/boot/application/stm32l0/build.rs | |||
diff --git a/examples/boot/stm32l0/memory.x b/examples/boot/application/stm32l0/memory.x index d0d2bd7bb..d0d2bd7bb 100644 --- a/examples/boot/stm32l0/memory.x +++ b/examples/boot/application/stm32l0/memory.x | |||
diff --git a/examples/boot/stm32l0/src/bin/a.rs b/examples/boot/application/stm32l0/src/bin/a.rs index ce620347b..ce620347b 100644 --- a/examples/boot/stm32l0/src/bin/a.rs +++ b/examples/boot/application/stm32l0/src/bin/a.rs | |||
diff --git a/examples/boot/stm32l0/src/bin/b.rs b/examples/boot/application/stm32l0/src/bin/b.rs index 0b585a14c..0b585a14c 100644 --- a/examples/boot/stm32l0/src/bin/b.rs +++ b/examples/boot/application/stm32l0/src/bin/b.rs | |||
diff --git a/examples/boot/stm32l1/.cargo/config.toml b/examples/boot/application/stm32l1/.cargo/config.toml index 404b6b55c..404b6b55c 100644 --- a/examples/boot/stm32l1/.cargo/config.toml +++ b/examples/boot/application/stm32l1/.cargo/config.toml | |||
diff --git a/examples/boot/application/stm32l1/Cargo.toml b/examples/boot/application/stm32l1/Cargo.toml new file mode 100644 index 000000000..3fd6f639a --- /dev/null +++ b/examples/boot/application/stm32l1/Cargo.toml | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | [package] | ||
| 2 | edition = "2021" | ||
| 3 | name = "embassy-boot-stm32l1-examples" | ||
| 4 | version = "0.1.0" | ||
| 5 | |||
| 6 | [dependencies] | ||
| 7 | embassy = { version = "0.1.0", path = "../../../../embassy", features = ["nightly", "time-tick-32768hz"] } | ||
| 8 | embassy-stm32 = { version = "0.1.0", path = "../../../../embassy-stm32", features = ["unstable-traits", "nightly", "stm32l151cb-a", "time-driver-any", "exti"] } | ||
| 9 | embassy-boot-stm32 = { version = "0.1.0", path = "../../../../embassy-boot/stm32" } | ||
| 10 | embassy-embedded-hal = { version = "0.1.0", path = "../../../../embassy-embedded-hal" } | ||
| 11 | |||
| 12 | defmt = { version = "0.3", optional = true } | ||
| 13 | defmt-rtt = { version = "0.3", optional = true } | ||
| 14 | panic-reset = { version = "0.1.1" } | ||
| 15 | embedded-hal = { version = "0.2.6" } | ||
| 16 | |||
| 17 | cortex-m = "0.7.3" | ||
| 18 | cortex-m-rt = "0.7.0" | ||
| 19 | |||
| 20 | [features] | ||
| 21 | defmt = [ | ||
| 22 | "dep:defmt", | ||
| 23 | "embassy-stm32/defmt", | ||
| 24 | "embassy-boot-stm32/defmt", | ||
| 25 | ] | ||
diff --git a/examples/boot/stm32l1/README.md b/examples/boot/application/stm32l1/README.md index 0d4accbff..428dde7b3 100644 --- a/examples/boot/stm32l1/README.md +++ b/examples/boot/application/stm32l1/README.md | |||
| @@ -15,7 +15,7 @@ application. | |||
| 15 | 15 | ||
| 16 | ``` | 16 | ``` |
| 17 | # Flash bootloader | 17 | # Flash bootloader |
| 18 | cargo flash --manifest-path ../../../embassy-boot/stm32/Cargo.toml --release --features embassy-stm32/stm32l151cb-a --chip STM32L151CBxxA | 18 | cargo flash --manifest-path ../../bootloader/stm32/Cargo.toml --release --features embassy-stm32/stm32l151cb-a --chip STM32L151CBxxA |
| 19 | # Build 'b' | 19 | # Build 'b' |
| 20 | cargo build --release --bin b | 20 | cargo build --release --bin b |
| 21 | # Generate binary for 'b' | 21 | # Generate binary for 'b' |
diff --git a/examples/boot/stm32l0/build.rs b/examples/boot/application/stm32l1/build.rs index e1da69328..e1da69328 100644 --- a/examples/boot/stm32l0/build.rs +++ b/examples/boot/application/stm32l1/build.rs | |||
diff --git a/examples/boot/stm32l1/memory.x b/examples/boot/application/stm32l1/memory.x index d0d2bd7bb..d0d2bd7bb 100644 --- a/examples/boot/stm32l1/memory.x +++ b/examples/boot/application/stm32l1/memory.x | |||
diff --git a/examples/boot/stm32l1/src/bin/a.rs b/examples/boot/application/stm32l1/src/bin/a.rs index ce620347b..ce620347b 100644 --- a/examples/boot/stm32l1/src/bin/a.rs +++ b/examples/boot/application/stm32l1/src/bin/a.rs | |||
diff --git a/examples/boot/stm32l1/src/bin/b.rs b/examples/boot/application/stm32l1/src/bin/b.rs index 0b585a14c..0b585a14c 100644 --- a/examples/boot/stm32l1/src/bin/b.rs +++ b/examples/boot/application/stm32l1/src/bin/b.rs | |||
diff --git a/examples/boot/stm32l4/.cargo/config.toml b/examples/boot/application/stm32l4/.cargo/config.toml index 43520e323..43520e323 100644 --- a/examples/boot/stm32l4/.cargo/config.toml +++ b/examples/boot/application/stm32l4/.cargo/config.toml | |||
diff --git a/examples/boot/application/stm32l4/Cargo.toml b/examples/boot/application/stm32l4/Cargo.toml new file mode 100644 index 000000000..7284af662 --- /dev/null +++ b/examples/boot/application/stm32l4/Cargo.toml | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | [package] | ||
| 2 | edition = "2021" | ||
| 3 | name = "embassy-boot-stm32l4-examples" | ||
| 4 | version = "0.1.0" | ||
| 5 | |||
| 6 | [dependencies] | ||
| 7 | embassy = { version = "0.1.0", path = "../../../../embassy", features = ["nightly", "time-tick-32768hz"] } | ||
| 8 | embassy-stm32 = { version = "0.1.0", path = "../../../../embassy-stm32", features = ["unstable-traits", "nightly", "stm32l475vg", "time-driver-any", "exti"] } | ||
| 9 | embassy-boot-stm32 = { version = "0.1.0", path = "../../../../embassy-boot/stm32" } | ||
| 10 | embassy-embedded-hal = { version = "0.1.0", path = "../../../../embassy-embedded-hal" } | ||
| 11 | |||
| 12 | defmt = { version = "0.3", optional = true } | ||
| 13 | defmt-rtt = { version = "0.3", optional = true } | ||
| 14 | panic-reset = { version = "0.1.1" } | ||
| 15 | embedded-hal = { version = "0.2.6" } | ||
| 16 | |||
| 17 | cortex-m = "0.7.3" | ||
| 18 | cortex-m-rt = "0.7.0" | ||
| 19 | |||
| 20 | [features] | ||
| 21 | defmt = [ | ||
| 22 | "dep:defmt", | ||
| 23 | "embassy-stm32/defmt", | ||
| 24 | "embassy-boot-stm32/defmt", | ||
| 25 | ] | ||
diff --git a/examples/boot/stm32l4/README.md b/examples/boot/application/stm32l4/README.md index 8966c2fb5..83f50748c 100644 --- a/examples/boot/stm32l4/README.md +++ b/examples/boot/application/stm32l4/README.md | |||
| @@ -15,7 +15,7 @@ application. | |||
| 15 | 15 | ||
| 16 | ``` | 16 | ``` |
| 17 | # Flash bootloader | 17 | # Flash bootloader |
| 18 | cargo flash --manifest-path ../../../embassy-boot/stm32/Cargo.toml --release --features embassy-stm32/stm32l475vg --chip STM32L475VG | 18 | cargo flash --manifest-path ../../bootloader/stm32/Cargo.toml --release --features embassy-stm32/stm32l475vg --chip STM32L475VG |
| 19 | # Build 'b' | 19 | # Build 'b' |
| 20 | cargo build --release --bin b | 20 | cargo build --release --bin b |
| 21 | # Generate binary for 'b' | 21 | # Generate binary for 'b' |
diff --git a/examples/boot/stm32l1/build.rs b/examples/boot/application/stm32l4/build.rs index e1da69328..e1da69328 100644 --- a/examples/boot/stm32l1/build.rs +++ b/examples/boot/application/stm32l4/build.rs | |||
diff --git a/examples/boot/stm32l4/memory.x b/examples/boot/application/stm32l4/memory.x index 14b2a2c9f..14b2a2c9f 100644 --- a/examples/boot/stm32l4/memory.x +++ b/examples/boot/application/stm32l4/memory.x | |||
diff --git a/examples/boot/stm32l4/src/bin/a.rs b/examples/boot/application/stm32l4/src/bin/a.rs index bf6099355..bf6099355 100644 --- a/examples/boot/stm32l4/src/bin/a.rs +++ b/examples/boot/application/stm32l4/src/bin/a.rs | |||
diff --git a/examples/boot/stm32l4/src/bin/b.rs b/examples/boot/application/stm32l4/src/bin/b.rs index 4487e586e..4487e586e 100644 --- a/examples/boot/stm32l4/src/bin/b.rs +++ b/examples/boot/application/stm32l4/src/bin/b.rs | |||
diff --git a/examples/boot/stm32wl/.cargo/config.toml b/examples/boot/application/stm32wl/.cargo/config.toml index e395d75b4..e395d75b4 100644 --- a/examples/boot/stm32wl/.cargo/config.toml +++ b/examples/boot/application/stm32wl/.cargo/config.toml | |||
diff --git a/examples/boot/application/stm32wl/Cargo.toml b/examples/boot/application/stm32wl/Cargo.toml new file mode 100644 index 000000000..ca22e6134 --- /dev/null +++ b/examples/boot/application/stm32wl/Cargo.toml | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | [package] | ||
| 2 | edition = "2021" | ||
| 3 | name = "embassy-boot-stm32wl-examples" | ||
| 4 | version = "0.1.0" | ||
| 5 | |||
| 6 | [dependencies] | ||
| 7 | embassy = { version = "0.1.0", path = "../../../../embassy", features = ["nightly", "time-tick-32768hz"] } | ||
| 8 | embassy-stm32 = { version = "0.1.0", path = "../../../../embassy-stm32", features = ["unstable-traits", "nightly", "stm32wl55jc-cm4", "time-driver-any", "exti"] } | ||
| 9 | embassy-boot-stm32 = { version = "0.1.0", path = "../../../../embassy-boot/stm32" } | ||
| 10 | embassy-embedded-hal = { version = "0.1.0", path = "../../../../embassy-embedded-hal" } | ||
| 11 | |||
| 12 | defmt = { version = "0.3", optional = true } | ||
| 13 | defmt-rtt = { version = "0.3", optional = true } | ||
| 14 | panic-reset = { version = "0.1.1" } | ||
| 15 | embedded-hal = { version = "0.2.6" } | ||
| 16 | |||
| 17 | cortex-m = "0.7.3" | ||
| 18 | cortex-m-rt = "0.7.0" | ||
| 19 | |||
| 20 | [features] | ||
| 21 | defmt = [ | ||
| 22 | "dep:defmt", | ||
| 23 | "embassy-stm32/defmt", | ||
| 24 | "embassy-boot-stm32/defmt", | ||
| 25 | ] | ||
diff --git a/examples/boot/stm32wl/README.md b/examples/boot/application/stm32wl/README.md index edcdacf91..c8dce0387 100644 --- a/examples/boot/stm32wl/README.md +++ b/examples/boot/application/stm32wl/README.md | |||
| @@ -15,7 +15,7 @@ application. | |||
| 15 | 15 | ||
| 16 | ``` | 16 | ``` |
| 17 | # Flash bootloader | 17 | # Flash bootloader |
| 18 | cargo flash --manifest-path ../../../embassy-boot/stm32/Cargo.toml --release --features embassy-stm32/stm32wl55jc-cm4 --chip STM32WLE5JCIx | 18 | cargo flash --manifest-path ../../bootloader/stm32/Cargo.toml --release --features embassy-stm32/stm32wl55jc-cm4 --chip STM32WLE5JCIx |
| 19 | # Build 'b' | 19 | # Build 'b' |
| 20 | cargo build --release --bin b | 20 | cargo build --release --bin b |
| 21 | # Generate binary for 'b' | 21 | # Generate binary for 'b' |
diff --git a/examples/boot/stm32l4/build.rs b/examples/boot/application/stm32wl/build.rs index e1da69328..e1da69328 100644 --- a/examples/boot/stm32l4/build.rs +++ b/examples/boot/application/stm32wl/build.rs | |||
diff --git a/examples/boot/stm32wl/memory.x b/examples/boot/application/stm32wl/memory.x index 14b2a2c9f..14b2a2c9f 100644 --- a/examples/boot/stm32wl/memory.x +++ b/examples/boot/application/stm32wl/memory.x | |||
diff --git a/examples/boot/stm32wl/src/bin/a.rs b/examples/boot/application/stm32wl/src/bin/a.rs index dc1eb9bed..dc1eb9bed 100644 --- a/examples/boot/stm32wl/src/bin/a.rs +++ b/examples/boot/application/stm32wl/src/bin/a.rs | |||
diff --git a/examples/boot/stm32wl/src/bin/b.rs b/examples/boot/application/stm32wl/src/bin/b.rs index f2344bd53..f2344bd53 100644 --- a/examples/boot/stm32wl/src/bin/b.rs +++ b/examples/boot/application/stm32wl/src/bin/b.rs | |||
diff --git a/embassy-boot/nrf/.cargo/config.toml b/examples/boot/bootloader/nrf/.cargo/config.toml index 1060800a3..1060800a3 100644 --- a/embassy-boot/nrf/.cargo/config.toml +++ b/examples/boot/bootloader/nrf/.cargo/config.toml | |||
diff --git a/examples/boot/bootloader/nrf/Cargo.toml b/examples/boot/bootloader/nrf/Cargo.toml new file mode 100644 index 000000000..8eb98623c --- /dev/null +++ b/examples/boot/bootloader/nrf/Cargo.toml | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | [package] | ||
| 2 | edition = "2021" | ||
| 3 | name = "nrf-bootloader-example" | ||
| 4 | version = "0.1.0" | ||
| 5 | description = "Bootloader for nRF chips" | ||
| 6 | |||
| 7 | [dependencies] | ||
| 8 | defmt = { version = "0.3", optional = true } | ||
| 9 | defmt-rtt = { version = "0.3", optional = true } | ||
| 10 | |||
| 11 | embassy = { path = "../../../../embassy", default-features = false } | ||
| 12 | embassy-nrf = { path = "../../../../embassy-nrf", default-features = false, features = ["nightly"] } | ||
| 13 | embassy-boot-nrf = { path = "../../../../embassy-boot/nrf", default-features = false } | ||
| 14 | cortex-m = { version = "0.7" } | ||
| 15 | cortex-m-rt = { version = "0.7" } | ||
| 16 | cfg-if = "1.0.0" | ||
| 17 | |||
| 18 | [features] | ||
| 19 | defmt = [ | ||
| 20 | "dep:defmt", | ||
| 21 | "embassy-boot-nrf/defmt", | ||
| 22 | "embassy-nrf/defmt", | ||
| 23 | ] | ||
| 24 | softdevice = [ | ||
| 25 | "embassy-boot-nrf/softdevice", | ||
| 26 | ] | ||
| 27 | debug = ["defmt-rtt"] | ||
| 28 | |||
| 29 | [profile.dev] | ||
| 30 | debug = 2 | ||
| 31 | debug-assertions = true | ||
| 32 | incremental = false | ||
| 33 | opt-level = 'z' | ||
| 34 | overflow-checks = true | ||
| 35 | |||
| 36 | [profile.release] | ||
| 37 | codegen-units = 1 | ||
| 38 | debug = 2 | ||
| 39 | debug-assertions = false | ||
| 40 | incremental = false | ||
| 41 | lto = 'fat' | ||
| 42 | opt-level = 'z' | ||
| 43 | overflow-checks = false | ||
| 44 | |||
| 45 | # do not optimize proc-macro crates = faster builds from scratch | ||
| 46 | [profile.dev.build-override] | ||
| 47 | codegen-units = 8 | ||
| 48 | debug = false | ||
| 49 | debug-assertions = false | ||
| 50 | opt-level = 0 | ||
| 51 | overflow-checks = false | ||
| 52 | |||
| 53 | [profile.release.build-override] | ||
| 54 | codegen-units = 8 | ||
| 55 | debug = false | ||
| 56 | debug-assertions = false | ||
| 57 | opt-level = 0 | ||
| 58 | overflow-checks = false | ||
diff --git a/embassy-boot/nrf/README.md b/examples/boot/bootloader/nrf/README.md index 23497a038..23497a038 100644 --- a/embassy-boot/nrf/README.md +++ b/examples/boot/bootloader/nrf/README.md | |||
diff --git a/examples/boot/stm32wl/build.rs b/examples/boot/bootloader/nrf/build.rs index e1da69328..e1da69328 100644 --- a/examples/boot/stm32wl/build.rs +++ b/examples/boot/bootloader/nrf/build.rs | |||
diff --git a/embassy-boot/nrf/memory-bm.x b/examples/boot/bootloader/nrf/memory-bm.x index 8a32b905f..8a32b905f 100644 --- a/embassy-boot/nrf/memory-bm.x +++ b/examples/boot/bootloader/nrf/memory-bm.x | |||
diff --git a/embassy-boot/nrf/memory-s140.x b/examples/boot/bootloader/nrf/memory-s140.x index 105db9972..105db9972 100644 --- a/embassy-boot/nrf/memory-s140.x +++ b/examples/boot/bootloader/nrf/memory-s140.x | |||
diff --git a/embassy-boot/nrf/memory.x b/examples/boot/bootloader/nrf/memory.x index 8a32b905f..8a32b905f 100644 --- a/embassy-boot/nrf/memory.x +++ b/examples/boot/bootloader/nrf/memory.x | |||
diff --git a/embassy-boot/nrf/src/main.rs b/examples/boot/bootloader/nrf/src/main.rs index bc7e0755f..bc7e0755f 100644 --- a/embassy-boot/nrf/src/main.rs +++ b/examples/boot/bootloader/nrf/src/main.rs | |||
diff --git a/examples/boot/bootloader/stm32/Cargo.toml b/examples/boot/bootloader/stm32/Cargo.toml new file mode 100644 index 000000000..b99a8fbcd --- /dev/null +++ b/examples/boot/bootloader/stm32/Cargo.toml | |||
| @@ -0,0 +1,57 @@ | |||
| 1 | [package] | ||
| 2 | edition = "2021" | ||
| 3 | name = "stm32-bootloader-example" | ||
| 4 | version = "0.1.0" | ||
| 5 | description = "Example bootloader for STM32 chips" | ||
| 6 | |||
| 7 | [dependencies] | ||
| 8 | defmt = { version = "0.3", optional = true } | ||
| 9 | defmt-rtt = { version = "0.3", optional = true } | ||
| 10 | |||
| 11 | embassy = { path = "../../../../embassy", default-features = false } | ||
| 12 | embassy-stm32 = { path = "../../../../embassy-stm32", default-features = false, features = ["nightly"] } | ||
| 13 | embassy-boot-stm32 = { path = "../../../../embassy-boot/stm32", default-features = false } | ||
| 14 | cortex-m = { version = "0.7" } | ||
| 15 | cortex-m-rt = { version = "0.7" } | ||
| 16 | embedded-storage = "0.3.0" | ||
| 17 | embedded-storage-async = "0.3.0" | ||
| 18 | cfg-if = "1.0.0" | ||
| 19 | |||
| 20 | [features] | ||
| 21 | defmt = [ | ||
| 22 | "dep:defmt", | ||
| 23 | "embassy-boot-stm32/defmt", | ||
| 24 | "embassy-stm32/defmt", | ||
| 25 | ] | ||
| 26 | debug = ["defmt-rtt"] | ||
| 27 | |||
| 28 | [profile.dev] | ||
| 29 | debug = 2 | ||
| 30 | debug-assertions = true | ||
| 31 | incremental = false | ||
| 32 | opt-level = 'z' | ||
| 33 | overflow-checks = true | ||
| 34 | |||
| 35 | [profile.release] | ||
| 36 | codegen-units = 1 | ||
| 37 | debug = 2 | ||
| 38 | debug-assertions = false | ||
| 39 | incremental = false | ||
| 40 | lto = 'fat' | ||
| 41 | opt-level = 'z' | ||
| 42 | overflow-checks = false | ||
| 43 | |||
| 44 | # do not optimize proc-macro crates = faster builds from scratch | ||
| 45 | [profile.dev.build-override] | ||
| 46 | codegen-units = 8 | ||
| 47 | debug = false | ||
| 48 | debug-assertions = false | ||
| 49 | opt-level = 0 | ||
| 50 | overflow-checks = false | ||
| 51 | |||
| 52 | [profile.release.build-override] | ||
| 53 | codegen-units = 8 | ||
| 54 | debug = false | ||
| 55 | debug-assertions = false | ||
| 56 | opt-level = 0 | ||
| 57 | overflow-checks = false | ||
diff --git a/examples/boot/bootloader/stm32/README.md b/examples/boot/bootloader/stm32/README.md new file mode 100644 index 000000000..a82b730b9 --- /dev/null +++ b/examples/boot/bootloader/stm32/README.md | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | # Bootloader for STM32 | ||
| 2 | |||
| 3 | The bootloader uses `embassy-boot` to interact with the flash. | ||
| 4 | |||
| 5 | # Usage | ||
| 6 | |||
| 7 | Flash the bootloader | ||
| 8 | |||
| 9 | ``` | ||
| 10 | cargo flash --features embassy-stm32/stm32wl55jc-cm4 --release --chip STM32WLE5JCIx | ||
| 11 | ``` | ||
diff --git a/embassy-boot/stm32/build.rs b/examples/boot/bootloader/stm32/build.rs index 3997702f6..3997702f6 100644 --- a/embassy-boot/stm32/build.rs +++ b/examples/boot/bootloader/stm32/build.rs | |||
diff --git a/embassy-boot/stm32/memory.x b/examples/boot/bootloader/stm32/memory.x index 110c23259..110c23259 100644 --- a/embassy-boot/stm32/memory.x +++ b/examples/boot/bootloader/stm32/memory.x | |||
diff --git a/embassy-boot/stm32/src/main.rs b/examples/boot/bootloader/stm32/src/main.rs index 45c511ced..45c511ced 100644 --- a/embassy-boot/stm32/src/main.rs +++ b/examples/boot/bootloader/stm32/src/main.rs | |||
diff --git a/examples/boot/nrf/Cargo.toml b/examples/boot/nrf/Cargo.toml deleted file mode 100644 index 0a0b76e67..000000000 --- a/examples/boot/nrf/Cargo.toml +++ /dev/null | |||
| @@ -1,18 +0,0 @@ | |||
| 1 | [package] | ||
| 2 | edition = "2021" | ||
| 3 | name = "embassy-boot-nrf-examples" | ||
| 4 | version = "0.1.0" | ||
| 5 | |||
| 6 | [dependencies] | ||
| 7 | embassy = { version = "0.1.0", path = "../../../embassy", features = ["nightly"] } | ||
| 8 | embassy-nrf = { version = "0.1.0", path = "../../../embassy-nrf", features = ["time-driver-rtc1", "gpiote", "nightly", "nrf52840"] } | ||
| 9 | embassy-boot-nrf = { version = "0.1.0", path = "../../../embassy-boot/nrf" } | ||
| 10 | embassy-embedded-hal = { version = "0.1.0", path = "../../../embassy-embedded-hal" } | ||
| 11 | |||
| 12 | defmt = { version = "0.3", optional = true } | ||
| 13 | defmt-rtt = { version = "0.3", optional = true } | ||
| 14 | panic-reset = { version = "0.1.1" } | ||
| 15 | embedded-hal = { version = "0.2.6" } | ||
| 16 | |||
| 17 | cortex-m = "0.7.3" | ||
| 18 | cortex-m-rt = "0.7.0" | ||
diff --git a/examples/boot/stm32f3/Cargo.toml b/examples/boot/stm32f3/Cargo.toml deleted file mode 100644 index 017813691..000000000 --- a/examples/boot/stm32f3/Cargo.toml +++ /dev/null | |||
| @@ -1,25 +0,0 @@ | |||
| 1 | [package] | ||
| 2 | edition = "2021" | ||
| 3 | name = "embassy-boot-stm32f3-examples" | ||
| 4 | version = "0.1.0" | ||
| 5 | |||
| 6 | [dependencies] | ||
| 7 | embassy = { version = "0.1.0", path = "../../../embassy", features = ["nightly", "time-tick-32768hz"] } | ||
| 8 | embassy-stm32 = { version = "0.1.0", path = "../../../embassy-stm32", features = ["unstable-traits", "nightly", "stm32f303re", "time-driver-any", "exti"] } | ||
| 9 | embassy-boot-stm32 = { version = "0.1.0", path = "../../../embassy-boot/stm32" } | ||
| 10 | embassy-embedded-hal = { version = "0.1.0", path = "../../../embassy-embedded-hal" } | ||
| 11 | |||
| 12 | defmt = { version = "0.3", optional = true } | ||
| 13 | defmt-rtt = { version = "0.3", optional = true } | ||
| 14 | panic-reset = { version = "0.1.1" } | ||
| 15 | embedded-hal = { version = "0.2.6" } | ||
| 16 | |||
| 17 | cortex-m = "0.7.3" | ||
| 18 | cortex-m-rt = "0.7.0" | ||
| 19 | |||
| 20 | [features] | ||
| 21 | defmt = [ | ||
| 22 | "dep:defmt", | ||
| 23 | "embassy-stm32/defmt", | ||
| 24 | "embassy-boot-stm32/defmt", | ||
| 25 | ] | ||
diff --git a/examples/boot/stm32f7/Cargo.toml b/examples/boot/stm32f7/Cargo.toml deleted file mode 100644 index 07aa73892..000000000 --- a/examples/boot/stm32f7/Cargo.toml +++ /dev/null | |||
| @@ -1,25 +0,0 @@ | |||
| 1 | [package] | ||
| 2 | edition = "2021" | ||
| 3 | name = "embassy-boot-stm32f7-examples" | ||
| 4 | version = "0.1.0" | ||
| 5 | |||
| 6 | [dependencies] | ||
| 7 | embassy = { version = "0.1.0", path = "../../../embassy", features = ["nightly", "time-tick-32768hz"] } | ||
| 8 | embassy-stm32 = { version = "0.1.0", path = "../../../embassy-stm32", features = ["unstable-traits", "nightly", "stm32f767zi", "time-driver-any", "exti"] } | ||
| 9 | embassy-boot-stm32 = { version = "0.1.0", path = "../../../embassy-boot/stm32" } | ||
| 10 | embassy-embedded-hal = { version = "0.1.0", path = "../../../embassy-embedded-hal" } | ||
| 11 | |||
| 12 | defmt = { version = "0.3", optional = true } | ||
| 13 | defmt-rtt = { version = "0.3", optional = true } | ||
| 14 | panic-reset = { version = "0.1.1" } | ||
| 15 | embedded-hal = { version = "0.2.6" } | ||
| 16 | |||
| 17 | cortex-m = "0.7.3" | ||
| 18 | cortex-m-rt = "0.7.0" | ||
| 19 | |||
| 20 | [features] | ||
| 21 | defmt = [ | ||
| 22 | "dep:defmt", | ||
| 23 | "embassy-stm32/defmt", | ||
| 24 | "embassy-boot-stm32/defmt", | ||
| 25 | ] | ||
diff --git a/examples/boot/stm32f7/flash-boot.sh b/examples/boot/stm32f7/flash-boot.sh deleted file mode 100755 index 86074ffa3..000000000 --- a/examples/boot/stm32f7/flash-boot.sh +++ /dev/null | |||
| @@ -1,8 +0,0 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | mv ../../../embassy-boot/stm32/memory.x ../../../embassy-boot/stm32/memory-old.x | ||
| 3 | cp memory-bl.x ../../../embassy-boot/stm32/memory.x | ||
| 4 | |||
| 5 | cargo flash --manifest-path ../../../embassy-boot/stm32/Cargo.toml --release --features embassy-stm32/stm32f767zi --chip STM32F767ZITx --target thumbv7em-none-eabihf | ||
| 6 | |||
| 7 | rm ../../../embassy-boot/stm32/memory.x | ||
| 8 | mv ../../../embassy-boot/stm32/memory-old.x ../../../embassy-boot/stm32/memory.x | ||
diff --git a/examples/boot/stm32h7/Cargo.toml b/examples/boot/stm32h7/Cargo.toml deleted file mode 100644 index d47cb65cc..000000000 --- a/examples/boot/stm32h7/Cargo.toml +++ /dev/null | |||
| @@ -1,25 +0,0 @@ | |||
| 1 | [package] | ||
| 2 | edition = "2021" | ||
| 3 | name = "embassy-boot-stm32f7-examples" | ||
| 4 | version = "0.1.0" | ||
| 5 | |||
| 6 | [dependencies] | ||
| 7 | embassy = { version = "0.1.0", path = "../../../embassy", features = ["nightly", "time-tick-32768hz"] } | ||
| 8 | embassy-stm32 = { version = "0.1.0", path = "../../../embassy-stm32", features = ["unstable-traits", "nightly", "stm32h743zi", "time-driver-any", "exti"] } | ||
| 9 | embassy-boot-stm32 = { version = "0.1.0", path = "../../../embassy-boot/stm32" } | ||
| 10 | embassy-embedded-hal = { version = "0.1.0", path = "../../../embassy-embedded-hal" } | ||
| 11 | |||
| 12 | defmt = { version = "0.3", optional = true } | ||
| 13 | defmt-rtt = { version = "0.3", optional = true } | ||
| 14 | panic-reset = { version = "0.1.1" } | ||
| 15 | embedded-hal = { version = "0.2.6" } | ||
| 16 | |||
| 17 | cortex-m = "0.7.3" | ||
| 18 | cortex-m-rt = "0.7.0" | ||
| 19 | |||
| 20 | [features] | ||
| 21 | defmt = [ | ||
| 22 | "dep:defmt", | ||
| 23 | "embassy-stm32/defmt", | ||
| 24 | "embassy-boot-stm32/defmt", | ||
| 25 | ] | ||
diff --git a/examples/boot/stm32h7/flash-boot.sh b/examples/boot/stm32h7/flash-boot.sh deleted file mode 100755 index a910b7312..000000000 --- a/examples/boot/stm32h7/flash-boot.sh +++ /dev/null | |||
| @@ -1,8 +0,0 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | mv ../../../embassy-boot/stm32/memory.x ../../../embassy-boot/stm32/memory-old.x | ||
| 3 | cp memory-bl.x ../../../embassy-boot/stm32/memory.x | ||
| 4 | |||
| 5 | cargo flash --manifest-path ../../../embassy-boot/stm32/Cargo.toml --release --features embassy-stm32/stm32f767zi --chip STM32H743ZITx --target thumbv7em-none-eabihf | ||
| 6 | |||
| 7 | rm ../../../embassy-boot/stm32/memory.x | ||
| 8 | mv ../../../embassy-boot/stm32/memory-old.x ../../../embassy-boot/stm32/memory.x | ||
diff --git a/examples/boot/stm32l0/Cargo.toml b/examples/boot/stm32l0/Cargo.toml deleted file mode 100644 index fbc4fb711..000000000 --- a/examples/boot/stm32l0/Cargo.toml +++ /dev/null | |||
| @@ -1,25 +0,0 @@ | |||
| 1 | [package] | ||
| 2 | edition = "2021" | ||
| 3 | name = "embassy-boot-stm32l0-examples" | ||
| 4 | version = "0.1.0" | ||
| 5 | |||
| 6 | [dependencies] | ||
| 7 | embassy = { version = "0.1.0", path = "../../../embassy", features = ["nightly", "time-tick-32768hz"] } | ||
| 8 | embassy-stm32 = { version = "0.1.0", path = "../../../embassy-stm32", features = ["unstable-traits", "nightly", "stm32l072cz", "time-driver-any", "exti", "memory-x"] } | ||
| 9 | embassy-boot-stm32 = { version = "0.1.0", path = "../../../embassy-boot/stm32" } | ||
| 10 | embassy-embedded-hal = { version = "0.1.0", path = "../../../embassy-embedded-hal" } | ||
| 11 | |||
| 12 | defmt = { version = "0.3", optional = true } | ||
| 13 | defmt-rtt = { version = "0.3", optional = true } | ||
| 14 | panic-reset = { version = "0.1.1" } | ||
| 15 | embedded-hal = { version = "0.2.6" } | ||
| 16 | |||
| 17 | cortex-m = "0.7.3" | ||
| 18 | cortex-m-rt = "0.7.0" | ||
| 19 | |||
| 20 | [features] | ||
| 21 | defmt = [ | ||
| 22 | "dep:defmt", | ||
| 23 | "embassy-stm32/defmt", | ||
| 24 | "embassy-boot-stm32/defmt", | ||
| 25 | ] | ||
diff --git a/examples/boot/stm32l1/Cargo.toml b/examples/boot/stm32l1/Cargo.toml deleted file mode 100644 index f3f05f611..000000000 --- a/examples/boot/stm32l1/Cargo.toml +++ /dev/null | |||
| @@ -1,25 +0,0 @@ | |||
| 1 | [package] | ||
| 2 | edition = "2021" | ||
| 3 | name = "embassy-boot-stm32l1-examples" | ||
| 4 | version = "0.1.0" | ||
| 5 | |||
| 6 | [dependencies] | ||
| 7 | embassy = { version = "0.1.0", path = "../../../embassy", features = ["nightly", "time-tick-32768hz"] } | ||
| 8 | embassy-stm32 = { version = "0.1.0", path = "../../../embassy-stm32", features = ["unstable-traits", "nightly", "stm32l151cb-a", "time-driver-any", "exti"] } | ||
| 9 | embassy-boot-stm32 = { version = "0.1.0", path = "../../../embassy-boot/stm32" } | ||
| 10 | embassy-embedded-hal = { version = "0.1.0", path = "../../../embassy-embedded-hal" } | ||
| 11 | |||
| 12 | defmt = { version = "0.3", optional = true } | ||
| 13 | defmt-rtt = { version = "0.3", optional = true } | ||
| 14 | panic-reset = { version = "0.1.1" } | ||
| 15 | embedded-hal = { version = "0.2.6" } | ||
| 16 | |||
| 17 | cortex-m = "0.7.3" | ||
| 18 | cortex-m-rt = "0.7.0" | ||
| 19 | |||
| 20 | [features] | ||
| 21 | defmt = [ | ||
| 22 | "dep:defmt", | ||
| 23 | "embassy-stm32/defmt", | ||
| 24 | "embassy-boot-stm32/defmt", | ||
| 25 | ] | ||
diff --git a/examples/boot/stm32l4/Cargo.toml b/examples/boot/stm32l4/Cargo.toml deleted file mode 100644 index 1b7b2202f..000000000 --- a/examples/boot/stm32l4/Cargo.toml +++ /dev/null | |||
| @@ -1,25 +0,0 @@ | |||
| 1 | [package] | ||
| 2 | edition = "2021" | ||
| 3 | name = "embassy-boot-stm32l4-examples" | ||
| 4 | version = "0.1.0" | ||
| 5 | |||
| 6 | [dependencies] | ||
| 7 | embassy = { version = "0.1.0", path = "../../../embassy", features = ["nightly", "time-tick-32768hz"] } | ||
| 8 | embassy-stm32 = { version = "0.1.0", path = "../../../embassy-stm32", features = ["unstable-traits", "nightly", "stm32l475vg", "time-driver-any", "exti"] } | ||
| 9 | embassy-boot-stm32 = { version = "0.1.0", path = "../../../embassy-boot/stm32" } | ||
| 10 | embassy-embedded-hal = { version = "0.1.0", path = "../../../embassy-embedded-hal" } | ||
| 11 | |||
| 12 | defmt = { version = "0.3", optional = true } | ||
| 13 | defmt-rtt = { version = "0.3", optional = true } | ||
| 14 | panic-reset = { version = "0.1.1" } | ||
| 15 | embedded-hal = { version = "0.2.6" } | ||
| 16 | |||
| 17 | cortex-m = "0.7.3" | ||
| 18 | cortex-m-rt = "0.7.0" | ||
| 19 | |||
| 20 | [features] | ||
| 21 | defmt = [ | ||
| 22 | "dep:defmt", | ||
| 23 | "embassy-stm32/defmt", | ||
| 24 | "embassy-boot-stm32/defmt", | ||
| 25 | ] | ||
diff --git a/examples/boot/stm32wl/Cargo.toml b/examples/boot/stm32wl/Cargo.toml deleted file mode 100644 index 1bd69ae42..000000000 --- a/examples/boot/stm32wl/Cargo.toml +++ /dev/null | |||
| @@ -1,25 +0,0 @@ | |||
| 1 | [package] | ||
| 2 | edition = "2021" | ||
| 3 | name = "embassy-boot-stm32wl-examples" | ||
| 4 | version = "0.1.0" | ||
| 5 | |||
| 6 | [dependencies] | ||
| 7 | embassy = { version = "0.1.0", path = "../../../embassy", features = ["nightly", "time-tick-32768hz"] } | ||
| 8 | embassy-stm32 = { version = "0.1.0", path = "../../../embassy-stm32", features = ["unstable-traits", "nightly", "stm32wl55jc-cm4", "time-driver-any", "exti"] } | ||
| 9 | embassy-boot-stm32 = { version = "0.1.0", path = "../../../embassy-boot/stm32" } | ||
| 10 | embassy-embedded-hal = { version = "0.1.0", path = "../../../embassy-embedded-hal" } | ||
| 11 | |||
| 12 | defmt = { version = "0.3", optional = true } | ||
| 13 | defmt-rtt = { version = "0.3", optional = true } | ||
| 14 | panic-reset = { version = "0.1.1" } | ||
| 15 | embedded-hal = { version = "0.2.6" } | ||
| 16 | |||
| 17 | cortex-m = "0.7.3" | ||
| 18 | cortex-m-rt = "0.7.0" | ||
| 19 | |||
| 20 | [features] | ||
| 21 | defmt = [ | ||
| 22 | "dep:defmt", | ||
| 23 | "embassy-stm32/defmt", | ||
| 24 | "embassy-boot-stm32/defmt", | ||
| 25 | ] | ||
