summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam San Filippo <wills@runtime.io>2016-05-10 20:47:41 -0700
committerWilliam San Filippo <wills@runtime.io>2016-05-10 21:15:22 -0700
commitc70353c193bf3e91a095cfc5076ac578f8e1bc69 (patch)
treee72d1c357fe6352eed95d84502643537e3ad020c
parent4146b1a4b7fb68201946b22a479a46b87b19f4ee (diff)
Fix incorrect RAM allocation (was 32K; now 16K)
-rwxr-xr-xhw/bsp/nrf51-arduino_101/nrf51dk-16kbram_no_boot.ld2
-rwxr-xr-xhw/bsp/nrf51dk-16kbram/nrf51dk-16kbram_no_boot.ld8
2 files changed, 5 insertions, 5 deletions
diff --git a/hw/bsp/nrf51-arduino_101/nrf51dk-16kbram_no_boot.ld b/hw/bsp/nrf51-arduino_101/nrf51dk-16kbram_no_boot.ld
index bf06c920..133ba36a 100755
--- a/hw/bsp/nrf51-arduino_101/nrf51dk-16kbram_no_boot.ld
+++ b/hw/bsp/nrf51-arduino_101/nrf51dk-16kbram_no_boot.ld
@@ -20,7 +20,7 @@ OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
MEMORY
{
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x40000
- RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x8000
+ RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x4000
}
/* Linker script to place sections and symbol values. Should be used together
diff --git a/hw/bsp/nrf51dk-16kbram/nrf51dk-16kbram_no_boot.ld b/hw/bsp/nrf51dk-16kbram/nrf51dk-16kbram_no_boot.ld
index b5547fc3..3c123354 100755
--- a/hw/bsp/nrf51dk-16kbram/nrf51dk-16kbram_no_boot.ld
+++ b/hw/bsp/nrf51dk-16kbram/nrf51dk-16kbram_no_boot.ld
@@ -20,14 +20,14 @@ OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
MEMORY
{
FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x40000
- RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x8000
+ RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x4000
}
/* Linker script to place sections and symbol values. Should be used together
* with other linker script that defines memory regions FLASH and RAM.
* It references following symbols, which must be defined in code:
* Reset_Handler : Entry of reset handler
- *
+ *
* It defines following symbols, which code can use without definition:
* __exidx_start
* __exidx_end
@@ -85,7 +85,7 @@ SECTIONS
} > FLASH
- .ARM.extab :
+ .ARM.extab :
{
*(.ARM.extab* .gnu.linkonce.armextab.*)
. = ALIGN(4);
@@ -109,7 +109,7 @@ SECTIONS
. = . + (__isr_vector_end - __isr_vector_start);
. = ALIGN(4);
} > RAM
-
+
.data : AT (__etext)
{
__data_start__ = .;