From 93e2527a640f6d051eeb136b7b15993ea18080fd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= <joakim.nohlgard@eistec.se>
Date: Sun, 6 May 2018 07:48:43 +0200
Subject: [PATCH] cc26x0: Adjust ldscript memory segment attributes

---
 cpu/cc26x0/ldscripts/cc26x0f128.ld | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cpu/cc26x0/ldscripts/cc26x0f128.ld b/cpu/cc26x0/ldscripts/cc26x0f128.ld
index 624d92f567..a683c57002 100644
--- a/cpu/cc26x0/ldscripts/cc26x0f128.ld
+++ b/cpu/cc26x0/ldscripts/cc26x0f128.ld
@@ -11,9 +11,9 @@
 /* Memory Space Definitions: */
 MEMORY
 {
-    rom  (rx ) : ORIGIN = 0x00000000, LENGTH = 0x00020000 - 88 /* technically, it's 128K */
-    gpram  (rwx) : ORIGIN = 0x11000000, LENGTH = 8K /* configurable as cache. 20K here, 8K there, and 2K in the ld-script of cc26x0ware */
-    ram    (rwx) : ORIGIN = 0x20000000, LENGTH = 20K /* sram */
+    rom (rx)   : ORIGIN = 0x00000000, LENGTH = 0x00020000 - 88 /* technically, it's 128K */
+    gpram      : ORIGIN = 0x11000000, LENGTH = 8K /* configurable as cache. 20K here, 8K there, and 2K in the ld-script of cc26x0ware */
+    ram (w!rx) : ORIGIN = 0x20000000, LENGTH = 20K /* sram */
 }
 
 INCLUDE cortexm_base.ld
-- 
GitLab