diff options
Diffstat (limited to 'ld_scripts')
-rw-r--r-- | ld_scripts/arm_flash_ram.ld | 2 | ||||
-rw-r--r-- | ld_scripts/stm32_l0_8.ld | 6 |
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" |