From 7b2d322df819e8a339cdb534e69d8e205765d3b2 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sun, 29 Mar 2015 21:37:03 +0200 Subject: Added STM32L0 support. --- ld_scripts/arm_flash_ram.ld | 2 ++ ld_scripts/stm32_l0_8.ld | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 ld_scripts/stm32_l0_8.ld (limited to 'ld_scripts') 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" -- cgit v1.2.3