feat: enhance bootloader for multiple flash support
This commit is contained in:
@@ -25,7 +25,7 @@ fn main() -> ! {
|
||||
let layout = Flash::new_blocking(p.FLASH).into_blocking_regions();
|
||||
let flash = Mutex::new(RefCell::new(layout.bank1_region));
|
||||
|
||||
let config = BootLoaderConfig::from_linkerfile_blocking(&flash);
|
||||
let config = BootLoaderConfig::from_linkerfile_blocking(&flash, &flash, &flash);
|
||||
let active_offset = config.active.offset();
|
||||
let bl = BootLoader::prepare::<_, _, _, 2048>(config);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user