diff options
Diffstat (limited to 'examples/boot/application/rp')
| -rw-r--r-- | examples/boot/application/rp/Cargo.toml | 5 | ||||
| -rw-r--r-- | examples/boot/application/rp/src/bin/a.rs | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/examples/boot/application/rp/Cargo.toml b/examples/boot/application/rp/Cargo.toml index be85f4437..01cfc5994 100644 --- a/examples/boot/application/rp/Cargo.toml +++ b/examples/boot/application/rp/Cargo.toml | |||
| @@ -5,9 +5,9 @@ version = "0.1.0" | |||
| 5 | license = "MIT OR Apache-2.0" | 5 | license = "MIT OR Apache-2.0" |
| 6 | 6 | ||
| 7 | [dependencies] | 7 | [dependencies] |
| 8 | embassy-sync = { version = "0.2.0", path = "../../../../embassy-sync" } | 8 | embassy-sync = { version = "0.3.0", path = "../../../../embassy-sync" } |
| 9 | embassy-executor = { version = "0.3.0", path = "../../../../embassy-executor", features = ["arch-cortex-m", "executor-thread", "nightly", "integrated-timers", "arch-cortex-m", "executor-thread"] } | 9 | embassy-executor = { version = "0.3.0", path = "../../../../embassy-executor", features = ["arch-cortex-m", "executor-thread", "nightly", "integrated-timers", "arch-cortex-m", "executor-thread"] } |
| 10 | embassy-time = { version = "0.1.2", path = "../../../../embassy-time", features = ["nightly"] } | 10 | embassy-time = { version = "0.1.3", path = "../../../../embassy-time", features = ["nightly"] } |
| 11 | embassy-rp = { version = "0.1.0", path = "../../../../embassy-rp", features = ["time-driver", "unstable-traits", "nightly"] } | 11 | embassy-rp = { version = "0.1.0", path = "../../../../embassy-rp", features = ["time-driver", "unstable-traits", "nightly"] } |
| 12 | embassy-boot-rp = { version = "0.1.0", path = "../../../../embassy-boot/rp", features = ["nightly"] } | 12 | embassy-boot-rp = { version = "0.1.0", path = "../../../../embassy-boot/rp", features = ["nightly"] } |
| 13 | embassy-embedded-hal = { version = "0.1.0", path = "../../../../embassy-embedded-hal" } | 13 | embassy-embedded-hal = { version = "0.1.0", path = "../../../../embassy-embedded-hal" } |
| @@ -27,6 +27,7 @@ default = ["panic-reset"] | |||
| 27 | debug = [ | 27 | debug = [ |
| 28 | "embassy-rp/defmt", | 28 | "embassy-rp/defmt", |
| 29 | "embassy-boot-rp/defmt", | 29 | "embassy-boot-rp/defmt", |
| 30 | "embassy-sync/defmt", | ||
| 30 | "panic-probe" | 31 | "panic-probe" |
| 31 | ] | 32 | ] |
| 32 | skip-include = [] | 33 | skip-include = [] |
diff --git a/examples/boot/application/rp/src/bin/a.rs b/examples/boot/application/rp/src/bin/a.rs index 15fdaca82..a4602a7ed 100644 --- a/examples/boot/application/rp/src/bin/a.rs +++ b/examples/boot/application/rp/src/bin/a.rs | |||
| @@ -38,7 +38,7 @@ async fn main(_s: Spawner) { | |||
| 38 | let flash = Mutex::new(RefCell::new(flash)); | 38 | let flash = Mutex::new(RefCell::new(flash)); |
| 39 | 39 | ||
| 40 | let config = FirmwareUpdaterConfig::from_linkerfile_blocking(&flash); | 40 | let config = FirmwareUpdaterConfig::from_linkerfile_blocking(&flash); |
| 41 | let mut aligned = AlignedBuffer([0; 4]); | 41 | let mut aligned = AlignedBuffer([0; 1]); |
| 42 | let mut updater = BlockingFirmwareUpdater::new(config, &mut aligned.0); | 42 | let mut updater = BlockingFirmwareUpdater::new(config, &mut aligned.0); |
| 43 | 43 | ||
| 44 | Timer::after(Duration::from_secs(5)).await; | 44 | Timer::after(Duration::from_secs(5)).await; |
