Bake the blob into the firmware by default.

This commit is contained in:
Dario Nieuwenhuis 2022-11-07 22:44:20 +01:00
parent 0d84533bcb
commit 27771e60af

View file

@ -44,15 +44,15 @@ async fn main(spawner: Spawner) {
let p = embassy_rp::init(Default::default()); let p = embassy_rp::init(Default::default());
// Include the WiFi firmware and Country Locale Matrix (CLM) blobs. // Include the WiFi firmware and Country Locale Matrix (CLM) blobs.
//let fw = include_bytes!("../../../firmware/43439A0.bin"); let fw = include_bytes!("../../../firmware/43439A0.bin");
//let clm = include_bytes!("../../../firmware/43439A0_clm.bin"); let clm = include_bytes!("../../../firmware/43439A0_clm.bin");
// To make flashing faster for development, you may want to flash the firmwares independently // To make flashing faster for development, you may want to flash the firmwares independently
// at hardcoded addresses, instead of baking them into the program with `include_bytes!`: // at hardcoded addresses, instead of baking them into the program with `include_bytes!`:
// probe-rs-cli download 43439A0.bin --format bin --chip RP2040 --base-address 0x10100000 // probe-rs-cli download 43439A0.bin --format bin --chip RP2040 --base-address 0x10100000
// probe-rs-cli download 43439A0.clm_blob --format bin --chip RP2040 --base-address 0x10140000 // probe-rs-cli download 43439A0.clm_blob --format bin --chip RP2040 --base-address 0x10140000
let fw = unsafe { core::slice::from_raw_parts(0x10100000 as *const u8, 224190) }; //let fw = unsafe { core::slice::from_raw_parts(0x10100000 as *const u8, 224190) };
let clm = unsafe { core::slice::from_raw_parts(0x10140000 as *const u8, 4752) }; //let clm = unsafe { core::slice::from_raw_parts(0x10140000 as *const u8, 4752) };
let pwr = Output::new(p.PIN_23, Level::Low); let pwr = Output::new(p.PIN_23, Level::Low);
let cs = Output::new(p.PIN_25, Level::High); let cs = Output::new(p.PIN_25, Level::High);