summaryrefslogtreecommitdiff
path: root/ld_scripts
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2015-03-29 21:37:03 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2016-08-18 23:36:07 +0200
commit7b2d322df819e8a339cdb534e69d8e205765d3b2 (patch)
treec18a85a712285d6f3939113824eb2f2636833992 /ld_scripts
parent29d8f1b4e89f31e2f3b448c4d40c6c2518629686 (diff)
Added STM32L0 support.
Diffstat (limited to 'ld_scripts')
-rw-r--r--ld_scripts/arm_flash_ram.ld2
-rw-r--r--ld_scripts/stm32_l0_8.ld6
2 files changed, 8 insertions, 0 deletions
diff --git a/ld_scripts/arm_flash_ram.ld b/ld_scripts/arm_flash_ram.ld
index 9e3f983..34b8a80 100644
--- a/ld_scripts/arm_flash_ram.ld
+++ b/ld_scripts/arm_flash_ram.ld
@@ -75,4 +75,6 @@ SECTIONS {
. = ALIGN(4);
PROVIDE(_bss_end = .);
} > ram
+
+ PROVIDE(_ram_end = ORIGIN(ram) + LENGTH(ram));
}
diff --git a/ld_scripts/stm32_l0_8.ld b/ld_scripts/stm32_l0_8.ld
new file mode 100644
index 0000000..289255c
--- /dev/null
+++ b/ld_scripts/stm32_l0_8.ld
@@ -0,0 +1,6 @@
+MEMORY {
+ flash (rx) : org = 0x08000000, len = 64k
+ ram (rwx) : org = 0x20000000, len = 8k
+}
+
+INCLUDE "arm_flash_ram.ld"