diff options
| author | Kaitlyn Kenwell <[email protected]> | 2023-12-14 09:36:22 -0500 |
|---|---|---|
| committer | Kaitlyn Kenwell <[email protected]> | 2023-12-14 09:36:22 -0500 |
| commit | e27e00f6280683293f427d0731aa69ca32dbbe60 (patch) | |
| tree | e238a3ed8fda1b7c89c27864b62d387786e75925 /examples | |
| parent | b60b3f4eb8f22ecda1c30d63213010f1b6b47686 (diff) | |
Address reviews
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/boot-usb-dfu/.cargo/config.toml | 9 | ||||
| -rw-r--r-- | examples/boot/application/stm32wb-dfu/.cargo/config.toml (renamed from examples/boot-usb-dfu/application/stm32wb/.cargo/config.toml) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32wb-dfu/Cargo.toml (renamed from examples/boot-usb-dfu/application/stm32wb/Cargo.toml) | 1 | ||||
| -rw-r--r-- | examples/boot/application/stm32wb-dfu/README.md (renamed from examples/boot-usb-dfu/application/stm32wb/README.md) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32wb-dfu/build.rs (renamed from examples/boot-usb-dfu/application/stm32wb/build.rs) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32wb-dfu/memory.x (renamed from examples/boot-usb-dfu/application/stm32wb/memory.x) | 0 | ||||
| -rw-r--r-- | examples/boot/application/stm32wb-dfu/src/main.rs (renamed from examples/boot-usb-dfu/application/stm32wb/src/main.rs) | 0 | ||||
| -rw-r--r-- | examples/boot/bootloader/stm32wb-dfu/Cargo.toml (renamed from examples/boot-usb-dfu/bootloader/stm32wb/Cargo.toml) | 0 | ||||
| -rw-r--r-- | examples/boot/bootloader/stm32wb-dfu/README.md (renamed from examples/boot-usb-dfu/bootloader/stm32wb/README.md) | 0 | ||||
| -rw-r--r-- | examples/boot/bootloader/stm32wb-dfu/build.rs (renamed from examples/boot-usb-dfu/bootloader/stm32wb/build.rs) | 0 | ||||
| -rw-r--r-- | examples/boot/bootloader/stm32wb-dfu/memory.x (renamed from examples/boot-usb-dfu/bootloader/stm32wb/memory.x) | 0 | ||||
| -rw-r--r-- | examples/boot/bootloader/stm32wb-dfu/src/main.rs (renamed from examples/boot-usb-dfu/bootloader/stm32wb/src/main.rs) | 13 |
12 files changed, 7 insertions, 16 deletions
diff --git a/examples/boot-usb-dfu/.cargo/config.toml b/examples/boot-usb-dfu/.cargo/config.toml deleted file mode 100644 index de3a814f7..000000000 --- a/examples/boot-usb-dfu/.cargo/config.toml +++ /dev/null | |||
| @@ -1,9 +0,0 @@ | |||
| 1 | [unstable] | ||
| 2 | build-std = ["core"] | ||
| 3 | build-std-features = ["panic_immediate_abort"] | ||
| 4 | |||
| 5 | [build] | ||
| 6 | target = "thumbv7em-none-eabi" | ||
| 7 | |||
| 8 | [env] | ||
| 9 | DEFMT_LOG = "trace" | ||
diff --git a/examples/boot-usb-dfu/application/stm32wb/.cargo/config.toml b/examples/boot/application/stm32wb-dfu/.cargo/config.toml index 4f8094ff2..4f8094ff2 100644 --- a/examples/boot-usb-dfu/application/stm32wb/.cargo/config.toml +++ b/examples/boot/application/stm32wb-dfu/.cargo/config.toml | |||
diff --git a/examples/boot-usb-dfu/application/stm32wb/Cargo.toml b/examples/boot/application/stm32wb-dfu/Cargo.toml index 0a41c0648..e67224ce6 100644 --- a/examples/boot-usb-dfu/application/stm32wb/Cargo.toml +++ b/examples/boot/application/stm32wb-dfu/Cargo.toml | |||
| @@ -25,6 +25,7 @@ cortex-m-rt = "0.7.0" | |||
| 25 | [features] | 25 | [features] |
| 26 | defmt = [ | 26 | defmt = [ |
| 27 | "dep:defmt", | 27 | "dep:defmt", |
| 28 | "dep:defmt-rtt", | ||
| 28 | "embassy-stm32/defmt", | 29 | "embassy-stm32/defmt", |
| 29 | "embassy-boot-stm32/defmt", | 30 | "embassy-boot-stm32/defmt", |
| 30 | "embassy-sync/defmt", | 31 | "embassy-sync/defmt", |
diff --git a/examples/boot-usb-dfu/application/stm32wb/README.md b/examples/boot/application/stm32wb-dfu/README.md index c8dce0387..c8dce0387 100644 --- a/examples/boot-usb-dfu/application/stm32wb/README.md +++ b/examples/boot/application/stm32wb-dfu/README.md | |||
diff --git a/examples/boot-usb-dfu/application/stm32wb/build.rs b/examples/boot/application/stm32wb-dfu/build.rs index e1da69328..e1da69328 100644 --- a/examples/boot-usb-dfu/application/stm32wb/build.rs +++ b/examples/boot/application/stm32wb-dfu/build.rs | |||
diff --git a/examples/boot-usb-dfu/application/stm32wb/memory.x b/examples/boot/application/stm32wb-dfu/memory.x index f51875766..f51875766 100644 --- a/examples/boot-usb-dfu/application/stm32wb/memory.x +++ b/examples/boot/application/stm32wb-dfu/memory.x | |||
diff --git a/examples/boot-usb-dfu/application/stm32wb/src/main.rs b/examples/boot/application/stm32wb-dfu/src/main.rs index f03003ffe..f03003ffe 100644 --- a/examples/boot-usb-dfu/application/stm32wb/src/main.rs +++ b/examples/boot/application/stm32wb-dfu/src/main.rs | |||
diff --git a/examples/boot-usb-dfu/bootloader/stm32wb/Cargo.toml b/examples/boot/bootloader/stm32wb-dfu/Cargo.toml index 774a8223d..774a8223d 100644 --- a/examples/boot-usb-dfu/bootloader/stm32wb/Cargo.toml +++ b/examples/boot/bootloader/stm32wb-dfu/Cargo.toml | |||
diff --git a/examples/boot-usb-dfu/bootloader/stm32wb/README.md b/examples/boot/bootloader/stm32wb-dfu/README.md index a82b730b9..a82b730b9 100644 --- a/examples/boot-usb-dfu/bootloader/stm32wb/README.md +++ b/examples/boot/bootloader/stm32wb-dfu/README.md | |||
diff --git a/examples/boot-usb-dfu/bootloader/stm32wb/build.rs b/examples/boot/bootloader/stm32wb-dfu/build.rs index fd605991f..fd605991f 100644 --- a/examples/boot-usb-dfu/bootloader/stm32wb/build.rs +++ b/examples/boot/bootloader/stm32wb-dfu/build.rs | |||
diff --git a/examples/boot-usb-dfu/bootloader/stm32wb/memory.x b/examples/boot/bootloader/stm32wb-dfu/memory.x index b6f185ef7..b6f185ef7 100644 --- a/examples/boot-usb-dfu/bootloader/stm32wb/memory.x +++ b/examples/boot/bootloader/stm32wb-dfu/memory.x | |||
diff --git a/examples/boot-usb-dfu/bootloader/stm32wb/src/main.rs b/examples/boot/bootloader/stm32wb-dfu/src/main.rs index 00a535d35..a2b884770 100644 --- a/examples/boot-usb-dfu/bootloader/stm32wb/src/main.rs +++ b/examples/boot/bootloader/stm32wb-dfu/src/main.rs | |||
| @@ -26,13 +26,12 @@ fn main() -> ! { | |||
| 26 | config.rcc = WPAN_DEFAULT; | 26 | config.rcc = WPAN_DEFAULT; |
| 27 | let p = embassy_stm32::init(config); | 27 | let p = embassy_stm32::init(config); |
| 28 | 28 | ||
| 29 | // Uncomment this if you are debugging the bootloader with debugger/RTT attached, | 29 | // Prevent a hard fault when accessing flash 'too early' after boot. |
| 30 | // as it prevents a hard fault when accessing flash 'too early' after boot. | 30 | #[cfg(feature = "defmt")] |
| 31 | /* | 31 | for _ in 0..10000000 { |
| 32 | for i in 0..10000000 { | 32 | cortex_m::asm::nop(); |
| 33 | cortex_m::asm::nop(); | 33 | } |
| 34 | } | 34 | |
| 35 | */ | ||
| 36 | 35 | ||
| 37 | let layout = Flash::new_blocking(p.FLASH).into_blocking_regions(); | 36 | let layout = Flash::new_blocking(p.FLASH).into_blocking_regions(); |
| 38 | let flash = Mutex::new(RefCell::new(layout.bank1_region)); | 37 | let flash = Mutex::new(RefCell::new(layout.bank1_region)); |
