Created
September 15, 2020 16:30
-
-
Save skrishnakanth/0ad8ee06f337a266955c30b0fe88687f to your computer and use it in GitHub Desktop.
Script for flashing nRF51822 microcontroller using OpenOCD and STLink v2
This file contains 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
#!/bin/bash | |
openocd -f interface/stlink.cfg -f target/nrf51.cfg -c "init" -c "halt" -c "nrf51 mass_erase" -c "program $1 verify" -c "reset" -c "exit" |
Author
skrishnakanth
commented
Sep 15, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment