Last active
November 7, 2021 10:35
-
-
Save mowtschan/d1956b4634a84698ab3a96472f710610 to your computer and use it in GitHub Desktop.
Burn openhaystack firmware on NRF51822 device
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
base64 -D <<< your_base64_key_from_openhaystack_app | xxd -p | cut -c13-18