aboutsummaryrefslogtreecommitdiff
path: root/examples/boot/bootloader/stm32wb-dfu/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/boot/bootloader/stm32wb-dfu/src/main.rs')
-rw-r--r--examples/boot/bootloader/stm32wb-dfu/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/boot/bootloader/stm32wb-dfu/src/main.rs b/examples/boot/bootloader/stm32wb-dfu/src/main.rs
index a7ab813b6..d989fbfdf 100644
--- a/examples/boot/bootloader/stm32wb-dfu/src/main.rs
+++ b/examples/boot/bootloader/stm32wb-dfu/src/main.rs
@@ -35,7 +35,7 @@ fn main() -> ! {
35 let layout = Flash::new_blocking(p.FLASH).into_blocking_regions(); 35 let layout = Flash::new_blocking(p.FLASH).into_blocking_regions();
36 let flash = Mutex::new(RefCell::new(layout.bank1_region)); 36 let flash = Mutex::new(RefCell::new(layout.bank1_region));
37 37
38 let config = BootLoaderConfig::from_linkerfile_blocking(&flash); 38 let config = BootLoaderConfig::from_linkerfile_blocking(&flash, &flash, &flash);
39 let active_offset = config.active.offset(); 39 let active_offset = config.active.offset();
40 let bl = BootLoader::prepare::<_, _, _, 2048>(config); 40 let bl = BootLoader::prepare::<_, _, _, 2048>(config);
41 if bl.state == State::DfuDetach { 41 if bl.state == State::DfuDetach {
@@ -45,7 +45,7 @@ fn main() -> ! {
45 config.product = Some("USB-DFU Bootloader example"); 45 config.product = Some("USB-DFU Bootloader example");
46 config.serial_number = Some("1235678"); 46 config.serial_number = Some("1235678");
47 47
48 let fw_config = FirmwareUpdaterConfig::from_linkerfile_blocking(&flash); 48 let fw_config = FirmwareUpdaterConfig::from_linkerfile_blocking(&flash, &flash);
49 let mut buffer = AlignedBuffer([0; WRITE_SIZE]); 49 let mut buffer = AlignedBuffer([0; WRITE_SIZE]);
50 let updater = BlockingFirmwareUpdater::new(fw_config, &mut buffer.0[..]); 50 let updater = BlockingFirmwareUpdater::new(fw_config, &mut buffer.0[..]);
51 51