aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Ferreira <[email protected]>2024-08-26 20:28:30 +0200
committerGitHub <[email protected]>2024-08-26 20:28:30 +0200
commit9347571fea243719826ff21b250bc0dff7f51fa5 (patch)
tree05d2eb76d5c20a594512fb1a7695d37cf4762ad5
parenta7bfec2467b2fbb9623fb7713ca8f1cca5e78f56 (diff)
rp: add example code to flash bluetooth fw (#3290)
-rw-r--r--examples/rp/src/bin/bluetooth.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/rp/src/bin/bluetooth.rs b/examples/rp/src/bin/bluetooth.rs
index 901521b60..7524e7929 100644
--- a/examples/rp/src/bin/bluetooth.rs
+++ b/examples/rp/src/bin/bluetooth.rs
@@ -43,8 +43,10 @@ async fn main(spawner: Spawner) {
43 // at hardcoded addresses, instead of baking them into the program with `include_bytes!`: 43 // at hardcoded addresses, instead of baking them into the program with `include_bytes!`:
44 // probe-rs download 43439A0.bin --format bin --chip RP2040 --base-address 0x10100000 44 // probe-rs download 43439A0.bin --format bin --chip RP2040 --base-address 0x10100000
45 // probe-rs download 43439A0_clm.bin --format bin --chip RP2040 --base-address 0x10140000 45 // probe-rs download 43439A0_clm.bin --format bin --chip RP2040 --base-address 0x10140000
46 // probe-rs download 43439A0_btfw.bin --format bin --chip RP2040 --base-address 0x10141400
46 //let fw = unsafe { core::slice::from_raw_parts(0x10100000 as *const u8, 224190) }; 47 //let fw = unsafe { core::slice::from_raw_parts(0x10100000 as *const u8, 224190) };
47 //let clm = unsafe { core::slice::from_raw_parts(0x10140000 as *const u8, 4752) }; 48 //let clm = unsafe { core::slice::from_raw_parts(0x10140000 as *const u8, 4752) };
49 //let btfw = unsafe { core::slice::from_raw_parts(0x10141400 as *const u8, 6164) };
48 50
49 let pwr = Output::new(p.PIN_23, Level::Low); 51 let pwr = Output::new(p.PIN_23, Level::Low);
50 let cs = Output::new(p.PIN_25, Level::High); 52 let cs = Output::new(p.PIN_25, Level::High);