diff --git a/cpu/nrf51/ldscripts/nrf51x22xxaa.ld b/cpu/nrf51/ldscripts/nrf51x22xxaa.ld index 72023d26aa..50dbd4e652 100644 --- a/cpu/nrf51/ldscripts/nrf51x22xxaa.ld +++ b/cpu/nrf51/ldscripts/nrf51x22xxaa.ld @@ -21,7 +21,7 @@ MEMORY { rom (rx) : ORIGIN = 0x00000000, LENGTH = 256K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 16K + ram (w!rx) : ORIGIN = 0x20000000, LENGTH = 16K } INCLUDE cortexm_base.ld diff --git a/cpu/nrf51/ldscripts/nrf51x22xxab.ld b/cpu/nrf51/ldscripts/nrf51x22xxab.ld index b72c9324ff..805bf913c7 100644 --- a/cpu/nrf51/ldscripts/nrf51x22xxab.ld +++ b/cpu/nrf51/ldscripts/nrf51x22xxab.ld @@ -21,7 +21,7 @@ MEMORY { rom (rx) : ORIGIN = 0x00000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 16K + ram (w!rx) : ORIGIN = 0x20000000, LENGTH = 16K } INCLUDE cortexm_base.ld diff --git a/cpu/nrf51/ldscripts/nrf51x22xxac.ld b/cpu/nrf51/ldscripts/nrf51x22xxac.ld index 0e60dbd6ca..6b755b32bb 100644 --- a/cpu/nrf51/ldscripts/nrf51x22xxac.ld +++ b/cpu/nrf51/ldscripts/nrf51x22xxac.ld @@ -21,7 +21,7 @@ MEMORY { rom (rx) : ORIGIN = 0x00000000, LENGTH = 256K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 32K + ram (w!rx) : ORIGIN = 0x20000000, LENGTH = 32K } INCLUDE cortexm_base.ld