Skip to content

Instantly share code, notes, and snippets.

@mowtschan
Last active November 7, 2021 10:35
Show Gist options
  • Save mowtschan/d1956b4634a84698ab3a96472f710610 to your computer and use it in GitHub Desktop.
Save mowtschan/d1956b4634a84698ab3a96472f710610 to your computer and use it in GitHub Desktop.
Burn openhaystack firmware on NRF51822 device
run in the terminal:
```
brew install open-ocd
openocd -f /usr/local/share/openocd/scripts/interface/stlink.cfg -f /usr/local/share/openocd/scripts/target/nrf51.cfg
```
open another terminal window:
```
telnet localhost 4444
reset halt
nrf51 mass_erase
program /path/to/openhaystack_firmware.bin
reset
exit
```
@mowtschan
Copy link
Author

image

@mowtschan
Copy link
Author

base64 -D <<< your_base64_key_from_openhaystack_app | xxd -p | cut -c13-18

image

@mowtschan
Copy link
Author

mowtschan commented Oct 7, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment