summaryrefslogtreecommitdiff
path: root/embassy-boot
diff options
context:
space:
mode:
authorMatous Hybl <hyblmatous@gmail.com>2022-05-03 16:16:37 +0200
committerMatous Hybl <hyblmatous@gmail.com>2022-05-06 21:57:15 +0200
commit6d56f772e11eaae7495e08ba55d9c98d11e0ac09 (patch)
tree90b0b7466020cfa8fb0db7990599883ec86d9328 /embassy-boot
parentf3700b4e42fbb0e0e4876307ba5533b7b215f5e3 (diff)
downloadembassy-6d56f772e11eaae7495e08ba55d9c98d11e0ac09.zip
Add F7 flash and bootloader support
Diffstat (limited to 'embassy-boot')
-rw-r--r--embassy-boot/stm32/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-boot/stm32/src/lib.rs b/embassy-boot/stm32/src/lib.rs
index 82e32a97..48512534 100644
--- a/embassy-boot/stm32/src/lib.rs
+++ b/embassy-boot/stm32/src/lib.rs
@@ -67,7 +67,7 @@ impl<const PAGE_SIZE: usize> BootLoader<PAGE_SIZE> {
[(); <<F as FlashProvider>::ACTIVE as FlashConfig>::FLASH::ERASE_SIZE]:,
{
match self.boot.prepare_boot(flash) {
- Ok(_) => self.boot.boot_address(),
+ Ok(_) => embassy_stm32::flash::FLASH_BASE + self.boot.boot_address(),
Err(_) => panic!("boot prepare error!"),
}
}