aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsprhawk <hongbo@yang.me>2014-08-29 03:15:47 +0800
committersprhawk <hongbo@yang.me>2014-08-29 03:15:47 +0800
commit5084524a7187755a39f14a24d119de584530fb1d (patch)
treef960df6bb6c0995420e6bb15a9d32884caf39d9d
parenta97ad2be251e7ee995208db62c66e7afd3bbdf6b (diff)
downloadnrf51822-posix-build-scripts-5084524a7187755a39f14a24d119de584530fb1d.tar.gz
nrf51822-posix-build-scripts-5084524a7187755a39f14a24d119de584530fb1d.tar.bz2
nrf51822-posix-build-scripts-5084524a7187755a39f14a24d119de584530fb1d.tar.xz
nrf51822-posix-build-scripts-5084524a7187755a39f14a24d119de584530fb1d.zip
fix bug the origin memory locaion of the app with softdevice (according to the gcc_nrf51_s110_xxaa.ld)
-rw-r--r--Makefile.common6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.common b/Makefile.common
index c3f638f..14b5a73 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -16,12 +16,12 @@ ifeq ($(LINKER_SCRIPT),)
ifeq ($(USE_SOFTDEVICE), S110)
LINKER_SCRIPT = gcc_$(DEVICESERIES)_s110_$(DEVICE_VARIANT).ld
OUTPUT_FILENAME := $(OUTPUT_FILENAME)_s110_$(DEVICE_VARIANT)
- STARTADDRESS = 0x14000
+ STARTADDRESS = 0x16000
else
ifeq ($(USE_SOFTDEVICE), S210)
LINKER_SCRIPT = gcc_$(DEVICESERIES)_s210_$(DEVICE_VARIANT).ld
OUTPUT_FILENAME := $(OUTPUT_FILENAME)_s210_$(DEVICE_VARIANT)
- STARTADDRESS = 0x14000
+ STARTADDRESS = 0x16000
else
LINKER_SCRIPT = gcc_$(DEVICESERIES)_blank_$(DEVICE_VARIANT).ld
OUTPUT_FILENAME := $(OUTPUT_FILENAME)_$(DEVICE_VARIANT)
@@ -175,7 +175,7 @@ w4 0x4001e50c,1 # start erasing all \n\
sleep 1000 \n\
w4 0x4001e514,1 # start erasing UICR \n\
sleep 500 \n\
-w4 0x10001000, 0x14000 # write code region size \n\
+w4 0x10001000, $(STARTADDRESS) # write code region size \n\
sleep 1000 \n\
w4 0x4001e504,1 \n\
sleep 1000 \n\