summaryrefslogtreecommitdiff
path: root/ld_scripts
diff options
context:
space:
mode:
Diffstat (limited to 'ld_scripts')
-rw-r--r--ld_scripts/stm32_f303_b.ld7
-rw-r--r--ld_scripts/stm32_f303_c.ld7
-rw-r--r--ld_scripts/stm32_f373_8.ld6
-rw-r--r--ld_scripts/stm32_f373_b.ld6
-rw-r--r--ld_scripts/stm32_f373_c.ld6
5 files changed, 32 insertions, 0 deletions
diff --git a/ld_scripts/stm32_f303_b.ld b/ld_scripts/stm32_f303_b.ld
new file mode 100644
index 0000000..a0cb6b1
--- /dev/null
+++ b/ld_scripts/stm32_f303_b.ld
@@ -0,0 +1,7 @@
+MEMORY {
+ flash (rx) : org = 0x08000000, len = 128k
+ ram (rwx) : org = 0x20000000, len = 32k
+ ccm (rwx) : org = 0x10000000, len = 8k
+}
+
+INCLUDE "arm_flash_ram.ld"
diff --git a/ld_scripts/stm32_f303_c.ld b/ld_scripts/stm32_f303_c.ld
new file mode 100644
index 0000000..4cc4894
--- /dev/null
+++ b/ld_scripts/stm32_f303_c.ld
@@ -0,0 +1,7 @@
+MEMORY {
+ flash (rx) : org = 0x08000000, len = 256k
+ ram (rwx) : org = 0x20000000, len = 40k
+ ccm (rwx) : org = 0x10000000, len = 8k
+}
+
+INCLUDE "arm_flash_ram.ld"
diff --git a/ld_scripts/stm32_f373_8.ld b/ld_scripts/stm32_f373_8.ld
new file mode 100644
index 0000000..929ee6e
--- /dev/null
+++ b/ld_scripts/stm32_f373_8.ld
@@ -0,0 +1,6 @@
+MEMORY {
+ flash (rx) : org = 0x08000000, len = 64k
+ ram (rwx) : org = 0x20000000, len = 16k
+}
+
+INCLUDE "arm_flash_ram.ld"
diff --git a/ld_scripts/stm32_f373_b.ld b/ld_scripts/stm32_f373_b.ld
new file mode 100644
index 0000000..ab6620c
--- /dev/null
+++ b/ld_scripts/stm32_f373_b.ld
@@ -0,0 +1,6 @@
+MEMORY {
+ flash (rx) : org = 0x08000000, len = 128k
+ ram (rwx) : org = 0x20000000, len = 24k
+}
+
+INCLUDE "arm_flash_ram.ld"
diff --git a/ld_scripts/stm32_f373_c.ld b/ld_scripts/stm32_f373_c.ld
new file mode 100644
index 0000000..812a041
--- /dev/null
+++ b/ld_scripts/stm32_f373_c.ld
@@ -0,0 +1,6 @@
+MEMORY {
+ flash (rx) : org = 0x08000000, len = 256k
+ ram (rwx) : org = 0x20000000, len = 32k
+}
+
+INCLUDE "arm_flash_ram.ld"