From 92728fbd1f92123c92a42fcc36f0fc127011e112 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sun, 1 Mar 2015 15:02:52 -0800 Subject: WIP: board support for STM32F4DISCOVERY (huge F407 chip) --- support/ld/stm32/mem/sram_192k_flash_1024k/mem-jtag.inc | 5 +++++ support/ld/stm32/mem/sram_192k_flash_1024k/mem-ram.inc | 5 +++++ support/make/board-includes/st_stm32f4discovery.mk | 6 ++++++ 3 files changed, 16 insertions(+) create mode 100644 support/ld/stm32/mem/sram_192k_flash_1024k/mem-jtag.inc create mode 100644 support/ld/stm32/mem/sram_192k_flash_1024k/mem-ram.inc create mode 100644 support/make/board-includes/st_stm32f4discovery.mk (limited to 'support') 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 -- cgit v1.2.3