aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2022-11-07 22:44:20 +0100
committerDario Nieuwenhuis <[email protected]>2022-11-07 22:44:20 +0100
commit27771e60afa0fe71c5512cee241400502e121b91 (patch)
tree53884e89cbd9ef1f6061612350b091d7fcb97c94 /examples
parent0d84533bcb25a0d6cbe6aee5418e1ebf2cbbc26a (diff)
Bake the blob into the firmware by default.
Diffstat (limited to 'examples')
-rw-r--r--examples/rpi-pico-w/src/main.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/rpi-pico-w/src/main.rs b/examples/rpi-pico-w/src/main.rs
index 0915ef6be..dbc7761c8 100644
--- a/examples/rpi-pico-w/src/main.rs
+++ b/examples/rpi-pico-w/src/main.rs
@@ -44,15 +44,15 @@ async fn main(spawner: Spawner) {
44 let p = embassy_rp::init(Default::default()); 44 let p = embassy_rp::init(Default::default());
45 45
46 // Include the WiFi firmware and Country Locale Matrix (CLM) blobs. 46 // Include the WiFi firmware and Country Locale Matrix (CLM) blobs.
47 //let fw = include_bytes!("../../../firmware/43439A0.bin"); 47 let fw = include_bytes!("../../../firmware/43439A0.bin");
48 //let clm = include_bytes!("../../../firmware/43439A0_clm.bin"); 48 let clm = include_bytes!("../../../firmware/43439A0_clm.bin");
49 49
50 // To make flashing faster for development, you may want to flash the firmwares independently 50 // To make flashing faster for development, you may want to flash the firmwares independently
51 // at hardcoded addresses, instead of baking them into the program with `include_bytes!`: 51 // at hardcoded addresses, instead of baking them into the program with `include_bytes!`:
52 // probe-rs-cli download 43439A0.bin --format bin --chip RP2040 --base-address 0x10100000 52 // probe-rs-cli download 43439A0.bin --format bin --chip RP2040 --base-address 0x10100000
53 // probe-rs-cli download 43439A0.clm_blob --format bin --chip RP2040 --base-address 0x10140000 53 // probe-rs-cli download 43439A0.clm_blob --format bin --chip RP2040 --base-address 0x10140000
54 let fw = unsafe { core::slice::from_raw_parts(0x10100000 as *const u8, 224190) }; 54 //let fw = unsafe { core::slice::from_raw_parts(0x10100000 as *const u8, 224190) };
55 let clm = unsafe { core::slice::from_raw_parts(0x10140000 as *const u8, 4752) }; 55 //let clm = unsafe { core::slice::from_raw_parts(0x10140000 as *const u8, 4752) };
56 56
57 let pwr = Output::new(p.PIN_23, Level::Low); 57 let pwr = Output::new(p.PIN_23, Level::Low);
58 let cs = Output::new(p.PIN_25, Level::High); 58 let cs = Output::new(p.PIN_25, Level::High);