Bake the blob into the firmware by default.
This commit is contained in:
parent
0d84533bcb
commit
27771e60af
1 changed files with 4 additions and 4 deletions
|
@ -44,15 +44,15 @@ async fn main(spawner: Spawner) {
|
|||
let p = embassy_rp::init(Default::default());
|
||||
|
||||
// Include the WiFi firmware and Country Locale Matrix (CLM) blobs.
|
||||
//let fw = include_bytes!("../../../firmware/43439A0.bin");
|
||||
//let clm = include_bytes!("../../../firmware/43439A0_clm.bin");
|
||||
let fw = include_bytes!("../../../firmware/43439A0.bin");
|
||||
let clm = include_bytes!("../../../firmware/43439A0_clm.bin");
|
||||
|
||||
// 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!`:
|
||||
// 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
|
||||
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 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 pwr = Output::new(p.PIN_23, Level::Low);
|
||||
let cs = Output::new(p.PIN_25, Level::High);
|
||||
|
|
Loading…
Reference in a new issue