aboutsummaryrefslogtreecommitdiff
path: root/Makefile.common
diff options
context:
space:
mode:
authorsprhawk <hongbo@yang.me>2014-08-29 02:17:11 +0800
committersprhawk <hongbo@yang.me>2014-08-29 02:17:11 +0800
commit471695d405a921613889f2ccd8890fdff51ead38 (patch)
tree88d70eb89329b58e0d86a7c120b4218c0a4e796a /Makefile.common
parent4b0606cfb59dcc1d8fdad7fb7341b733e0d46f18 (diff)
downloadnrf51822-posix-build-scripts-471695d405a921613889f2ccd8890fdff51ead38.tar.gz
nrf51822-posix-build-scripts-471695d405a921613889f2ccd8890fdff51ead38.tar.bz2
nrf51822-posix-build-scripts-471695d405a921613889f2ccd8890fdff51ead38.tar.xz
nrf51822-posix-build-scripts-471695d405a921613889f2ccd8890fdff51ead38.zip
updated flash_softdevice
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile.common b/Makefile.common
index 9f81b00..ba9fcef 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -151,7 +151,7 @@ w4 0x4001e504,2 # enable erase all \n\
w4 0x4001e50c,1 # start erasing \n\
sleep 1000 \n\
r \n\
-qc \n\
+q \n\
" \
> $(OUTPUT_BINARY_DIRECTORY)/erase_all.jlink
@@ -165,9 +165,14 @@ h \n\
w4 0x4001e504,2 # enable erase \n\
w4 0x4001e50c,1 # start erasing all \n\
sleep 1000 \n\
-w4 0x10001000, 0x14000 \n\
+w4 0x4001e514,1 # start erasing UICR \n\
+sleep 500 \n\
+w4 0x10001000, 0x14000 # write code region size \n\
+sleep 1000 \n\
w4 0x4001e504,1 \n\
+sleep 1000 \n\
loadbin \"$(SOFTDEVICE_BIN_PATH)\", 0x0 \n\
+sleep 15000 \n\
r \n\
qc \n\
" > $(OUTPUT_BINARY_DIRECTORY)/flash_softdevice.jlink