aboutsummaryrefslogtreecommitdiffstats
path: root/stm32conf/lanchon-stm32-user.ld
diff options
context:
space:
mode:
Diffstat (limited to 'stm32conf/lanchon-stm32-user.ld')
-rw-r--r--stm32conf/lanchon-stm32-user.ld22
1 files changed, 22 insertions, 0 deletions
diff --git a/stm32conf/lanchon-stm32-user.ld b/stm32conf/lanchon-stm32-user.ld
new file mode 100644
index 0000000..32866a2
--- /dev/null
+++ b/stm32conf/lanchon-stm32-user.ld
@@ -0,0 +1,22 @@
+/* Linker script for STM32 (by Lanchon),
+ * ROM and RAM relocated to their positions
+ * as placed by Maple bootloader
+ *
+ * Configure target memory and included script
+ * according to your application requirements. */
+
+/* Define memory spaces. */
+MEMORY
+{
+ ram (rwx) : ORIGIN = 0x20000C00, LENGTH = 17K
+ rom (rx) : ORIGIN = 0x08005000, LENGTH = 108K
+}
+
+/* Include the appropriate script.
+ * Options:
+ * lanchon-stm32-rom.ld
+ * lanchon-stm32-rom-hosted.ld
+ * lanchon-stm32-ram.ld
+ * lanchon-stm32-ram-hosted.ld
+ */
+INCLUDE "lanchon-stm32-ram.ld"