summaryrefslogtreecommitdiff
path: root/platforms/stm32
diff options
context:
space:
mode:
Diffstat (limited to 'platforms/stm32')
-rw-r--r--platforms/stm32/f4.yaml30
-rw-r--r--platforms/stm32/index.yaml8
2 files changed, 38 insertions, 0 deletions
diff --git a/platforms/stm32/f4.yaml b/platforms/stm32/f4.yaml
new file mode 100644
index 0000000..0d336ce
--- /dev/null
+++ b/platforms/stm32/f4.yaml
@@ -0,0 +1,30 @@
+- match:
+ mem: e
+ mem:
+ flash:
+ origin: 0x08000000
+ size: 512k
+ ld_script: stm32_f4_e.ld
+
+- match:
+ mem: g
+ mem:
+ flash:
+ origin: 0x08000000
+ size: 1M
+ ld_script: stm32_f4_g.ld
+
+- mem:
+ ram:
+ origin: 0x20000000
+ size: 128k
+
+ ccm:
+ origin: 0x10000000
+ size: 64k
+
+ define:
+ - STM32F4
+
+ meta:
+ cpu: cortex-m4f \ No newline at end of file
diff --git a/platforms/stm32/index.yaml b/platforms/stm32/index.yaml
new file mode 100644
index 0000000..a8cb56f
--- /dev/null
+++ b/platforms/stm32/index.yaml
@@ -0,0 +1,8 @@
+- match:
+ mcu: !re stm32(?P<family>..)(?P<variant>..).(?P<mem>.)
+
+ -:
+ - match:
+ family: f4
+
+ -: !import f4.yaml