Add F7 flash and bootloader support

This commit is contained in:
Matous Hybl
2022-05-03 16:16:37 +02:00
parent f3700b4e42
commit 6d56f772e1
15 changed files with 413 additions and 3 deletions

View File

@ -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!"),
}
}