diff --git a/boards/bluepill/Makefile.include b/boards/bluepill/Makefile.include index 85c59e3a03..c87a5146a6 100644 --- a/boards/bluepill/Makefile.include +++ b/boards/bluepill/Makefile.include @@ -15,16 +15,16 @@ include $(RIOTMAKE)/tools/serial.inc.mk # To stop bootloader from loading an existing firmware, pull down # (ground) GPIO B1. ifeq ($(PROGRAMMER),dfu-util) - export LINKER_SCRIPT = stm32f103c8_bluepill.ld - export BINFILE = $(patsubst %.elf,%.bin,$(ELFFILE)) + export ROM_OFFSET ?= 0x2000 # Skip the space needed by the embedded bootloader + export BINFILE = $(patsubst %.elf,%.bin,$(ELFFILE)) + export FLASHER = dfu-util + export DEBUGGER = # no debugger + export RESET = # dfu-util has no support for resetting the device - export FLASHER = dfu-util - export DEBUGGER = # no debugger - export RESET = # dfu-util has no support for resetting the device - - export OFLAGS = -O binary - export FFLAGS = -d 1d50:6017 -s 0x08002000:leave -D "$(HEXFILE)" + export OFLAGS = -O binary + export FFLAGS = -d 1d50:6017 -s 0x08002000:leave -D "$(HEXFILE)" else + # this board uses openocd by default export DEBUG_ADAPTER ?= stlink export STLINK_VERSION ?= 2 diff --git a/boards/nucleo-l152/Makefile.include b/boards/nucleo-l152/Makefile.include index 5ba7da128f..f6bf89126a 100644 --- a/boards/nucleo-l152/Makefile.include +++ b/boards/nucleo-l152/Makefile.include @@ -1,6 +1,6 @@ ## the cpu to build for export CPU = stm32l1 -export CPU_MODEL = stm32l152ret6 +export CPU_MODEL = stm32l152re # load the common Makefile.include for Nucleo boards include $(RIOTBOARD)/common/nucleo/Makefile.include diff --git a/boards/opencm904/Makefile.include b/boards/opencm904/Makefile.include index 18b0b6cffa..c84c2fc89e 100644 --- a/boards/opencm904/Makefile.include +++ b/boards/opencm904/Makefile.include @@ -2,9 +2,6 @@ export CPU = stm32f1 export CPU_MODEL = stm32f103cb -# custom linkerscript -export LINKER_SCRIPT = stm32f103cb_opencm904.ld - # custom flasher to use with the bootloader export FLASHER = $(RIOTBOARD)/$(BOARD)/dist/robotis-loader.py export DEBUGGER = @@ -19,5 +16,8 @@ export DEBUGGER_FLAGS = PORT_LINUX ?= /dev/ttyACM0 PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*))) +# Skip the space needed by the embedded bootloader +export ROM_OFFSET ?= 0x3000 + # setup serial terminal include $(RIOTMAKE)/tools/serial.inc.mk diff --git a/boards/spark-core/Makefile.include b/boards/spark-core/Makefile.include index b2942cc3f8..98c8cbee6a 100644 --- a/boards/spark-core/Makefile.include +++ b/boards/spark-core/Makefile.include @@ -2,9 +2,6 @@ export CPU = stm32f1 export CPU_MODEL = stm32f103cb -# the spark-core uses its own custom linkerscript... -export LINKER_SCRIPT = stm32f103cb_sparkcore.ld - # configure the serial interface PORT_LINUX ?= /dev/ttyUSB0 PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*))) @@ -21,5 +18,8 @@ export FFLAGS = -d 1d50:607f -a 0 -s 0x08005000:leave -D "$(HEXFILE)" export INCLUDES += -I$(RIOTCPU)/$(CPU)/include/ -I$(RIOTBOARD)/$(BOARD)/include/ +# Skip the space needed by the embedded bootloader +export ROM_OFFSET ?= 0x5000 + # this board uses openocd include $(RIOTMAKE)/tools/openocd.inc.mk diff --git a/cpu/stm32_common/Makefile.include b/cpu/stm32_common/Makefile.include index ea7ac7c76b..cdc5e53a00 100644 --- a/cpu/stm32_common/Makefile.include +++ b/cpu/stm32_common/Makefile.include @@ -8,5 +8,15 @@ USEMODULE += periph_common # include stm32 common functions and stm32 common periph drivers USEMODULE += stm32_common stm32_common_periph +# For stm32 cpu's we use the stm32_common.ld linker script +export LINKFLAGS += -L$(RIOTCPU)/stm32_common/ldscripts +LINKER_SCRIPT ?= stm32_common.ld + # export the common include directory export INCLUDES += -I$(RIOTCPU)/stm32_common/include + +include $(RIOTCPU)/stm32_common/stm32_mem_lengths.mk + +ifneq (,$(CCMRAM_LEN)) + LINKFLAGS += $(LINKFLAGPREFIX)--defsym=_ccmram_length=$(CCMRAM_LEN) +endif diff --git a/cpu/stm32_common/ldscripts/stm32_common.ld b/cpu/stm32_common/ldscripts/stm32_common.ld new file mode 100644 index 0000000000..fcd9635417 --- /dev/null +++ b/cpu/stm32_common/ldscripts/stm32_common.ld @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2017 Inria + * + * This file is subject to the terms and conditions of the GNU Lesser + * General Public License v2.1. See the file LICENSE in the top level + * directory for more details. + */ + +/** + * @addtogroup cpu_cortexm_common + * @{ + * + * @file + * @brief Memory definitions for the Cortex-M family + * + * @author Francisco Acosta + * + * @} + */ + +ccmram_length = DEFINED( ccmram_len ) ? ccmram_len : 0x0 ; + +MEMORY +{ + ccmram (rwx): ORIGIN = 0x10000000, LENGTH = ccmram_length +} + +INCLUDE cortexm.ld diff --git a/cpu/stm32_common/stm32_mem_lengths.mk b/cpu/stm32_common/stm32_mem_lengths.mk new file mode 100644 index 0000000000..782b0983d1 --- /dev/null +++ b/cpu/stm32_common/stm32_mem_lengths.mk @@ -0,0 +1,309 @@ +# Set the common memory addresses for stm32 MCU family +ROM_START_ADDR ?= 0x08000000 +RAM_START_ADDR ?= 0x20000000 + +# The next block takes care of setting the rigth lengths of RAM and ROM +# for the stm32 family. Most of the CPUs should have been taken into +# account here, so no need to assign the lengths per model. +STM32_INFO := $(shell printf '%s' '$(CPU_MODEL)' | tr 'a-z' 'A-Z' | sed -E -e 's/^STM32(F|L)(0|1|2|3|4|7)([0-9])([0-9])(.)(.)/\1 \2 \2\3\4 \3 \4 \5 \6/') +STM32_TYPE := $(word 1, $(STM32_INFO)) +STM32_FAMILY := $(word 2, $(STM32_INFO)) +STM32_MODEL := $(word 3, $(STM32_INFO)) +STM32_MODEL2 := $(word 4, $(STM32_INFO)) +STM32_MODEL3 := $(word 5, $(STM32_INFO)) +STM32_PINCOUNT := $(word 6, $(STM32_INFO)) +STM32_ROMSIZE := $(word 7, $(STM32_INFO)) + +ifeq ($(STM32_TYPE), F) + ifeq ($(STM32_FAMILY), 0) + ifeq ($(STM32_MODEL2), 3) + ifeq ($(STM32_MODEL3), 0) + ifneq (, $(filter $(STM32_ROMSIZE), 4 6)) + RAM_LEN = 4K + else ifeq ($(STM32_ROMSIZE), 8) + RAM_LEN = 8K + else ifeq ($(STM32_ROMSIZE), C) + RAM_LEN = 32K + endif + else ifneq (, $(filter $(STM32_MODEL3), 1 8)) + RAM_LEN = 4K + endif + else ifeq ($(STM32_MODEL2), 4) + RAM_LEN = 6K + else ifeq ($(STM32_MODEL2), 5) + RAM_LEN = 8K + else ifeq ($(STM32_MODEL2), 7) + ifeq ($(STM32_MODEL3), 0) + ifeq ($(STM32_ROMSIZE), 6) + RAM_LEN = 6K + else ifeq ($(STM32_ROMSIZE), B) + RAM_LEN = 16K + endif + else ifneq (, $(filter $(STM32_MODEL3), 1 2 8)) + RAM_LEN = 16K + endif + else ifeq ($(STM32_MODEL2), 9) + RAM_LEN = 32K + endif + else ifeq ($(STM32_FAMILY), 1) + ifeq ($(STM32_MODEL2), 0) + ifeq ($(STM32_MODEL3), 0) + ifneq (, $(filter $(STM32_ROMSIZE), 4 6)) + RAM_LEN = 4K + else ifneq (, $(filter $(STM32_ROMSIZE), 8 B)) + RAM_LEN = 8K + else ifeq ($(STM32_ROMSIZE), C) + RAM_LEN = 24K + else ifneq (, $(filter $(STM32_ROMSIZE), E D)) + RAM_LEN = 32K + endif + else ifneq (, $(filter $(STM32_MODEL3), 1 2)) + ifeq ($(STM32_ROMSIZE), 4) + RAM_LEN = 4K + else ifeq ($(STM32_ROMSIZE), 6) + RAM_LEN = 6K + else ifeq ($(STM32_ROMSIZE), 8) + RAM_LEN = 10K + else ifeq ($(STM32_ROMSIZE), B) + RAM_LEN = 16K + else ifeq ($(STM32_ROMSIZE), C) + RAM_LEN = 32K + else ifneq (, $(filter $(STM32_ROMSIZE), D E)) + RAM_LEN = 48K + else ifneq (, $(filter $(STM32_ROMSIZE), F G)) + RAM_LEN = 80K + endif + else ifeq ($(STM32_MODEL3), 3) + ifeq ($(STM32_ROMSIZE), 4) + RAM_LEN = 6K + else ifeq ($(STM32_ROMSIZE), 6) + RAM_LEN = 10K + else ifneq (, $(filter $(STM32_ROMSIZE), 8 B)) + RAM_LEN = 20K + else ifneq (, $(filter $(STM32_ROMSIZE), C D E)) + RAM_LEN = 64K + else ifneq (, $(filter $(STM32_ROMSIZE), F G)) + RAM_LEN = 96K + endif + endif + else ifneq (, $(filter $(STM32_MODEL), 105 107)) + RAM_LEN = 64K + endif + else ifeq ($(STM32_FAMILY), 2) + ifeq ($(STM32_MODEL3), 5) + ifeq ($(STM32_ROMSIZE), B) + RAM_LEN = 64K + else ifeq ($(STM32_ROMSIZE), C) + RAM_LEN = 96K + else ifeq (, $(filter $(STM32_ROMSIZE), E F G)) + RAM_LEN = 128K + endif + else ifeq ($(STM32_MODEL3), 7) + RAM_LEN = 128K + endif + else ifeq ($(STM32_FAMILY), 3) + ifeq ($(STM32_MODEL), 301) + RAM_LEN = 16K + else ifeq ($(STM32_MODEL), 302) + ifeq ($(STM32_ROMSIZE), 6) + RAM_LEN = 32K + else ifeq ($(STM32_ROMSIZE), 8) + RAM_LEN = 64K + else ifeq ($(STM32_ROMSIZE), B) + RAM_LEN = 128K + else ifeq ($(STM32_ROMSIZE), C) + RAM_LEN = 256K + else ifeq ($(STM32_ROMSIZE), D) + RAM_LEN = 384K + else ifeq ($(STM32_ROMSIZE), E) + RAM_LEN = 512K + endif + else ifeq ($(STM32_MODEL), 303) + ifneq (, $(filter $(STM32_ROMSIZE), 6 8)) + RAM_LEN = 16K + CCMRAM_LEN = 4K + else ifeq ($(STM32_ROMSIZE), B) + RAM_LEN = 40K + CCMRAM_LEN = 8K + else ifeq ($(STM32_ROMSIZE), C) + RAM_LEN = 48K + CCMRAM_LEN = 8K + else ifneq (, $(filter $(STM32_ROMSIZE), D E)) + RAM_LEN = 80K + endif + else ifeq ($(STM32_MODEL3), 4) + RAM_LEN = 16K + CCMRAM_LEN = 4K + else ifeq ($(STM32_MODEL), 373) + RAM_LEN = 32K + else ifeq ($(STM32_MODEL3), 8) + ifneq (, $(filter $(STM32_MODEL2), 1 2)) + RAM_LEN = 16K + ifeq ($(STM32_MODEL2), 1) + CCMRAM_LEN = 4K + endif + else ifeq ($(STM32_MODEL2), 5) + RAM_LEN = 48K + CCMRAM_LEN = 8K + else ifeq ($(STM32_MODEL2), 7) + RAM_LEN = 32K + else ifeq ($(STM32_MODEL2), 9) + RAM_LEN = 80K + CCMRAM_LEN = 16K + endif + endif + else ifeq ($(STM32_FAMILY), 4) + ifeq ($(STM32_MODEL), 401) + ifneq (, $(filter $(STM32_ROMSIZE), B C)) + RAM_LEN = 64K + else ifneq (, $(filter $(STM32_ROMSIZE), D E)) + RAM_LEN = 96K + endif + else ifneq (, $(filter $(STM32_MODEL), 405 407)) + RAM_LEN = 192K + else ifeq ($(STM32_MODEL), 410) + RAM_LEN = 32K + else ifneq (, $(filter $(STM32_MODEL), 411 446)) + RAM_LEN = 128K + else ifneq (, $(filter $(STM32_MODEL), 412 427 429 437 439)) + RAM_LEN = 256K + else ifneq (, $(filter $(STM32_MODEL), 413 423)) + RAM_LEN = 320K + else ifneq (, $(filter $(STM32_MODEL), 415 417)) + RAM_LEN = 192K + else ifneq (, $(filter $(STM32_MODEL), 469 479)) + RAM_LEN = 384K + endif + ifneq (, $(filter $(STM32_MODEL3), 5 7 9)) + CCMRAM_LEN = 64K + endif + else ifeq ($(STM32_FAMILY),7) + ifneq (, $(filter $(STM32_MODEL2), 2 3)) + RAM_LEN = 256K + else ifneq (, $(filter $(STM32_MODEL2), 4 5)) + RAM_LEN = 320K + else ifneq (, $(filter $(STM32_MODEL2), 6 7)) + RAM_LEN = 512K + endif + endif +else ifeq ($(STM32_TYPE), L) + ifeq ($(STM32_FAMILY), 0) + ifneq (, $(filter $(STM32_MODEL2), 1 2)) + RAM_LEN = 2K + else ifneq (, $(filter $(STM32_MODEL2), 3 4 5 6)) + RAM_LEN = 8K + else ifneq (, $(filter $(STM32_MODEL2), 7 8)) + RAM_LEN = 20K + endif + else ifeq ($(STM32_FAMILY), 1) + ifeq ($(STM32_MODEL), 100) + ifeq ($(STM32_ROMSIZE), 6) + RAM_LEN = 4K + else ifeq ($(STM32_ROMSIZE), 8) + RAM_LEN = 8K + else ifneq (, $(filter $(STM32_ROMSIZE), B C)) + RAM_LEN = 16K + endif + else ifneq (, $(filter $(STM32_MODEL), 151 152)) + ifneq (, $(filter $(STM32_PINCOUNT), C Q U V Z)) + ifeq ($(STM32_ROMSIZE), 6) + RAM_LEN = 16K + else ifneq (, $(filter $(STM32_ROMSIZE), 8 B C)) + RAM_LEN = 32K + else ifeq ($(STM32_ROMSIZE), D) + RAM_LEN = 48K + else ifeq ($(STM32_ROMSIZE), E) + RAM_LEN = 80K + endif + else ifeq ($(STM32_PINCOUNT), R) + ifeq ($(STM32_ROMSIZE), 6) + RAM_LEN = 16K + else ifneq (, $(filter $(STM32_ROMSIZE), 8 C)) + RAM_LEN = 32K + else ifeq ($(STM32_ROMSIZE), B) + RAM_LEN = 16K + else ifeq ($(STM32_ROMSIZE), D) + RAM_LEN = 48K + else ifeq ($(STM32_ROMSIZE), E) + RAM_LEN = 80K + endif + endif + endif + else ifeq ($(STM32_FAMILY), 4) + ifeq ($(STM32_MODEL2), 3) + RAM_LEN = 64K + else ifeq ($(STM32_MODEL2), 7) + RAM_LEN = 128K + else ifeq ($(STM32_MODEL2), 5) + RAM_LEN = 160K + else ifeq ($(STM32_MODEL2), 9) + RAM_LEN = 320K + endif + endif +endif + +ifeq ($(RAM_LEN), ) + $(warning Unsupported cpu model $(CPU_MODEL) automatically) +endif + +ifeq ($(STM32_ROMSIZE), 4) + ROM_LEN = 16K +else ifeq ($(STM32_ROMSIZE), 6) + ROM_LEN = 32K +else ifeq ($(STM32_ROMSIZE), 8) + ROM_LEN = 64K +else ifeq ($(STM32_ROMSIZE), B) + ROM_LEN = 128K +else ifeq ($(STM32_ROMSIZE), Z) + ROM_LEN = 192K +else ifeq ($(STM32_ROMSIZE), C) + ROM_LEN = 256K +else ifeq ($(STM32_ROMSIZE), D) + ROM_LEN = 384K +else ifeq ($(STM32_ROMSIZE), E) + ROM_LEN = 512K +else ifeq ($(STM32_ROMSIZE), F) + ROM_LEN = 768K +else ifeq ($(STM32_ROMSIZE), G) + ROM_LEN = 1024K +else ifeq ($(STM32_ROMSIZE), H) + ROM_LEN = 1536K +else ifeq ($(STM32_ROMSIZE), I) + ROM_LEN = 2048K +endif + +ifeq ($(STM32_PINCOUNT), A) + STM32_PINCOUNT = 169 +else ifeq ($(STM32_PINCOUNT), B) + STM32_PINCOUNT = 208 +else ifeq ($(STM32_PINCOUNT), C) + STM32_PINCOUNT = 48 +else ifeq ($(STM32_PINCOUNT), F) + STM32_PINCOUNT = 20 +else ifeq ($(STM32_PINCOUNT), G) + STM32_PINCOUNT = 28 +else ifeq ($(STM32_PINCOUNT), H) + STM32_PINCOUNT = 40 +else ifeq ($(STM32_PINCOUNT), I) + STM32_PINCOUNT = 176 +else ifeq ($(STM32_PINCOUNT), J) + STM32_PINCOUNT = 72 +else ifeq ($(STM32_PINCOUNT), K) + STM32_PINCOUNT = 32 +else ifeq ($(STM32_PINCOUNT), M) + STM32_PINCOUNT = 81 +else ifeq ($(STM32_PINCOUNT), N) + STM32_PINCOUNT = 216 +else ifeq ($(STM32_PINCOUNT), Q) + STM32_PINCOUNT = 132 +else ifeq ($(STM32_PINCOUNT), R) + STM32_PINCOUNT = 64 +else ifeq ($(STM32_PINCOUNT), T) + STM32_PINCOUNT = 36 +else ifeq ($(STM32_PINCOUNT), U) + STM32_PINCOUNT = 63 +else ifeq ($(STM32_PINCOUNT), V) + STM32_PINCOUNT = 100 +else ifeq ($(STM32_PINCOUNT), Z) + STM32_PINCOUNT = 144 +endif diff --git a/cpu/stm32f0/ldscripts/stm32f030r8.ld b/cpu/stm32f0/ldscripts/stm32f030r8.ld deleted file mode 100644 index e8f114a806..0000000000 --- a/cpu/stm32f0/ldscripts/stm32f030r8.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2016 Inria - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f0 - * @{ - * - * @file - * @brief Memory definitions for the STM32F030R8 - * - * @author Alexandre Abadie - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 64K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 8K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f0/ldscripts/stm32f031k6.ld b/cpu/stm32f0/ldscripts/stm32f031k6.ld deleted file mode 100644 index 4ac636b6d5..0000000000 --- a/cpu/stm32f0/ldscripts/stm32f031k6.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f0 - * @{ - * - * @file - * @brief Memory definitions for the STM32F031K6 - * - * @author Alexandre Abadie - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 32K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 4K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f0/ldscripts/stm32f042k6.ld b/cpu/stm32f0/ldscripts/stm32f042k6.ld deleted file mode 100644 index 39b744ff46..0000000000 --- a/cpu/stm32f0/ldscripts/stm32f042k6.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2016 OTA keys - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f0 - * @{ - * - * @file - * @brief Memory definitions for the STM32F042K6 - * - * @author Vincent Dupont - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 32K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 6K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f0/ldscripts/stm32f051r8.ld b/cpu/stm32f0/ldscripts/stm32f051r8.ld deleted file mode 100644 index f22058a95e..0000000000 --- a/cpu/stm32f0/ldscripts/stm32f051r8.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2015 Freie Universität Berlin - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f0 - * @{ - * - * @file - * @brief Memory definitions for the STM32F051R8 - * - * @author Hauke Petersen - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 64K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 8K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f0/ldscripts/stm32f070rb.ld b/cpu/stm32f0/ldscripts/stm32f070rb.ld deleted file mode 100644 index b9f9d271ca..0000000000 --- a/cpu/stm32f0/ldscripts/stm32f070rb.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2016 Inria - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f0 - * @{ - * - * @file - * @brief Memory definitions for the STM32F070RB - * - * @author Alexandre Abadie - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 16K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f0/ldscripts/stm32f072rb.ld b/cpu/stm32f0/ldscripts/stm32f072rb.ld deleted file mode 100644 index 7a4d8380a6..0000000000 --- a/cpu/stm32f0/ldscripts/stm32f072rb.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2015 Freie Universität Berlin - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f0 - * @{ - * - * @file - * @brief Memory definitions for the STM32F072RB - * - * @author Hauke Petersen - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 16K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f0/ldscripts/stm32f091rc.ld b/cpu/stm32f0/ldscripts/stm32f091rc.ld deleted file mode 100644 index ebe346988c..0000000000 --- a/cpu/stm32f0/ldscripts/stm32f091rc.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2015 Freie Universität Berlin - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f0 - * @{ - * - * @file - * @brief Memory definitions for the STM32F091RC - * - * @author Hauke Petersen - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 256K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 32K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f1/ldscripts/stm32f103c8.ld b/cpu/stm32f1/ldscripts/stm32f103c8.ld deleted file mode 100644 index 4b7d38c942..0000000000 --- a/cpu/stm32f1/ldscripts/stm32f103c8.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2015 Alexander Melnikov - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f1 - * @{ - * - * @file - * @brief Memory definitions for the STM32F103C8 - * - * @author Alexander Melnikov - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 64K - ram (xrw) : ORIGIN = 0x20000000, LENGTH = 20K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f1/ldscripts/stm32f103c8_bluepill.ld b/cpu/stm32f1/ldscripts/stm32f103c8_bluepill.ld deleted file mode 100644 index 4181d1d7a2..0000000000 --- a/cpu/stm32f1/ldscripts/stm32f103c8_bluepill.ld +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) 2015 Alexander Melnikov - * 2017 HAW Hamburg - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f1 - * @{ - * - * @file - * @brief Memory definitions for the STM32F103C8 - * - * @author Alexander Melnikov - * @author Sebastian Meiling - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08002000, LENGTH = 64K-0x2000 - ram (xrw) : ORIGIN = 0x20000000, LENGTH = 20K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f1/ldscripts/stm32f103cb.ld b/cpu/stm32f1/ldscripts/stm32f103cb.ld deleted file mode 100644 index 91de244859..0000000000 --- a/cpu/stm32f1/ldscripts/stm32f103cb.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2015 Freie Universität Berlin - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f1 - * @{ - * - * @file - * @brief Memory definitions for the STM32F103CB - * - * @author Hauke Petersen - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (xrw) : ORIGIN = 0x20000000, LENGTH = 20K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f1/ldscripts/stm32f103cb_opencm904.ld b/cpu/stm32f1/ldscripts/stm32f103cb_opencm904.ld deleted file mode 100644 index 452935e298..0000000000 --- a/cpu/stm32f1/ldscripts/stm32f103cb_opencm904.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2017 INRIA - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f1 - * @{ - * - * @file - * @brief OpenCM9.04 specific definitions for the STM32F103CB - * - * @author Loïc Dauphin - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08003000, LENGTH = 128K-0x3000 - ram (xrw) : ORIGIN = 0x20000000, LENGTH = 20K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f1/ldscripts/stm32f103cb_sparkcore.ld b/cpu/stm32f1/ldscripts/stm32f103cb_sparkcore.ld deleted file mode 100644 index 6b33f73cf4..0000000000 --- a/cpu/stm32f1/ldscripts/stm32f103cb_sparkcore.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2015 Freie Universität Berlin - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f1 - * @{ - * - * @file - * @brief Spark-core specific memory definitions for the STM32F103CB - * - * @author Hauke Petersen - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08005000, LENGTH = 128K-0x5000 - ram (xrw) : ORIGIN = 0x20000000, LENGTH = 20K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f1/ldscripts/stm32f103rb.ld b/cpu/stm32f1/ldscripts/stm32f103rb.ld deleted file mode 100644 index 8412a07e07..0000000000 --- a/cpu/stm32f1/ldscripts/stm32f103rb.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2015 TriaGnoSys GmbH - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f1 - * @{ - * - * @file - * @brief Memory definitions for the STM32F103RB - * - * @author Victor Ariño - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (xrw) : ORIGIN = 0x20000000, LENGTH = 20K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f1/ldscripts/stm32f103re.ld b/cpu/stm32f1/ldscripts/stm32f103re.ld deleted file mode 100644 index af84488fe6..0000000000 --- a/cpu/stm32f1/ldscripts/stm32f103re.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2015 Freie Universität Berlin - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f1 - * @{ - * - * @file - * @brief Memory definitions for the STM32F103RE - * - * @author Hauke Petersen - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 512K - ram (xrw) : ORIGIN = 0x20000000, LENGTH = 64K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f2/ldscripts/stm32f205rg.ld b/cpu/stm32f2/ldscripts/stm32f205rg.ld deleted file mode 100644 index c5adfed5ff..0000000000 --- a/cpu/stm32f2/ldscripts/stm32f205rg.ld +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) 2015 Engineering-Spirit - * Copyright (C) 2016 OTA keys S.A. - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f2 - * @{ - * - * @file - * @brief Memory definitions for the STM32F205RG - * - * @author Nick v. IJzendoorn - * @author Vincent Dupont - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 1024K - ram (xrw) : ORIGIN = 0x20000000, LENGTH = 128K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f2/ldscripts/stm32f207zg.ld b/cpu/stm32f2/ldscripts/stm32f207zg.ld deleted file mode 100644 index c6a03b47e9..0000000000 --- a/cpu/stm32f2/ldscripts/stm32f207zg.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2015 Engineering-Spirit - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f2 - * @{ - * - * @file - * @brief Memory definitions for the STM32F207ZG - * - * @author Nick v. IJzendoorn - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 1024K - ram (xrw) : ORIGIN = 0x20000000, LENGTH = 128K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f2/ldscripts/stm32f215rg.ld b/cpu/stm32f2/ldscripts/stm32f215rg.ld deleted file mode 100644 index 329f3c1835..0000000000 --- a/cpu/stm32f2/ldscripts/stm32f215rg.ld +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) 2015 Engineering-Spirit - * Copyright (C) 2016 OTA keys S.A. - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f2 - * @{ - * - * @file - * @brief Memory definitions for the STM32F215RG - * - * @author Nick v. IJzendoorn - * @author Vincent Dupont - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 1024K - ram (xrw) : ORIGIN = 0x20000000, LENGTH = 128K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f2/ldscripts/stm32f215ve.ld b/cpu/stm32f2/ldscripts/stm32f215ve.ld deleted file mode 100644 index c99cde1f34..0000000000 --- a/cpu/stm32f2/ldscripts/stm32f215ve.ld +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) 2015 Engineering-Spirit - * Copyright (C) 2016 OTA keys S.A. - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f2 - * @{ - * - * @file - * @brief Memory definitions for the STM32F215VG - * - * @author Nick v. IJzendoorn - * @author Vincent Dupont - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 512K - ram (xrw) : ORIGIN = 0x20000000, LENGTH = 128K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f2/ldscripts/stm32f215vg.ld b/cpu/stm32f2/ldscripts/stm32f215vg.ld deleted file mode 100644 index acf610dd38..0000000000 --- a/cpu/stm32f2/ldscripts/stm32f215vg.ld +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) 2015 Engineering-Spirit - * Copyright (C) 2016 OTA keys S.A. - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f2 - * @{ - * - * @file - * @brief Memory definitions for the STM32F215VG - * - * @author Nick v. IJzendoorn - * @author Vincent Dupont - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 1024K - ram (xrw) : ORIGIN = 0x20000000, LENGTH = 128K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f2/ldscripts/stm32f217zg.ld b/cpu/stm32f2/ldscripts/stm32f217zg.ld deleted file mode 100644 index 7b6f577280..0000000000 --- a/cpu/stm32f2/ldscripts/stm32f217zg.ld +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) 2015 Engineering-Spirit - * Copyright (C) 2016 OTA keys S.A. - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f2 - * @{ - * - * @file - * @brief Memory definitions for the STM32F217ZG - * - * @author Nick v. IJzendoorn - * @author Vincent Dupont - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 1024K - ram (xrw) : ORIGIN = 0x20000000, LENGTH = 128K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f3/ldscripts/stm32f302r8.ld b/cpu/stm32f3/ldscripts/stm32f302r8.ld deleted file mode 100644 index e23ae9817c..0000000000 --- a/cpu/stm32f3/ldscripts/stm32f302r8.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f3 - * @{ - * - * @file - * @brief Memory definitions for the STM32F302R8 - * - * @author Alexandre Abadie - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 64K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 16K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f3/ldscripts/stm32f303k8.ld b/cpu/stm32f3/ldscripts/stm32f303k8.ld deleted file mode 100644 index fe9971145d..0000000000 --- a/cpu/stm32f3/ldscripts/stm32f303k8.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f3 - * @{ - * - * @file - * @brief Memory definitions for the STM32F303K8 - * - * @author Alexandre Abadie - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 64K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 16K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f3/ldscripts/stm32f303re.ld b/cpu/stm32f3/ldscripts/stm32f303re.ld deleted file mode 100644 index 59c32208f6..0000000000 --- a/cpu/stm32f3/ldscripts/stm32f303re.ld +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (C) 2015 Freie Universität Berlin - * Copyright (C) 2014 Hamburg University of Applied Sciences - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f3 - * @{ - * - * @file - * @brief Memory definitions for the STM32F303RE - * - * @author Hauke Petersen - * @author Katja Kirstein - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 512K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 64K - ccmram (rwx): ORIGIN = 0x10000000, LENGTH = 16K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f3/ldscripts/stm32f303vc.ld b/cpu/stm32f3/ldscripts/stm32f303vc.ld deleted file mode 100644 index 7f928b387c..0000000000 --- a/cpu/stm32f3/ldscripts/stm32f303vc.ld +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2015 Freie Universität Berlin - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f3 - * @{ - * - * @file - * @brief Memory definitions for the STM32F303VC - * - * @author Hauke Petersen - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 256K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 40K - ccmram (rwx): ORIGIN = 0x10000000, LENGTH = 8K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f3/ldscripts/stm32f303ze.ld b/cpu/stm32f3/ldscripts/stm32f303ze.ld deleted file mode 100644 index cb5cb42e11..0000000000 --- a/cpu/stm32f3/ldscripts/stm32f303ze.ld +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f3 - * @{ - * - * @file - * @brief Memory definitions for the STM32F303ZE - * - * @author Alexandre Abadie - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 512K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 64K - ccmram (rwx): ORIGIN = 0x10000000, LENGTH = 16K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f3/ldscripts/stm32f334r8.ld b/cpu/stm32f3/ldscripts/stm32f334r8.ld deleted file mode 100644 index dbf9a07e01..0000000000 --- a/cpu/stm32f3/ldscripts/stm32f334r8.ld +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2015 Freie Universität Berlin - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f3 - * @{ - * - * @file - * @brief Memory definitions for the STM32F334R8 - * - * @author Hauke Petersen - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 64K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 12K - ccmram (rwx): ORIGIN = 0x10000000, LENGTH = 4K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f4/ldscripts/stm32f401re.ld b/cpu/stm32f4/ldscripts/stm32f401re.ld deleted file mode 100644 index 31072ce8fc..0000000000 --- a/cpu/stm32f4/ldscripts/stm32f401re.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2015 Lari Lehtomäki - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f4 - * @{ - * - * @file - * @brief Memory definitions for the STM32F401xE - * - * @author Lari Lehtomäki - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 512K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 96K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f4/ldscripts/stm32f407vg.ld b/cpu/stm32f4/ldscripts/stm32f407vg.ld deleted file mode 100644 index 498a707bde..0000000000 --- a/cpu/stm32f4/ldscripts/stm32f407vg.ld +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2015 Freie Universität Berlin - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f4 - * @{ - * - * @file - * @brief Memory definitions for the STM32F407VG - * - * @author Hauke Petersen - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 1024K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 128K - ccmram (rwx): ORIGIN = 0x10000000, LENGTH = 64K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f4/ldscripts/stm32f410rb.ld b/cpu/stm32f4/ldscripts/stm32f410rb.ld deleted file mode 100644 index 39d7bc7d79..0000000000 --- a/cpu/stm32f4/ldscripts/stm32f410rb.ld +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) 2016 Freie Universität Berlin - * 2016 Inria - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f4 - * @{ - * - * @file - * @brief Memory definitions for the STM32F410RB - * - * @author Hauke Petersen - * @author Alexandre Abadie - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 32K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f4/ldscripts/stm32f411re.ld b/cpu/stm32f4/ldscripts/stm32f411re.ld deleted file mode 100644 index 5633d06ebc..0000000000 --- a/cpu/stm32f4/ldscripts/stm32f411re.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2016 Inria - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f4 - * @{ - * - * @file - * @brief Memory definitions for the STM32F411RE - * - * @author Alexandre Abadie - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 512K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 128K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f4/ldscripts/stm32f412zg.ld b/cpu/stm32f4/ldscripts/stm32f412zg.ld deleted file mode 100644 index da49e49f74..0000000000 --- a/cpu/stm32f4/ldscripts/stm32f412zg.ld +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (C) 2015-2017 Freie Universität Berlin - * 2017 Inria - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f4 - * @{ - * - * @file - * @brief Memory definitions for the STM32F412ZG - * - * @author Hauke Petersen - * @author Alexandre Abadie - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 1024K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 256K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f4/ldscripts/stm32f413vg.ld b/cpu/stm32f4/ldscripts/stm32f413vg.ld deleted file mode 100644 index bcd7de4767..0000000000 --- a/cpu/stm32f4/ldscripts/stm32f413vg.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2017 OTA keys S.A. - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f4 - * @{ - * - * @file - * @brief Memory definitions for the STM32F413VG - * - * @author Vincent Dupont - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 1M - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 320K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f4/ldscripts/stm32f413zh.ld b/cpu/stm32f4/ldscripts/stm32f413zh.ld deleted file mode 100644 index 504667a3ac..0000000000 --- a/cpu/stm32f4/ldscripts/stm32f413zh.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2017 OTA keys S.A. - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f4 - * @{ - * - * @file - * @brief Memory definitions for the STM32F413ZH - * - * @author Vincent Dupont - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 1536K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 320K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f4/ldscripts/stm32f415rg.ld b/cpu/stm32f4/ldscripts/stm32f415rg.ld deleted file mode 100644 index d3bbc4074f..0000000000 --- a/cpu/stm32f4/ldscripts/stm32f415rg.ld +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2015 Freie Universität Berlin - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f4 - * @{ - * - * @file - * @brief Memory definitions for the STM32F415RG - * - * @author Hauke Petersen - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 1024K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 128K - ccmram (rwx): ORIGIN = 0x10000000, LENGTH = 64K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f4/ldscripts/stm32f429zi.ld b/cpu/stm32f4/ldscripts/stm32f429zi.ld deleted file mode 100644 index 0ee0380d70..0000000000 --- a/cpu/stm32f4/ldscripts/stm32f429zi.ld +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f4 - * @{ - * - * @file - * @brief Memory definitions for the STM32F429ZI - * - * @author Alexandre Abadie - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 2M - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 256K - ccmram (rwx): ORIGIN = 0x10000000, LENGTH = 64K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f4/ldscripts/stm32f446re.ld b/cpu/stm32f4/ldscripts/stm32f446re.ld deleted file mode 100644 index f1cc56475b..0000000000 --- a/cpu/stm32f4/ldscripts/stm32f446re.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2016 Inria - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f4 - * @{ - * - * @file - * @brief Memory definitions for the STM32F446RE - * - * @author Alexandre Abadie - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 512K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 128K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f4/ldscripts/stm32f446ze.ld b/cpu/stm32f4/ldscripts/stm32f446ze.ld deleted file mode 100644 index 328bba5d8c..0000000000 --- a/cpu/stm32f4/ldscripts/stm32f446ze.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f4 - * @{ - * - * @file - * @brief Memory definitions for the STM32F446ZE - * - * @author Alexandre Abadie - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 512K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 128K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f7/ldscripts/stm32f722ze.ld b/cpu/stm32f7/ldscripts/stm32f722ze.ld deleted file mode 100644 index f7a68d8421..0000000000 --- a/cpu/stm32f7/ldscripts/stm32f722ze.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f7 - * @{ - * - * @file - * @brief Memory definitions for the STM32F722ZE - * - * @author Alexandre Abadie - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 512K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 256K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f7/ldscripts/stm32f746zg.ld b/cpu/stm32f7/ldscripts/stm32f746zg.ld deleted file mode 100644 index 4972497459..0000000000 --- a/cpu/stm32f7/ldscripts/stm32f746zg.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2017 Freie Universität Berlin - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32l4 - * @{ - * - * @file - * @brief Memory definitions for the STM32F746ZG - * - * @author Hauke Petersen - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 1024K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 320K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f7/ldscripts/stm32f767zi.ld b/cpu/stm32f7/ldscripts/stm32f767zi.ld deleted file mode 100644 index 3f1cdae47d..0000000000 --- a/cpu/stm32f7/ldscripts/stm32f767zi.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f7 - * @{ - * - * @file - * @brief Memory definitions for the STM32F767ZI - * - * @author Alexandre Abadie - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 2M - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 512K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32f7/ldscripts/stm32f769ni.ld b/cpu/stm32f7/ldscripts/stm32f769ni.ld deleted file mode 100644 index d2431b1f35..0000000000 --- a/cpu/stm32f7/ldscripts/stm32f769ni.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2017 OTA keys S.A. - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32f7 - * @{ - * - * @file - * @brief Memory definitions for the STM32F769NI - * - * @author Vincent Dupont - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 2048K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 512K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32l0/ldscripts/stm32l031k6.ld b/cpu/stm32l0/ldscripts/stm32l031k6.ld deleted file mode 100644 index 4fd7f0eda2..0000000000 --- a/cpu/stm32l0/ldscripts/stm32l031k6.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32l0 - * @{ - * - * @file - * @brief Memory definitions for the STM32L031K6 - * - * @author Alexandre Abadie - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 32K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 8K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32l0/ldscripts/stm32l053r8.ld b/cpu/stm32l0/ldscripts/stm32l053r8.ld deleted file mode 100644 index 0f79bc1188..0000000000 --- a/cpu/stm32l0/ldscripts/stm32l053r8.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32l0 - * @{ - * - * @file - * @brief Memory definitions for the STM32L053R8 - * - * @author Alexandre Abadie - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 64K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 8K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32l0/ldscripts/stm32l072cz.ld b/cpu/stm32l0/ldscripts/stm32l072cz.ld deleted file mode 100644 index 147b2d7ab8..0000000000 --- a/cpu/stm32l0/ldscripts/stm32l072cz.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32l0 - * @{ - * - * @file - * @brief Memory definitions for the STM32L072CZ - * - * @author Alexandre Abadie - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 192K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32l0/ldscripts/stm32l073rz.ld b/cpu/stm32l0/ldscripts/stm32l073rz.ld deleted file mode 100644 index e4dabbb78d..0000000000 --- a/cpu/stm32l0/ldscripts/stm32l073rz.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32l0 - * @{ - * - * @file - * @brief Memory definitions for the STM32L073RZ - * - * @author Alexandre Abadie - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 192K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32l1/ldscripts/stm32l151rba.ld b/cpu/stm32l1/ldscripts/stm32l151rba.ld deleted file mode 100644 index 07932703a9..0000000000 --- a/cpu/stm32l1/ldscripts/stm32l151rba.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2015 Engineering-Spirit - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32l1 - * @{ - * - * @file - * @brief Memory definitions for the STM32L151RB-A - * - * @author Nick van IJzendoorn - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rw) : ORIGIN = 0x20000000, LENGTH = 32K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32l1/ldscripts/stm32l151rc.ld b/cpu/stm32l1/ldscripts/stm32l151rc.ld deleted file mode 100644 index 6344f1fc98..0000000000 --- a/cpu/stm32l1/ldscripts/stm32l151rc.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2015 Hamburg University of Applied Sciences - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32l1 - * @{ - * - * @file - * @brief Memory definitions for the STM32L151RC - * - * @author Katja Kirstein - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 256K - ram (xrw) : ORIGIN = 0x20000000, LENGTH = 32K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32l1/ldscripts/stm32l152ret6.ld b/cpu/stm32l1/ldscripts/stm32l152ret6.ld deleted file mode 100644 index 256baa223f..0000000000 --- a/cpu/stm32l1/ldscripts/stm32l152ret6.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2015 Freie Universität Berlin - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32l1 - * @{ - * - * @file - * @brief Memory definitions for the STM32L152RET6 - * - * @author Hauke Petersen - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 512K - ram (xrw) : ORIGIN = 0x20000000, LENGTH = 80K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32l4/ldscripts/stm32l432kc.ld b/cpu/stm32l4/ldscripts/stm32l432kc.ld deleted file mode 100644 index 0c4852b5f1..0000000000 --- a/cpu/stm32l4/ldscripts/stm32l432kc.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2017 Inria - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32l4 - * @{ - * - * @file - * @brief Memory definitions for the STM32L432KC - * - * @author Alexandre Abadie - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 256K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 64K -} - -INCLUDE cortexm_base.ld diff --git a/cpu/stm32l4/ldscripts/stm32l476rg.ld b/cpu/stm32l4/ldscripts/stm32l476rg.ld deleted file mode 100644 index c6e6e8c556..0000000000 --- a/cpu/stm32l4/ldscripts/stm32l476rg.ld +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2017 Freie Universität Berlin - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @addtogroup cpu_stm32l4 - * @{ - * - * @file - * @brief Memory definitions for the STM32L476RG - * - * @author Hauke Petersen - * - * @} - */ - -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 1024K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 128K -} - -INCLUDE cortexm_base.ld