Last active
May 22, 2017 18:21
-
-
Save mogenson/9173a4ecade298929a3a116b6b04f1a1 to your computer and use it in GitHub Desktop.
JLinkExe commands to program nrf51822
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
J-Link>device nrf51822_xxAA | |
J-Link>speed 1000 | |
J-Link>if SWD | |
J-Link>connect | |
J-Link>r | |
# erase the entire flash | |
J-Link>w4 4001e504 2 | |
J-Link>w4 4001e50c 1 | |
J-Link>w4 4001e514 1 | |
J-Link>r | |
# enable the flash for writing | |
J-Link>w4 4001e504 1 | |
J-Link>loadbin my-uicr.bin 0x10001000 | |
J-Link>loadbin my-softdevice.bin 0 | |
J-Link>loadfile my-code.hex 0x20000 | |
J-Link>r | |
J-Link>go | |
J-Link>exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment