Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thirdpin/libopencm3.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Tacke <Christian.Tacke+libopencm3@cosmokey.com>2018-02-22 23:25:40 +0300
committerKarl Palsson <karlp@tweak.net.au>2018-02-23 02:51:17 +0300
commit914521de900618e36950c3c9787d57c1ebb2263b (patch)
tree84c7306a5b087d598dc2a6631f4de73316949bbc /ld/linker.ld.S
parent0b3adfb9b391118af3df4f86b0d9fde1be587dd8 (diff)
Add RAM3 support for L4-Plus to linker generation
This only adds basic support. Specific settings still need to be added.
Diffstat (limited to 'ld/linker.ld.S')
-rw-r--r--ld/linker.ld.S10
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/linker.ld.S b/ld/linker.ld.S
index 51cdacd5..908ad9ea 100644
--- a/ld/linker.ld.S
+++ b/ld/linker.ld.S
@@ -47,6 +47,9 @@ MEMORY
#if defined(_RAM2)
ram2 (rwx) : ORIGIN = _RAM2_OFF, LENGTH = _RAM2
#endif
+#if defined(_RAM3)
+ ram3 (rwx) : ORIGIN = _RAM3_OFF, LENGTH = _RAM3
+#endif
#if defined(_CCM)
ccm (rwx) : ORIGIN = _CCM_OFF, LENGTH = _CCM
#endif
@@ -151,6 +154,13 @@ SECTIONS
} >ram2
#endif
+#if defined(_RAM3)
+ .ram3 : {
+ *(.ram3*)
+ . = ALIGN(4);
+ } >ram3
+#endif
+
#if defined(_XSRAM)
.xsram : {
*(.xsram*)