From bd237a1f96680f2cdf411ef2ca80beaa6b09cc6a Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Thu, 28 Apr 2022 10:38:25 +0200 Subject: Allow using separate page sizes for state and dfu * Less generics on bootloader. Keep PAGE_SIZE as a common multiple of DFU and ACTIVE page sizes. * Document restriction * Add unit tests for different page sizes --- examples/boot/nrf/src/bin/a.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/boot/nrf/src') diff --git a/examples/boot/nrf/src/bin/a.rs b/examples/boot/nrf/src/bin/a.rs index caf8140d8..2f05c817b 100644 --- a/examples/boot/nrf/src/bin/a.rs +++ b/examples/boot/nrf/src/bin/a.rs @@ -40,7 +40,7 @@ async fn main(_s: embassy::executor::Spawner, p: Peripherals) { .unwrap(); offset += chunk.len(); } - updater.mark_update(&mut nvmc).await.unwrap(); + updater.update(&mut nvmc).await.unwrap(); led.set_high(); cortex_m::peripheral::SCB::sys_reset(); } -- cgit