aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/boot/nrf/src/bin/a.rs2
-rw-r--r--examples/boot/stm32l0/src/bin/a.rs2
-rw-r--r--examples/boot/stm32l1/src/bin/a.rs2
-rw-r--r--examples/boot/stm32l4/src/bin/a.rs2
-rw-r--r--examples/boot/stm32wl/src/bin/a.rs2
5 files changed, 5 insertions, 5 deletions
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) {
40 .unwrap(); 40 .unwrap();
41 offset += chunk.len(); 41 offset += chunk.len();
42 } 42 }
43 updater.mark_update(&mut nvmc).await.unwrap(); 43 updater.update(&mut nvmc).await.unwrap();
44 led.set_high(); 44 led.set_high();
45 cortex_m::peripheral::SCB::sys_reset(); 45 cortex_m::peripheral::SCB::sys_reset();
46 } 46 }
diff --git a/examples/boot/stm32l0/src/bin/a.rs b/examples/boot/stm32l0/src/bin/a.rs
index 7b9000c91..9e603a226 100644
--- a/examples/boot/stm32l0/src/bin/a.rs
+++ b/examples/boot/stm32l0/src/bin/a.rs
@@ -41,7 +41,7 @@ async fn main(_s: embassy::executor::Spawner, p: Peripherals) {
41 offset += chunk.len(); 41 offset += chunk.len();
42 } 42 }
43 43
44 updater.mark_update(&mut flash).await.unwrap(); 44 updater.update(&mut flash).await.unwrap();
45 led.set_low(); 45 led.set_low();
46 Timer::after(Duration::from_secs(1)).await; 46 Timer::after(Duration::from_secs(1)).await;
47 cortex_m::peripheral::SCB::sys_reset(); 47 cortex_m::peripheral::SCB::sys_reset();
diff --git a/examples/boot/stm32l1/src/bin/a.rs b/examples/boot/stm32l1/src/bin/a.rs
index 7b9000c91..9e603a226 100644
--- a/examples/boot/stm32l1/src/bin/a.rs
+++ b/examples/boot/stm32l1/src/bin/a.rs
@@ -41,7 +41,7 @@ async fn main(_s: embassy::executor::Spawner, p: Peripherals) {
41 offset += chunk.len(); 41 offset += chunk.len();
42 } 42 }
43 43
44 updater.mark_update(&mut flash).await.unwrap(); 44 updater.update(&mut flash).await.unwrap();
45 led.set_low(); 45 led.set_low();
46 Timer::after(Duration::from_secs(1)).await; 46 Timer::after(Duration::from_secs(1)).await;
47 cortex_m::peripheral::SCB::sys_reset(); 47 cortex_m::peripheral::SCB::sys_reset();
diff --git a/examples/boot/stm32l4/src/bin/a.rs b/examples/boot/stm32l4/src/bin/a.rs
index a5a9e2302..41684b2f0 100644
--- a/examples/boot/stm32l4/src/bin/a.rs
+++ b/examples/boot/stm32l4/src/bin/a.rs
@@ -38,7 +38,7 @@ async fn main(_s: embassy::executor::Spawner, p: Peripherals) {
38 .unwrap(); 38 .unwrap();
39 offset += chunk.len(); 39 offset += chunk.len();
40 } 40 }
41 updater.mark_update(&mut flash).await.unwrap(); 41 updater.update(&mut flash).await.unwrap();
42 led.set_low(); 42 led.set_low();
43 cortex_m::peripheral::SCB::sys_reset(); 43 cortex_m::peripheral::SCB::sys_reset();
44} 44}
diff --git a/examples/boot/stm32wl/src/bin/a.rs b/examples/boot/stm32wl/src/bin/a.rs
index d01a72f2d..b3e9efa75 100644
--- a/examples/boot/stm32wl/src/bin/a.rs
+++ b/examples/boot/stm32wl/src/bin/a.rs
@@ -40,7 +40,7 @@ async fn main(_s: embassy::executor::Spawner, p: Peripherals) {
40 .unwrap(); 40 .unwrap();
41 offset += chunk.len(); 41 offset += chunk.len();
42 } 42 }
43 updater.mark_update(&mut flash).await.unwrap(); 43 updater.update(&mut flash).await.unwrap();
44 //defmt::info!("Marked as updated"); 44 //defmt::info!("Marked as updated");
45 led.set_low(); 45 led.set_low();
46 cortex_m::peripheral::SCB::sys_reset(); 46 cortex_m::peripheral::SCB::sys_reset();