aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/boards
diff options
context:
space:
mode:
authorFabio Utzig <utzig@utzig.org>2016-02-14 20:59:54 -0200
committerFabio Utzig <utzig@utzig.org>2016-02-14 20:59:54 -0200
commit97bf343a8b3cea8618965d93668ae98915088208 (patch)
tree35ec1378738011ecc1cf5b086adaa079e5efb7e6 /os/hal/boards
parentdb994ed1a671fe299499dc9ce0cd28cfebc2f409 (diff)
parentd3658d49aaf532bfc73a17b7e3d5d2cbf115f718 (diff)
downloadChibiOS-Contrib-97bf343a8b3cea8618965d93668ae98915088208.tar.gz
ChibiOS-Contrib-97bf343a8b3cea8618965d93668ae98915088208.tar.bz2
ChibiOS-Contrib-97bf343a8b3cea8618965d93668ae98915088208.zip
Merge pull request #32 from sdalu/flash
Ease dev with flash/debug target helper
Diffstat (limited to 'os/hal/boards')
-rw-r--r--os/hal/boards/NRF51-DK/board.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/os/hal/boards/NRF51-DK/board.mk b/os/hal/boards/NRF51-DK/board.mk
index 4d20da3..9619bd4 100644
--- a/os/hal/boards/NRF51-DK/board.mk
+++ b/os/hal/boards/NRF51-DK/board.mk
@@ -3,3 +3,9 @@ BOARDSRC = ${CHIBIOS_CONTRIB}/os/hal/boards/NRF51-DK/board.c
# Required include directories
BOARDINC = ${CHIBIOS_CONTRIB}/os/hal/boards/NRF51-DK
+
+# Flash
+JLINK_DEVICE = nrf51422
+JLINK_PRE_FLASH = w4 4001e504 1
+JLINK_ERASE_ALL = w4 4001e504 2\nw4 4001e50c 1\nsleep 100
+