aboutsummaryrefslogtreecommitdiff
path: root/buildroot/share/PlatformIO/ldscripts/STM32F103VE_longer.ld
diff options
context:
space:
mode:
Diffstat (limited to 'buildroot/share/PlatformIO/ldscripts/STM32F103VE_longer.ld')
-rw-r--r--buildroot/share/PlatformIO/ldscripts/STM32F103VE_longer.ld14
1 files changed, 14 insertions, 0 deletions
diff --git a/buildroot/share/PlatformIO/ldscripts/STM32F103VE_longer.ld b/buildroot/share/PlatformIO/ldscripts/STM32F103VE_longer.ld
new file mode 100644
index 0000000..e7a7101
--- /dev/null
+++ b/buildroot/share/PlatformIO/ldscripts/STM32F103VE_longer.ld
@@ -0,0 +1,14 @@
+MEMORY
+{
+ ram (rwx) : ORIGIN = 0x20000000, LENGTH = 64K - 40
+ rom (rx) : ORIGIN = 0x08010000, LENGTH = 512K - 64K
+}
+
+/* Provide memory region aliases for common.inc */
+REGION_ALIAS("REGION_TEXT", rom);
+REGION_ALIAS("REGION_DATA", ram);
+REGION_ALIAS("REGION_BSS", ram);
+REGION_ALIAS("REGION_RODATA", rom);
+
+/* Let common.inc handle the real work. */
+INCLUDE common.inc