aboutsummaryrefslogtreecommitdiffstats
path: root/support
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2015-03-01 15:02:52 -0800
committerbnewbold <bnewbold@robocracy.org>2015-03-03 00:19:07 -0800
commit92728fbd1f92123c92a42fcc36f0fc127011e112 (patch)
treecaa24599aa0a27011e1a3967a523088e64fd5ddf /support
parent2c2e9ff751d46eac3d9564dfe91ec7734e75e07a (diff)
downloadlibrambutan-stm32f4discovery.tar.gz
librambutan-stm32f4discovery.zip
WIP: board support for STM32F4DISCOVERY (huge F407 chip)stm32f4discovery
Diffstat (limited to 'support')
-rw-r--r--support/ld/stm32/mem/sram_192k_flash_1024k/mem-jtag.inc5
-rw-r--r--support/ld/stm32/mem/sram_192k_flash_1024k/mem-ram.inc5
-rw-r--r--support/make/board-includes/st_stm32f4discovery.mk6
3 files changed, 16 insertions, 0 deletions
diff --git a/support/ld/stm32/mem/sram_192k_flash_1024k/mem-jtag.inc b/support/ld/stm32/mem/sram_192k_flash_1024k/mem-jtag.inc
new file mode 100644
index 0000000..074e315
--- /dev/null
+++ b/support/ld/stm32/mem/sram_192k_flash_1024k/mem-jtag.inc
@@ -0,0 +1,5 @@
+MEMORY
+{
+ ram (rwx) : ORIGIN = 0x20000000, LENGTH = 192K
+ rom (rx) : ORIGIN = 0x08000000, LENGTH = 1024K
+}
diff --git a/support/ld/stm32/mem/sram_192k_flash_1024k/mem-ram.inc b/support/ld/stm32/mem/sram_192k_flash_1024k/mem-ram.inc
new file mode 100644
index 0000000..d21f17c
--- /dev/null
+++ b/support/ld/stm32/mem/sram_192k_flash_1024k/mem-ram.inc
@@ -0,0 +1,5 @@
+MEMORY
+{
+ ram (rwx) : ORIGIN = 0x20000000, LENGTH = 112K
+ rom (rx) : ORIGIN = 0x08000000, LENGTH = 0K
+}
diff --git a/support/make/board-includes/st_stm32f4discovery.mk b/support/make/board-includes/st_stm32f4discovery.mk
new file mode 100644
index 0000000..0dc44d9
--- /dev/null
+++ b/support/make/board-includes/st_stm32f4discovery.mk
@@ -0,0 +1,6 @@
+MCU := STM32F407VG
+PRODUCT_ID := 0003
+ERROR_LED_PORT := GPIOD
+ERROR_LED_PIN := 14
+MCU_SERIES := stm32f4
+LD_MEM_DIR := sram_192k_flash_1024k