Skip to content

Instantly share code, notes, and snippets.

View blueluna's full-sized avatar
🇸🇪
Bits and bobs

Erik Bånvik blueluna

🇸🇪
Bits and bobs
  • Östersund, Sweden
View GitHub Profile
[esvensson@mir nRF52840-DK]$ cargo embed --release --example blinky_interrupt_rtt
Finished release [optimized] target(s) in 0.01s
DEBUG cargo_project > Project::query(path=/home/esvensson/rust/nRF52840-DK): root=/home/esvensson/rust/nRF52840-DK
DEBUG cargo_project > workspace search: cwd=/home/esvensson/rust
Flashing /home/esvensson/rust/nRF52840-DK/target/thumbv7em-none-eabihf/release/examples/blinky_interrupt_rtt
DEBUG probe_rs::probe::daplink::tools > Attempting to open 1366:1015 in CMSIS-DAP v1 mode
DEBUG probe_rs::probe::stlink::usb_interface > Acquired libusb context.
DEBUG jaylink > libusb 1.0.23.11397
DEBUG jaylink > libusb has capability API: true
DEBUG jaylink > libusb has HID access: true
---
name: nRF52 Series
manufacturer: ~
variants:
- name: nRF52805_xxAA
part: ~
memory_map:
- Ram:
range:
start: 536870912
@blueluna
blueluna / nrf52833.patch
Created June 5, 2020 15:03
Adding nRF52833 to probe-rs
diff --git a/probe-rs/targets/nRF52 Series.yaml b/probe-rs/targets/nRF52 Series.yaml
index 1155c07..fb3e5f1 100644
--- a/probe-rs/targets/nRF52 Series.yaml
+++ b/probe-rs/targets/nRF52 Series.yaml
@@ -65,6 +65,22 @@ variants:
- nrf52xxx
- nrf52xxx_uicr
- nrf52xxx_sde
+ - name: nRF52833_xxAA
+ memory_map:
@blueluna
blueluna / gist:62e744299c77df4f8460af432d09f524
Created October 18, 2019 14:17
probe-rs with nrf52840-mdk
$ RUST_BACKTRACE=1 cargo flash --target thumbv7em-none-eabihf --example nrf52840-mdk-listener
Finished dev [optimized + debuginfo] target(s) in 0.03s
Flashing ./target/thumbv7em-none-eabihf/debug/examples/nrf52840-mdk-listener
IDR {
REVISION: 0x2,
DESIGNER: 0x23b,
CLASS: MEMAP,
_RES0: 0x0,
VARIANT: 0x1,
TYPE: AMBA_AHB3,
@blueluna
blueluna / keybase.md
Created April 16, 2019 08:48
Keybase

Keybase proof

I hereby claim:

  • I am blueluna on github.
  • I am blueluna (https://keybase.io/blueluna) on keybase.
  • I have a public key ASAQNaJn6Rjf_GCiNues1-9mBv4hFt4VyrsZQSFcKkq6ngo

To claim this, I am signing this object:

@blueluna
blueluna / zigbee-rs-nrf52840-dk.txt
Created March 30, 2019 10:09
Zigbee-RS with data from nRF52840-DK over serial
Read packets over /dev/ttyACM0
## Packet 51 LQI 6
4188198f20ffff14460912fcff144601ec37e3dcfeff9ffd90284190040037e3dcfeff9ffd90000d50adc954444a5c1a21fdce
Packet TYPE: Data CMPR SEQ: 25 DST: 208f:ffff SRC: 208f:4614 Payload: 0912fcff144601ec37e3dcfeff9ffd90284190040037e3dcfeff9ffd90000d50adc954444a5c1a21fdce
FrameControl { frame_type: NWKCommand, protocol_version: 2, discover_route: SurpressDiscovery, multicast: false, security_enabled: true, contains_source_route_frame: false, contains_destination_ieee_address: false, contains_source_ieee_address: true }
## Packet 51 LQI 37
41884f8f20ffff00000912fcff000001ee382e03ffff2e21002812a71800382e03ffff2e210000ba9fd5a90953d60e56ec63df
Packet TYPE: Data CMPR SEQ: 79 DST: 208f:ffff SRC: 208f:0000 Payload: 0912fcff000001ee382e03ffff2e21002812a71800382e03ffff2e210000ba9fd5a90953d60e56ec63df
FrameControl { frame_type: NWKCommand, protocol_version: 2, discover_route: SurpressDiscovery, multicast: false, security_enabled: true, contains_source_route_frame: false, contains_des