From c3fea659d1313e324bb7512e7e50875e0cb0318a Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sun, 13 Nov 2011 12:32:45 +0100 Subject: examples: Remove duplicate example linker scripts. Only add one linker script per eval board, and have the Makefiles use that. This avoids duplication, and various copy-paste errors and left-overs which we already have in the tree. Some of the linker scripts are not really correct, yet. Both, the comments which say which board, chip, and RAM/ROM sizes are used, as well as the actual RAM/ROM size definitions are sometimes copy-pasted from other boards and are thus incorrect. This needs to be fixed. --- examples/lm3s/Makefile.include | 2 +- examples/lm3s/lm3s3748-evb/lm3s3748-evb.ld | 31 +++++++++++++++++++++ examples/lm3s/lm3s3748-evb/miniblink/Makefile | 2 ++ examples/lm3s/lm3s3748-evb/miniblink/miniblink.ld | 31 --------------------- examples/lpc13xx/Makefile.include | 2 +- examples/lpc13xx/lpc-p1343/lpc-p1343.ld | 31 +++++++++++++++++++++ examples/lpc13xx/lpc-p1343/miniblink/Makefile | 2 ++ examples/lpc13xx/lpc-p1343/miniblink/miniblink.ld | 31 --------------------- examples/stm32/f1/Makefile.include | 2 +- examples/stm32/f1/lisa-m/fancyblink/Makefile | 2 ++ examples/stm32/f1/lisa-m/fancyblink/fancyblink.ld | 31 --------------------- examples/stm32/f1/lisa-m/lisa-m.ld | 32 ++++++++++++++++++++++ examples/stm32/f1/lisa-m/usb_cdcacm/Makefile | 2 ++ examples/stm32/f1/lisa-m/usb_cdcacm/cdcacm.ld | 31 --------------------- examples/stm32/f1/lisa-m/usb_dfu/Makefile | 2 ++ examples/stm32/f1/lisa-m/usb_dfu/usbdfu.ld | 29 -------------------- examples/stm32/f1/lisa-m/usb_hid/Makefile | 2 ++ examples/stm32/f1/lisa-m/usb_hid/usbhid.ld | 31 --------------------- examples/stm32/f1/mb525/fancyblink/Makefile | 2 ++ examples/stm32/f1/mb525/fancyblink/fancyblink.ld | 31 --------------------- examples/stm32/f1/mb525/mb525.ld | 32 ++++++++++++++++++++++ examples/stm32/f1/mb525/pwmleds/Makefile | 2 ++ examples/stm32/f1/mb525/pwmleds/pwmleds.ld | 31 --------------------- examples/stm32/f1/obldc/can/Makefile | 2 ++ examples/stm32/f1/obldc/can/can.ld | 31 --------------------- examples/stm32/f1/obldc/led/Makefile | 2 ++ examples/stm32/f1/obldc/led/led.ld | 31 --------------------- examples/stm32/f1/obldc/obldc.ld | 31 +++++++++++++++++++++ examples/stm32/f1/obldc/pwmleds/Makefile | 2 ++ examples/stm32/f1/obldc/pwmleds/pwmleds.ld | 31 --------------------- examples/stm32/f1/obldc/systick/Makefile | 2 ++ examples/stm32/f1/obldc/systick/systick.ld | 31 --------------------- examples/stm32/f1/obldc/usart/Makefile | 2 ++ examples/stm32/f1/obldc/usart/usart.ld | 31 --------------------- examples/stm32/f1/obldc/usart_irq/Makefile | 2 ++ examples/stm32/f1/obldc/usart_irq/usart_irq.ld | 31 --------------------- examples/stm32/f1/stm32-h103/button/Makefile | 2 ++ examples/stm32/f1/stm32-h103/button/button.ld | 31 --------------------- examples/stm32/f1/stm32-h103/exti_both/Makefile | 2 ++ .../stm32/f1/stm32-h103/exti_both/exti_both.ld | 31 --------------------- .../f1/stm32-h103/exti_rising_falling/Makefile | 2 ++ .../exti_rising_falling/exti_rising_falling.ld | 31 --------------------- examples/stm32/f1/stm32-h103/fancyblink/Makefile | 2 ++ .../stm32/f1/stm32-h103/fancyblink/fancyblink.ld | 31 --------------------- examples/stm32/f1/stm32-h103/led_stripe/Makefile | 2 ++ .../stm32/f1/stm32-h103/led_stripe/led_stripe.ld | 31 --------------------- examples/stm32/f1/stm32-h103/miniblink/Makefile | 2 ++ .../stm32/f1/stm32-h103/miniblink/miniblink.ld | 31 --------------------- examples/stm32/f1/stm32-h103/pwm_6step/Makefile | 2 ++ .../stm32/f1/stm32-h103/pwm_6step/pwm_6step.ld | 31 --------------------- examples/stm32/f1/stm32-h103/spi/Makefile | 2 ++ examples/stm32/f1/stm32-h103/spi/spi.ld | 31 --------------------- examples/stm32/f1/stm32-h103/stm32-h103.ld | 31 +++++++++++++++++++++ examples/stm32/f1/stm32-h103/timer/Makefile | 2 ++ examples/stm32/f1/stm32-h103/timer/timer.ld | 31 --------------------- examples/stm32/f1/stm32-h103/traceswo/Makefile | 2 ++ examples/stm32/f1/stm32-h103/traceswo/traceswo.ld | 31 --------------------- examples/stm32/f1/stm32-h103/usart/Makefile | 2 ++ examples/stm32/f1/stm32-h103/usart/usart.ld | 31 --------------------- examples/stm32/f1/stm32-h103/usart_irq/Makefile | 2 ++ .../stm32/f1/stm32-h103/usart_irq/usart_irq.ld | 31 --------------------- .../stm32/f1/stm32-h103/usart_irq_printf/Makefile | 2 ++ .../usart_irq_printf/usart_irq_printf.ld | 31 --------------------- examples/stm32/f1/stm32-h103/usart_printf/Makefile | 2 ++ .../f1/stm32-h103/usart_printf/usart_printf.ld | 31 --------------------- examples/stm32/f1/stm32-h103/usb_cdcacm/Makefile | 2 ++ examples/stm32/f1/stm32-h103/usb_cdcacm/cdcacm.ld | 31 --------------------- examples/stm32/f1/stm32-h103/usb_dfu/Makefile | 2 ++ examples/stm32/f1/stm32-h103/usb_dfu/usbdfu.ld | 29 -------------------- examples/stm32/f1/stm32-h103/usb_hid/Makefile | 2 ++ examples/stm32/f1/stm32-h103/usb_hid/usbhid.ld | 31 --------------------- examples/stm32/f1/stm32-h103/usb_iap/Makefile | 2 ++ examples/stm32/f1/stm32-h103/usb_iap/usbiap.ld | 31 --------------------- examples/stm32/f1/stm32-h107/fancyblink/Makefile | 2 ++ .../stm32/f1/stm32-h107/fancyblink/fancyblink.ld | 31 --------------------- examples/stm32/f1/stm32-h107/stm32-h107.ld | 31 +++++++++++++++++++++ examples/stm32/f1/stm32-h107/usb_simple/Makefile | 2 ++ .../stm32/f1/stm32-h107/usb_simple/usb_simple.ld | 31 --------------------- .../stm32/f1/stm32vl-discovery/button/Makefile | 2 ++ .../stm32/f1/stm32vl-discovery/button/button.ld | 31 --------------------- .../stm32/f1/stm32vl-discovery/fancyblink/Makefile | 2 ++ .../f1/stm32vl-discovery/fancyblink/fancyblink.ld | 31 --------------------- .../stm32/f1/stm32vl-discovery/miniblink/Makefile | 2 ++ .../f1/stm32vl-discovery/miniblink/miniblink.ld | 31 --------------------- examples/stm32/f1/stm32vl-discovery/rtc/Makefile | 2 ++ examples/stm32/f1/stm32vl-discovery/rtc/rtc.ld | 31 --------------------- .../f1/stm32vl-discovery/stm32vl-discovery.ld | 31 +++++++++++++++++++++ examples/stm32/f1/stm32vl-discovery/usart/Makefile | 2 ++ examples/stm32/f1/stm32vl-discovery/usart/usart.ld | 31 --------------------- examples/stm32/f2/Makefile.include | 2 +- examples/stm32/f2/jobygps/jobygps.ld | 32 ++++++++++++++++++++++ examples/stm32/f2/jobygps/miniblink/Makefile | 2 ++ examples/stm32/f2/jobygps/miniblink/miniblink.ld | 31 --------------------- examples/stm32/f2/jobygps/spi_test/Makefile | 2 ++ examples/stm32/f2/jobygps/spi_test/spi_test.ld | 31 --------------------- examples/stm32/f2/jobygps/usart_printf/Makefile | 2 ++ .../stm32/f2/jobygps/usart_printf/usart_printf.ld | 31 --------------------- examples/stm32/f4/Makefile.include | 2 +- .../stm32/f4/stm32f4-discovery/button/Makefile | 2 ++ .../stm32/f4/stm32f4-discovery/button/button.ld | 32 ---------------------- .../stm32/f4/stm32f4-discovery/fancyblink/Makefile | 2 ++ .../f4/stm32f4-discovery/fancyblink/fancyblink.ld | 32 ---------------------- .../stm32/f4/stm32f4-discovery/miniblink/Makefile | 2 ++ .../f4/stm32f4-discovery/miniblink/miniblink.ld | 32 ---------------------- .../f4/stm32f4-discovery/stm32f4-discovery.ld | 32 ++++++++++++++++++++++ examples/stm32/f4/stm32f4-discovery/usart/Makefile | 2 ++ examples/stm32/f4/stm32f4-discovery/usart/usart.ld | 32 ---------------------- 107 files changed, 411 insertions(+), 1431 deletions(-) create mode 100644 examples/lm3s/lm3s3748-evb/lm3s3748-evb.ld delete mode 100644 examples/lm3s/lm3s3748-evb/miniblink/miniblink.ld create mode 100644 examples/lpc13xx/lpc-p1343/lpc-p1343.ld delete mode 100644 examples/lpc13xx/lpc-p1343/miniblink/miniblink.ld delete mode 100644 examples/stm32/f1/lisa-m/fancyblink/fancyblink.ld create mode 100644 examples/stm32/f1/lisa-m/lisa-m.ld delete mode 100644 examples/stm32/f1/lisa-m/usb_cdcacm/cdcacm.ld delete mode 100644 examples/stm32/f1/lisa-m/usb_dfu/usbdfu.ld delete mode 100644 examples/stm32/f1/lisa-m/usb_hid/usbhid.ld delete mode 100644 examples/stm32/f1/mb525/fancyblink/fancyblink.ld create mode 100644 examples/stm32/f1/mb525/mb525.ld delete mode 100644 examples/stm32/f1/mb525/pwmleds/pwmleds.ld delete mode 100644 examples/stm32/f1/obldc/can/can.ld delete mode 100644 examples/stm32/f1/obldc/led/led.ld create mode 100644 examples/stm32/f1/obldc/obldc.ld delete mode 100644 examples/stm32/f1/obldc/pwmleds/pwmleds.ld delete mode 100644 examples/stm32/f1/obldc/systick/systick.ld delete mode 100644 examples/stm32/f1/obldc/usart/usart.ld delete mode 100644 examples/stm32/f1/obldc/usart_irq/usart_irq.ld delete mode 100644 examples/stm32/f1/stm32-h103/button/button.ld delete mode 100644 examples/stm32/f1/stm32-h103/exti_both/exti_both.ld delete mode 100644 examples/stm32/f1/stm32-h103/exti_rising_falling/exti_rising_falling.ld delete mode 100644 examples/stm32/f1/stm32-h103/fancyblink/fancyblink.ld delete mode 100644 examples/stm32/f1/stm32-h103/led_stripe/led_stripe.ld delete mode 100644 examples/stm32/f1/stm32-h103/miniblink/miniblink.ld delete mode 100644 examples/stm32/f1/stm32-h103/pwm_6step/pwm_6step.ld delete mode 100644 examples/stm32/f1/stm32-h103/spi/spi.ld create mode 100644 examples/stm32/f1/stm32-h103/stm32-h103.ld delete mode 100644 examples/stm32/f1/stm32-h103/timer/timer.ld delete mode 100644 examples/stm32/f1/stm32-h103/traceswo/traceswo.ld delete mode 100644 examples/stm32/f1/stm32-h103/usart/usart.ld delete mode 100644 examples/stm32/f1/stm32-h103/usart_irq/usart_irq.ld delete mode 100644 examples/stm32/f1/stm32-h103/usart_irq_printf/usart_irq_printf.ld delete mode 100644 examples/stm32/f1/stm32-h103/usart_printf/usart_printf.ld delete mode 100644 examples/stm32/f1/stm32-h103/usb_cdcacm/cdcacm.ld delete mode 100644 examples/stm32/f1/stm32-h103/usb_dfu/usbdfu.ld delete mode 100644 examples/stm32/f1/stm32-h103/usb_hid/usbhid.ld delete mode 100644 examples/stm32/f1/stm32-h103/usb_iap/usbiap.ld delete mode 100644 examples/stm32/f1/stm32-h107/fancyblink/fancyblink.ld create mode 100644 examples/stm32/f1/stm32-h107/stm32-h107.ld delete mode 100644 examples/stm32/f1/stm32-h107/usb_simple/usb_simple.ld delete mode 100644 examples/stm32/f1/stm32vl-discovery/button/button.ld delete mode 100644 examples/stm32/f1/stm32vl-discovery/fancyblink/fancyblink.ld delete mode 100644 examples/stm32/f1/stm32vl-discovery/miniblink/miniblink.ld delete mode 100644 examples/stm32/f1/stm32vl-discovery/rtc/rtc.ld create mode 100644 examples/stm32/f1/stm32vl-discovery/stm32vl-discovery.ld delete mode 100644 examples/stm32/f1/stm32vl-discovery/usart/usart.ld create mode 100644 examples/stm32/f2/jobygps/jobygps.ld delete mode 100644 examples/stm32/f2/jobygps/miniblink/miniblink.ld delete mode 100644 examples/stm32/f2/jobygps/spi_test/spi_test.ld delete mode 100644 examples/stm32/f2/jobygps/usart_printf/usart_printf.ld delete mode 100644 examples/stm32/f4/stm32f4-discovery/button/button.ld delete mode 100644 examples/stm32/f4/stm32f4-discovery/fancyblink/fancyblink.ld delete mode 100644 examples/stm32/f4/stm32f4-discovery/miniblink/miniblink.ld create mode 100644 examples/stm32/f4/stm32f4-discovery/stm32f4-discovery.ld delete mode 100644 examples/stm32/f4/stm32f4-discovery/usart/usart.ld diff --git a/examples/lm3s/Makefile.include b/examples/lm3s/Makefile.include index 0eafe7d..1e89988 100644 --- a/examples/lm3s/Makefile.include +++ b/examples/lm3s/Makefile.include @@ -29,7 +29,7 @@ OBJDUMP = $(PREFIX)-objdump TOOLCHAIN_DIR = ../../../.. CFLAGS += -O0 -g3 -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \ -mcpu=cortex-m3 -mthumb -MD -LDSCRIPT = $(BINARY).ld +LDSCRIPT ?= $(BINARY).ld LDFLAGS += -L$(TOOLCHAIN_DIR)/lib -L$(TOOLCHAIN_DIR)/lib/lm3s \ -T$(LDSCRIPT) -nostartfiles -Wl,--gc-sections OBJS += $(BINARY).o diff --git a/examples/lm3s/lm3s3748-evb/lm3s3748-evb.ld b/examples/lm3s/lm3s3748-evb/lm3s3748-evb.ld new file mode 100644 index 0000000..bca5282 --- /dev/null +++ b/examples/lm3s/lm3s3748-evb/lm3s3748-evb.ld @@ -0,0 +1,31 @@ +/* + * This file is part of the libopencm3 project. + * + * Copyright (C) 2010 Uwe Hermann + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +/* Linker script for Luminary Micro (now TI) Stellaris LM3S3748-EVB. */ + +/* Define memory regions. */ +MEMORY +{ + rom (rx) : ORIGIN = 0x00000000, LENGTH = 128K + ram (rwx) : ORIGIN = 0x20000000, LENGTH = 64K +} + +/* Include the common ld script. */ +INCLUDE libopencm3_lm3s.ld + diff --git a/examples/lm3s/lm3s3748-evb/miniblink/Makefile b/examples/lm3s/lm3s3748-evb/miniblink/Makefile index 110e69e..3229fe6 100644 --- a/examples/lm3s/lm3s3748-evb/miniblink/Makefile +++ b/examples/lm3s/lm3s3748-evb/miniblink/Makefile @@ -19,5 +19,7 @@ BINARY = miniblink +LDSCRIPT = ../lm3s3748-evb.ld + include ../../Makefile.include diff --git a/examples/lm3s/lm3s3748-evb/miniblink/miniblink.ld b/examples/lm3s/lm3s3748-evb/miniblink/miniblink.ld deleted file mode 100644 index bca5282..0000000 --- a/examples/lm3s/lm3s3748-evb/miniblink/miniblink.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2010 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Luminary Micro (now TI) Stellaris LM3S3748-EVB. */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x00000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 64K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_lm3s.ld - diff --git a/examples/lpc13xx/Makefile.include b/examples/lpc13xx/Makefile.include index 948d6c4..db80500 100644 --- a/examples/lpc13xx/Makefile.include +++ b/examples/lpc13xx/Makefile.include @@ -29,7 +29,7 @@ OBJDUMP = $(PREFIX)-objdump TOOLCHAIN_DIR = ../../../.. CFLAGS += -Os -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \ -mcpu=cortex-m3 -mthumb -MD -LDSCRIPT = $(BINARY).ld +LDSCRIPT ?= $(BINARY).ld LDFLAGS += -L$(TOOLCHAIN_DIR)/lib -L$(TOOLCHAIN_DIR)/lib/lpc13xx \ -T$(LDSCRIPT) -nostartfiles -Wl,--gc-sections OBJS += $(BINARY).o diff --git a/examples/lpc13xx/lpc-p1343/lpc-p1343.ld b/examples/lpc13xx/lpc-p1343/lpc-p1343.ld new file mode 100644 index 0000000..0bffae1 --- /dev/null +++ b/examples/lpc13xx/lpc-p1343/lpc-p1343.ld @@ -0,0 +1,31 @@ +/* + * This file is part of the libopencm3 project. + * + * Copyright (C) 2010 Uwe Hermann + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +/* Linker script for Olimex LPC-P1343 (LPC1343FBD48, 32K flash, 8K SRAM). */ + +/* Define memory regions. */ +MEMORY +{ + rom (rx) : ORIGIN = 0x00000000, LENGTH = 32K + ram (rwx) : ORIGIN = 0x10000000, LENGTH = 8K +} + +/* Include the common ld script. */ +INCLUDE libopencm3_lpc13xx.ld + diff --git a/examples/lpc13xx/lpc-p1343/miniblink/Makefile b/examples/lpc13xx/lpc-p1343/miniblink/Makefile index 110e69e..e372e45 100644 --- a/examples/lpc13xx/lpc-p1343/miniblink/Makefile +++ b/examples/lpc13xx/lpc-p1343/miniblink/Makefile @@ -19,5 +19,7 @@ BINARY = miniblink +LDSCRIPT = ../lpc-p1343.ld + include ../../Makefile.include diff --git a/examples/lpc13xx/lpc-p1343/miniblink/miniblink.ld b/examples/lpc13xx/lpc-p1343/miniblink/miniblink.ld deleted file mode 100644 index 0bffae1..0000000 --- a/examples/lpc13xx/lpc-p1343/miniblink/miniblink.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2010 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Olimex LPC-P1343 (LPC1343FBD48, 32K flash, 8K SRAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x00000000, LENGTH = 32K - ram (rwx) : ORIGIN = 0x10000000, LENGTH = 8K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_lpc13xx.ld - diff --git a/examples/stm32/f1/Makefile.include b/examples/stm32/f1/Makefile.include index b7046d0..7d59ddf 100644 --- a/examples/stm32/f1/Makefile.include +++ b/examples/stm32/f1/Makefile.include @@ -30,7 +30,7 @@ GDB = $(PREFIX)-gdb TOOLCHAIN_DIR = ../../../../.. CFLAGS += -Os -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include \ -fno-common -mcpu=cortex-m3 -mthumb -msoft-float -MD -DSTM32F1 -LDSCRIPT = $(BINARY).ld +LDSCRIPT ?= $(BINARY).ld LDFLAGS += -lc -lnosys -L$(TOOLCHAIN_DIR)/lib -L$(TOOLCHAIN_DIR)/lib/stm32/f1 \ -T$(LDSCRIPT) -nostartfiles -Wl,--gc-sections \ -mthumb -march=armv7 -mfix-cortex-m3-ldrd -msoft-float diff --git a/examples/stm32/f1/lisa-m/fancyblink/Makefile b/examples/stm32/f1/lisa-m/fancyblink/Makefile index 1baec4d..52f5d95 100644 --- a/examples/stm32/f1/lisa-m/fancyblink/Makefile +++ b/examples/stm32/f1/lisa-m/fancyblink/Makefile @@ -19,5 +19,7 @@ BINARY = fancyblink +LDSCRIPT = ../lisa-m.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/lisa-m/fancyblink/fancyblink.ld b/examples/stm32/f1/lisa-m/fancyblink/fancyblink.ld deleted file mode 100644 index 3409b98..0000000 --- a/examples/stm32/f1/lisa-m/fancyblink/fancyblink.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Olimex STM32-H103 (STM32F103RBT6, 128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/lisa-m/lisa-m.ld b/examples/stm32/f1/lisa-m/lisa-m.ld new file mode 100644 index 0000000..726d34a --- /dev/null +++ b/examples/stm32/f1/lisa-m/lisa-m.ld @@ -0,0 +1,32 @@ +/* + * This file is part of the libopencm3 project. + * + * Copyright (C) 2009 Uwe Hermann + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +/* Linker script for Lisa-M (STM32F103RBT6, 128K flash, 20K RAM). */ +/* TODO: Chip name and sizes correct? */ + +/* Define memory regions. */ +MEMORY +{ + rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K + ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K +} + +/* Include the common ld script. */ +INCLUDE libopencm3_stm32f1.ld + diff --git a/examples/stm32/f1/lisa-m/usb_cdcacm/Makefile b/examples/stm32/f1/lisa-m/usb_cdcacm/Makefile index 38179e3..a913f73 100644 --- a/examples/stm32/f1/lisa-m/usb_cdcacm/Makefile +++ b/examples/stm32/f1/lisa-m/usb_cdcacm/Makefile @@ -19,5 +19,7 @@ BINARY = cdcacm +LDSCRIPT = ../lisa-m.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/lisa-m/usb_cdcacm/cdcacm.ld b/examples/stm32/f1/lisa-m/usb_cdcacm/cdcacm.ld deleted file mode 100644 index d0df9e6..0000000 --- a/examples/stm32/f1/lisa-m/usb_cdcacm/cdcacm.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2010 Thomas Otto - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Olimex STM32-H103 (STM32F103RBT6, 128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/lisa-m/usb_dfu/Makefile b/examples/stm32/f1/lisa-m/usb_dfu/Makefile index 48e2d6b..88ca7e5 100644 --- a/examples/stm32/f1/lisa-m/usb_dfu/Makefile +++ b/examples/stm32/f1/lisa-m/usb_dfu/Makefile @@ -19,5 +19,7 @@ BINARY = usbdfu +LDSCRIPT = ../lisa-m.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/lisa-m/usb_dfu/usbdfu.ld b/examples/stm32/f1/lisa-m/usb_dfu/usbdfu.ld deleted file mode 100644 index 6a01797..0000000 --- a/examples/stm32/f1/lisa-m/usb_dfu/usbdfu.ld +++ /dev/null @@ -1,29 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2010 Thomas Otto - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 8K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 4K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/lisa-m/usb_hid/Makefile b/examples/stm32/f1/lisa-m/usb_hid/Makefile index d831e9e..15d3391 100644 --- a/examples/stm32/f1/lisa-m/usb_hid/Makefile +++ b/examples/stm32/f1/lisa-m/usb_hid/Makefile @@ -19,5 +19,7 @@ BINARY = usbhid +LDSCRIPT = ../lisa-m.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/lisa-m/usb_hid/usbhid.ld b/examples/stm32/f1/lisa-m/usb_hid/usbhid.ld deleted file mode 100644 index d0df9e6..0000000 --- a/examples/stm32/f1/lisa-m/usb_hid/usbhid.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2010 Thomas Otto - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Olimex STM32-H103 (STM32F103RBT6, 128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/mb525/fancyblink/Makefile b/examples/stm32/f1/mb525/fancyblink/Makefile index 1baec4d..8e18a4f 100644 --- a/examples/stm32/f1/mb525/fancyblink/Makefile +++ b/examples/stm32/f1/mb525/fancyblink/Makefile @@ -19,5 +19,7 @@ BINARY = fancyblink +LDSCRIPT = ../mb525.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/mb525/fancyblink/fancyblink.ld b/examples/stm32/f1/mb525/fancyblink/fancyblink.ld deleted file mode 100644 index 3409b98..0000000 --- a/examples/stm32/f1/mb525/fancyblink/fancyblink.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Olimex STM32-H103 (STM32F103RBT6, 128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/mb525/mb525.ld b/examples/stm32/f1/mb525/mb525.ld new file mode 100644 index 0000000..49ff810 --- /dev/null +++ b/examples/stm32/f1/mb525/mb525.ld @@ -0,0 +1,32 @@ +/* + * This file is part of the libopencm3 project. + * + * Copyright (C) 2009 Uwe Hermann + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +/* TODO: Fix description and sizes. */ +/* Linker script for Olimex STM32-H103 (STM32F103RBT6, 128K flash, 20K RAM). */ + +/* Define memory regions. */ +MEMORY +{ + rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K + ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K +} + +/* Include the common ld script. */ +INCLUDE libopencm3_stm32f1.ld + diff --git a/examples/stm32/f1/mb525/pwmleds/Makefile b/examples/stm32/f1/mb525/pwmleds/Makefile index 8ae74d6..a5064b1 100644 --- a/examples/stm32/f1/mb525/pwmleds/Makefile +++ b/examples/stm32/f1/mb525/pwmleds/Makefile @@ -19,5 +19,7 @@ BINARY = pwmleds +LDSCRIPT = ../mb525.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/mb525/pwmleds/pwmleds.ld b/examples/stm32/f1/mb525/pwmleds/pwmleds.ld deleted file mode 100644 index 3409b98..0000000 --- a/examples/stm32/f1/mb525/pwmleds/pwmleds.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Olimex STM32-H103 (STM32F103RBT6, 128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/obldc/can/Makefile b/examples/stm32/f1/obldc/can/Makefile index 20a4b90..15c9cdd 100644 --- a/examples/stm32/f1/obldc/can/Makefile +++ b/examples/stm32/f1/obldc/can/Makefile @@ -19,5 +19,7 @@ BINARY = can +LDSCRIPT = ../obldc.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/obldc/can/can.ld b/examples/stm32/f1/obldc/can/can.ld deleted file mode 100644 index 4f609a8..0000000 --- a/examples/stm32/f1/obldc/can/can.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2010 Thomas Otto - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for an STM32F103RBT6 board (128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/obldc/led/Makefile b/examples/stm32/f1/obldc/led/Makefile index 8e1618a..7d227be 100644 --- a/examples/stm32/f1/obldc/led/Makefile +++ b/examples/stm32/f1/obldc/led/Makefile @@ -19,5 +19,7 @@ BINARY = led +LDSCRIPT = ../obldc.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/obldc/led/led.ld b/examples/stm32/f1/obldc/led/led.ld deleted file mode 100644 index edb52c5..0000000 --- a/examples/stm32/f1/obldc/led/led.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Open-BLDC (STM32F103CBT6, 128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/obldc/obldc.ld b/examples/stm32/f1/obldc/obldc.ld new file mode 100644 index 0000000..edb52c5 --- /dev/null +++ b/examples/stm32/f1/obldc/obldc.ld @@ -0,0 +1,31 @@ +/* + * This file is part of the libopencm3 project. + * + * Copyright (C) 2009 Uwe Hermann + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +/* Linker script for Open-BLDC (STM32F103CBT6, 128K flash, 20K RAM). */ + +/* Define memory regions. */ +MEMORY +{ + rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K + ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K +} + +/* Include the common ld script. */ +INCLUDE libopencm3_stm32f1.ld + diff --git a/examples/stm32/f1/obldc/pwmleds/Makefile b/examples/stm32/f1/obldc/pwmleds/Makefile index 8ae74d6..085fb23 100644 --- a/examples/stm32/f1/obldc/pwmleds/Makefile +++ b/examples/stm32/f1/obldc/pwmleds/Makefile @@ -19,5 +19,7 @@ BINARY = pwmleds +LDSCRIPT = ../obldc.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/obldc/pwmleds/pwmleds.ld b/examples/stm32/f1/obldc/pwmleds/pwmleds.ld deleted file mode 100644 index 3409b98..0000000 --- a/examples/stm32/f1/obldc/pwmleds/pwmleds.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Olimex STM32-H103 (STM32F103RBT6, 128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/obldc/systick/Makefile b/examples/stm32/f1/obldc/systick/Makefile index 91b5cb5..ddd3d2f 100644 --- a/examples/stm32/f1/obldc/systick/Makefile +++ b/examples/stm32/f1/obldc/systick/Makefile @@ -19,5 +19,7 @@ BINARY = systick +LDSCRIPT = ../obldc.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/obldc/systick/systick.ld b/examples/stm32/f1/obldc/systick/systick.ld deleted file mode 100644 index a3195d2..0000000 --- a/examples/stm32/f1/obldc/systick/systick.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2010 Thomas Otto - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for an STM32F103CBT6 board (128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/obldc/usart/Makefile b/examples/stm32/f1/obldc/usart/Makefile index 2c1e1b1..ba5cfab 100644 --- a/examples/stm32/f1/obldc/usart/Makefile +++ b/examples/stm32/f1/obldc/usart/Makefile @@ -19,5 +19,7 @@ BINARY = usart +LDSCRIPT = ../obldc.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/obldc/usart/usart.ld b/examples/stm32/f1/obldc/usart/usart.ld deleted file mode 100644 index edb52c5..0000000 --- a/examples/stm32/f1/obldc/usart/usart.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Open-BLDC (STM32F103CBT6, 128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/obldc/usart_irq/Makefile b/examples/stm32/f1/obldc/usart_irq/Makefile index 2ab46a0..b0db32c 100644 --- a/examples/stm32/f1/obldc/usart_irq/Makefile +++ b/examples/stm32/f1/obldc/usart_irq/Makefile @@ -21,5 +21,7 @@ BINARY = usart_irq OOCD_BOARD = open-bldc +LDSCRIPT = ../obldc.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/obldc/usart_irq/usart_irq.ld b/examples/stm32/f1/obldc/usart_irq/usart_irq.ld deleted file mode 100644 index edb52c5..0000000 --- a/examples/stm32/f1/obldc/usart_irq/usart_irq.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Open-BLDC (STM32F103CBT6, 128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/stm32-h103/button/Makefile b/examples/stm32/f1/stm32-h103/button/Makefile index 96731c2..35b7df5 100644 --- a/examples/stm32/f1/stm32-h103/button/Makefile +++ b/examples/stm32/f1/stm32-h103/button/Makefile @@ -19,5 +19,7 @@ BINARY = button +LDSCRIPT = ../stm32-h103.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/stm32-h103/button/button.ld b/examples/stm32/f1/stm32-h103/button/button.ld deleted file mode 100644 index 3409b98..0000000 --- a/examples/stm32/f1/stm32-h103/button/button.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Olimex STM32-H103 (STM32F103RBT6, 128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/stm32-h103/exti_both/Makefile b/examples/stm32/f1/stm32-h103/exti_both/Makefile index 39e305b..4c88571 100644 --- a/examples/stm32/f1/stm32-h103/exti_both/Makefile +++ b/examples/stm32/f1/stm32-h103/exti_both/Makefile @@ -19,5 +19,7 @@ BINARY = exti_both +LDSCRIPT = ../stm32-h103.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/stm32-h103/exti_both/exti_both.ld b/examples/stm32/f1/stm32-h103/exti_both/exti_both.ld deleted file mode 100644 index 3409b98..0000000 --- a/examples/stm32/f1/stm32-h103/exti_both/exti_both.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Olimex STM32-H103 (STM32F103RBT6, 128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/stm32-h103/exti_rising_falling/Makefile b/examples/stm32/f1/stm32-h103/exti_rising_falling/Makefile index fc603a6..6a7735e 100644 --- a/examples/stm32/f1/stm32-h103/exti_rising_falling/Makefile +++ b/examples/stm32/f1/stm32-h103/exti_rising_falling/Makefile @@ -19,5 +19,7 @@ BINARY = exti_rising_falling +LDSCRIPT = ../stm32-h103.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/stm32-h103/exti_rising_falling/exti_rising_falling.ld b/examples/stm32/f1/stm32-h103/exti_rising_falling/exti_rising_falling.ld deleted file mode 100644 index 3409b98..0000000 --- a/examples/stm32/f1/stm32-h103/exti_rising_falling/exti_rising_falling.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Olimex STM32-H103 (STM32F103RBT6, 128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/stm32-h103/fancyblink/Makefile b/examples/stm32/f1/stm32-h103/fancyblink/Makefile index 1baec4d..54ccf5e 100644 --- a/examples/stm32/f1/stm32-h103/fancyblink/Makefile +++ b/examples/stm32/f1/stm32-h103/fancyblink/Makefile @@ -19,5 +19,7 @@ BINARY = fancyblink +LDSCRIPT = ../stm32-h103.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/stm32-h103/fancyblink/fancyblink.ld b/examples/stm32/f1/stm32-h103/fancyblink/fancyblink.ld deleted file mode 100644 index 3409b98..0000000 --- a/examples/stm32/f1/stm32-h103/fancyblink/fancyblink.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Olimex STM32-H103 (STM32F103RBT6, 128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/stm32-h103/led_stripe/Makefile b/examples/stm32/f1/stm32-h103/led_stripe/Makefile index 60fd1ef..c7d5d25 100644 --- a/examples/stm32/f1/stm32-h103/led_stripe/Makefile +++ b/examples/stm32/f1/stm32-h103/led_stripe/Makefile @@ -19,5 +19,7 @@ BINARY = led_stripe +LDSCRIPT = ../stm32-h103.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/stm32-h103/led_stripe/led_stripe.ld b/examples/stm32/f1/stm32-h103/led_stripe/led_stripe.ld deleted file mode 100644 index 3409b98..0000000 --- a/examples/stm32/f1/stm32-h103/led_stripe/led_stripe.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Olimex STM32-H103 (STM32F103RBT6, 128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/stm32-h103/miniblink/Makefile b/examples/stm32/f1/stm32-h103/miniblink/Makefile index 24a478b..9da71ea 100644 --- a/examples/stm32/f1/stm32-h103/miniblink/Makefile +++ b/examples/stm32/f1/stm32-h103/miniblink/Makefile @@ -19,5 +19,7 @@ BINARY = miniblink +LDSCRIPT = ../stm32-h103.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/stm32-h103/miniblink/miniblink.ld b/examples/stm32/f1/stm32-h103/miniblink/miniblink.ld deleted file mode 100644 index 3409b98..0000000 --- a/examples/stm32/f1/stm32-h103/miniblink/miniblink.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Olimex STM32-H103 (STM32F103RBT6, 128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/stm32-h103/pwm_6step/Makefile b/examples/stm32/f1/stm32-h103/pwm_6step/Makefile index 2360082..c6e80f7 100644 --- a/examples/stm32/f1/stm32-h103/pwm_6step/Makefile +++ b/examples/stm32/f1/stm32-h103/pwm_6step/Makefile @@ -19,5 +19,7 @@ BINARY = pwm_6step +LDSCRIPT = ../stm32-h103.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/stm32-h103/pwm_6step/pwm_6step.ld b/examples/stm32/f1/stm32-h103/pwm_6step/pwm_6step.ld deleted file mode 100644 index 3409b98..0000000 --- a/examples/stm32/f1/stm32-h103/pwm_6step/pwm_6step.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Olimex STM32-H103 (STM32F103RBT6, 128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/stm32-h103/spi/Makefile b/examples/stm32/f1/stm32-h103/spi/Makefile index 7d3cb72..0064f13 100644 --- a/examples/stm32/f1/stm32-h103/spi/Makefile +++ b/examples/stm32/f1/stm32-h103/spi/Makefile @@ -19,5 +19,7 @@ BINARY = spi +LDSCRIPT = ../stm32-h103.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/stm32-h103/spi/spi.ld b/examples/stm32/f1/stm32-h103/spi/spi.ld deleted file mode 100644 index e2fb5b6..0000000 --- a/examples/stm32/f1/stm32-h103/spi/spi.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2010 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Olimex STM32-H103 (STM32F103RBT6, 128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/stm32-h103/stm32-h103.ld b/examples/stm32/f1/stm32-h103/stm32-h103.ld new file mode 100644 index 0000000..3409b98 --- /dev/null +++ b/examples/stm32/f1/stm32-h103/stm32-h103.ld @@ -0,0 +1,31 @@ +/* + * This file is part of the libopencm3 project. + * + * Copyright (C) 2009 Uwe Hermann + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +/* Linker script for Olimex STM32-H103 (STM32F103RBT6, 128K flash, 20K RAM). */ + +/* Define memory regions. */ +MEMORY +{ + rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K + ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K +} + +/* Include the common ld script. */ +INCLUDE libopencm3_stm32f1.ld + diff --git a/examples/stm32/f1/stm32-h103/timer/Makefile b/examples/stm32/f1/stm32-h103/timer/Makefile index 86aced4..ad7edc0 100644 --- a/examples/stm32/f1/stm32-h103/timer/Makefile +++ b/examples/stm32/f1/stm32-h103/timer/Makefile @@ -19,5 +19,7 @@ BINARY = timer +LDSCRIPT = ../stm32-h103.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/stm32-h103/timer/timer.ld b/examples/stm32/f1/stm32-h103/timer/timer.ld deleted file mode 100644 index 3409b98..0000000 --- a/examples/stm32/f1/stm32-h103/timer/timer.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Olimex STM32-H103 (STM32F103RBT6, 128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/stm32-h103/traceswo/Makefile b/examples/stm32/f1/stm32-h103/traceswo/Makefile index 37510d5..3d87313 100644 --- a/examples/stm32/f1/stm32-h103/traceswo/Makefile +++ b/examples/stm32/f1/stm32-h103/traceswo/Makefile @@ -19,5 +19,7 @@ BINARY = traceswo +LDSCRIPT = ../stm32-h103.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/stm32-h103/traceswo/traceswo.ld b/examples/stm32/f1/stm32-h103/traceswo/traceswo.ld deleted file mode 100644 index 3409b98..0000000 --- a/examples/stm32/f1/stm32-h103/traceswo/traceswo.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Olimex STM32-H103 (STM32F103RBT6, 128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/stm32-h103/usart/Makefile b/examples/stm32/f1/stm32-h103/usart/Makefile index 2c1e1b1..442026a 100644 --- a/examples/stm32/f1/stm32-h103/usart/Makefile +++ b/examples/stm32/f1/stm32-h103/usart/Makefile @@ -19,5 +19,7 @@ BINARY = usart +LDSCRIPT = ../stm32-h103.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/stm32-h103/usart/usart.ld b/examples/stm32/f1/stm32-h103/usart/usart.ld deleted file mode 100644 index 3409b98..0000000 --- a/examples/stm32/f1/stm32-h103/usart/usart.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Olimex STM32-H103 (STM32F103RBT6, 128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/stm32-h103/usart_irq/Makefile b/examples/stm32/f1/stm32-h103/usart_irq/Makefile index 6ee93bd..499b116 100644 --- a/examples/stm32/f1/stm32-h103/usart_irq/Makefile +++ b/examples/stm32/f1/stm32-h103/usart_irq/Makefile @@ -19,5 +19,7 @@ BINARY = usart_irq +LDSCRIPT = ../stm32-h103.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/stm32-h103/usart_irq/usart_irq.ld b/examples/stm32/f1/stm32-h103/usart_irq/usart_irq.ld deleted file mode 100644 index edb52c5..0000000 --- a/examples/stm32/f1/stm32-h103/usart_irq/usart_irq.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Open-BLDC (STM32F103CBT6, 128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/stm32-h103/usart_irq_printf/Makefile b/examples/stm32/f1/stm32-h103/usart_irq_printf/Makefile index 2917a7d..dfedbc0 100644 --- a/examples/stm32/f1/stm32-h103/usart_irq_printf/Makefile +++ b/examples/stm32/f1/stm32-h103/usart_irq_printf/Makefile @@ -19,5 +19,7 @@ BINARY = usart_irq_printf +LDSCRIPT = ../stm32-h103.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/stm32-h103/usart_irq_printf/usart_irq_printf.ld b/examples/stm32/f1/stm32-h103/usart_irq_printf/usart_irq_printf.ld deleted file mode 100644 index edb52c5..0000000 --- a/examples/stm32/f1/stm32-h103/usart_irq_printf/usart_irq_printf.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Open-BLDC (STM32F103CBT6, 128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/stm32-h103/usart_printf/Makefile b/examples/stm32/f1/stm32-h103/usart_printf/Makefile index fb26208..3547611 100644 --- a/examples/stm32/f1/stm32-h103/usart_printf/Makefile +++ b/examples/stm32/f1/stm32-h103/usart_printf/Makefile @@ -19,5 +19,7 @@ BINARY = usart_printf +LDSCRIPT = ../stm32-h103.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/stm32-h103/usart_printf/usart_printf.ld b/examples/stm32/f1/stm32-h103/usart_printf/usart_printf.ld deleted file mode 100644 index edb52c5..0000000 --- a/examples/stm32/f1/stm32-h103/usart_printf/usart_printf.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Open-BLDC (STM32F103CBT6, 128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/stm32-h103/usb_cdcacm/Makefile b/examples/stm32/f1/stm32-h103/usb_cdcacm/Makefile index 38179e3..4193e1a 100644 --- a/examples/stm32/f1/stm32-h103/usb_cdcacm/Makefile +++ b/examples/stm32/f1/stm32-h103/usb_cdcacm/Makefile @@ -19,5 +19,7 @@ BINARY = cdcacm +LDSCRIPT = ../stm32-h103.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/stm32-h103/usb_cdcacm/cdcacm.ld b/examples/stm32/f1/stm32-h103/usb_cdcacm/cdcacm.ld deleted file mode 100644 index d0df9e6..0000000 --- a/examples/stm32/f1/stm32-h103/usb_cdcacm/cdcacm.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2010 Thomas Otto - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Olimex STM32-H103 (STM32F103RBT6, 128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/stm32-h103/usb_dfu/Makefile b/examples/stm32/f1/stm32-h103/usb_dfu/Makefile index 48e2d6b..d739f7e 100644 --- a/examples/stm32/f1/stm32-h103/usb_dfu/Makefile +++ b/examples/stm32/f1/stm32-h103/usb_dfu/Makefile @@ -19,5 +19,7 @@ BINARY = usbdfu +LDSCRIPT = ../stm32-h103.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/stm32-h103/usb_dfu/usbdfu.ld b/examples/stm32/f1/stm32-h103/usb_dfu/usbdfu.ld deleted file mode 100644 index 6a01797..0000000 --- a/examples/stm32/f1/stm32-h103/usb_dfu/usbdfu.ld +++ /dev/null @@ -1,29 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2010 Thomas Otto - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 8K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 4K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/stm32-h103/usb_hid/Makefile b/examples/stm32/f1/stm32-h103/usb_hid/Makefile index d831e9e..95706b2 100644 --- a/examples/stm32/f1/stm32-h103/usb_hid/Makefile +++ b/examples/stm32/f1/stm32-h103/usb_hid/Makefile @@ -19,5 +19,7 @@ BINARY = usbhid +LDSCRIPT = ../stm32-h103.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/stm32-h103/usb_hid/usbhid.ld b/examples/stm32/f1/stm32-h103/usb_hid/usbhid.ld deleted file mode 100644 index d0df9e6..0000000 --- a/examples/stm32/f1/stm32-h103/usb_hid/usbhid.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2010 Thomas Otto - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Olimex STM32-H103 (STM32F103RBT6, 128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/stm32-h103/usb_iap/Makefile b/examples/stm32/f1/stm32-h103/usb_iap/Makefile index bed9908..1858629 100644 --- a/examples/stm32/f1/stm32-h103/usb_iap/Makefile +++ b/examples/stm32/f1/stm32-h103/usb_iap/Makefile @@ -19,5 +19,7 @@ BINARY = usbiap +LDSCRIPT = ../stm32-h103.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/stm32-h103/usb_iap/usbiap.ld b/examples/stm32/f1/stm32-h103/usb_iap/usbiap.ld deleted file mode 100644 index d0df9e6..0000000 --- a/examples/stm32/f1/stm32-h103/usb_iap/usbiap.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2010 Thomas Otto - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Olimex STM32-H103 (STM32F103RBT6, 128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/stm32-h107/fancyblink/Makefile b/examples/stm32/f1/stm32-h107/fancyblink/Makefile index 1baec4d..0bc0d98 100644 --- a/examples/stm32/f1/stm32-h107/fancyblink/Makefile +++ b/examples/stm32/f1/stm32-h107/fancyblink/Makefile @@ -19,5 +19,7 @@ BINARY = fancyblink +LDSCRIPT = ../stm32-h107.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/stm32-h107/fancyblink/fancyblink.ld b/examples/stm32/f1/stm32-h107/fancyblink/fancyblink.ld deleted file mode 100644 index d35c141..0000000 --- a/examples/stm32/f1/stm32-h107/fancyblink/fancyblink.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Olimex STM32-H107 (STM32F107VCT6, 256K flash, 64K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 256K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 64K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/stm32-h107/stm32-h107.ld b/examples/stm32/f1/stm32-h107/stm32-h107.ld new file mode 100644 index 0000000..d35c141 --- /dev/null +++ b/examples/stm32/f1/stm32-h107/stm32-h107.ld @@ -0,0 +1,31 @@ +/* + * This file is part of the libopencm3 project. + * + * Copyright (C) 2009 Uwe Hermann + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +/* Linker script for Olimex STM32-H107 (STM32F107VCT6, 256K flash, 64K RAM). */ + +/* Define memory regions. */ +MEMORY +{ + rom (rx) : ORIGIN = 0x08000000, LENGTH = 256K + ram (rwx) : ORIGIN = 0x20000000, LENGTH = 64K +} + +/* Include the common ld script. */ +INCLUDE libopencm3_stm32f1.ld + diff --git a/examples/stm32/f1/stm32-h107/usb_simple/Makefile b/examples/stm32/f1/stm32-h107/usb_simple/Makefile index 2d954e2..1d4a3bc 100644 --- a/examples/stm32/f1/stm32-h107/usb_simple/Makefile +++ b/examples/stm32/f1/stm32-h107/usb_simple/Makefile @@ -19,5 +19,7 @@ BINARY = usb_simple +LDSCRIPT = ../stm32-h107.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/stm32-h107/usb_simple/usb_simple.ld b/examples/stm32/f1/stm32-h107/usb_simple/usb_simple.ld deleted file mode 100644 index d35c141..0000000 --- a/examples/stm32/f1/stm32-h107/usb_simple/usb_simple.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Olimex STM32-H107 (STM32F107VCT6, 256K flash, 64K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 256K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 64K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/stm32vl-discovery/button/Makefile b/examples/stm32/f1/stm32vl-discovery/button/Makefile index 96731c2..e3603e2 100644 --- a/examples/stm32/f1/stm32vl-discovery/button/Makefile +++ b/examples/stm32/f1/stm32vl-discovery/button/Makefile @@ -19,5 +19,7 @@ BINARY = button +LDSCRIPT = ../stm32vl-discovery.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/stm32vl-discovery/button/button.ld b/examples/stm32/f1/stm32vl-discovery/button/button.ld deleted file mode 100644 index 157204a..0000000 --- a/examples/stm32/f1/stm32vl-discovery/button/button.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for ST STM32VLDISCOVERY (STM32F100RB, 128K flash, 8K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 8K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/stm32vl-discovery/fancyblink/Makefile b/examples/stm32/f1/stm32vl-discovery/fancyblink/Makefile index 1baec4d..07a846b 100644 --- a/examples/stm32/f1/stm32vl-discovery/fancyblink/Makefile +++ b/examples/stm32/f1/stm32vl-discovery/fancyblink/Makefile @@ -19,5 +19,7 @@ BINARY = fancyblink +LDSCRIPT = ../stm32vl-discovery.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/stm32vl-discovery/fancyblink/fancyblink.ld b/examples/stm32/f1/stm32vl-discovery/fancyblink/fancyblink.ld deleted file mode 100644 index 157204a..0000000 --- a/examples/stm32/f1/stm32vl-discovery/fancyblink/fancyblink.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for ST STM32VLDISCOVERY (STM32F100RB, 128K flash, 8K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 8K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/stm32vl-discovery/miniblink/Makefile b/examples/stm32/f1/stm32vl-discovery/miniblink/Makefile index 24a478b..d737ab1 100644 --- a/examples/stm32/f1/stm32vl-discovery/miniblink/Makefile +++ b/examples/stm32/f1/stm32vl-discovery/miniblink/Makefile @@ -19,5 +19,7 @@ BINARY = miniblink +LDSCRIPT = ../stm32vl-discovery.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/stm32vl-discovery/miniblink/miniblink.ld b/examples/stm32/f1/stm32vl-discovery/miniblink/miniblink.ld deleted file mode 100644 index 157204a..0000000 --- a/examples/stm32/f1/stm32vl-discovery/miniblink/miniblink.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for ST STM32VLDISCOVERY (STM32F100RB, 128K flash, 8K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 8K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/stm32vl-discovery/rtc/Makefile b/examples/stm32/f1/stm32vl-discovery/rtc/Makefile index 1efa7ac..bbfc865 100644 --- a/examples/stm32/f1/stm32vl-discovery/rtc/Makefile +++ b/examples/stm32/f1/stm32vl-discovery/rtc/Makefile @@ -19,5 +19,7 @@ BINARY = rtc +LDSCRIPT = ../stm32vl-discovery.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/stm32vl-discovery/rtc/rtc.ld b/examples/stm32/f1/stm32vl-discovery/rtc/rtc.ld deleted file mode 100644 index 157204a..0000000 --- a/examples/stm32/f1/stm32vl-discovery/rtc/rtc.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for ST STM32VLDISCOVERY (STM32F100RB, 128K flash, 8K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 8K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f1/stm32vl-discovery/stm32vl-discovery.ld b/examples/stm32/f1/stm32vl-discovery/stm32vl-discovery.ld new file mode 100644 index 0000000..157204a --- /dev/null +++ b/examples/stm32/f1/stm32vl-discovery/stm32vl-discovery.ld @@ -0,0 +1,31 @@ +/* + * This file is part of the libopencm3 project. + * + * Copyright (C) 2009 Uwe Hermann + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +/* Linker script for ST STM32VLDISCOVERY (STM32F100RB, 128K flash, 8K RAM). */ + +/* Define memory regions. */ +MEMORY +{ + rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K + ram (rwx) : ORIGIN = 0x20000000, LENGTH = 8K +} + +/* Include the common ld script. */ +INCLUDE libopencm3_stm32f1.ld + diff --git a/examples/stm32/f1/stm32vl-discovery/usart/Makefile b/examples/stm32/f1/stm32vl-discovery/usart/Makefile index 2c1e1b1..6f37aea 100644 --- a/examples/stm32/f1/stm32vl-discovery/usart/Makefile +++ b/examples/stm32/f1/stm32vl-discovery/usart/Makefile @@ -19,5 +19,7 @@ BINARY = usart +LDSCRIPT = ../stm32vl-discovery.ld + include ../../Makefile.include diff --git a/examples/stm32/f1/stm32vl-discovery/usart/usart.ld b/examples/stm32/f1/stm32vl-discovery/usart/usart.ld deleted file mode 100644 index 157204a..0000000 --- a/examples/stm32/f1/stm32vl-discovery/usart/usart.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for ST STM32VLDISCOVERY (STM32F100RB, 128K flash, 8K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 8K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f1.ld - diff --git a/examples/stm32/f2/Makefile.include b/examples/stm32/f2/Makefile.include index 0345298..e7d6a52 100644 --- a/examples/stm32/f2/Makefile.include +++ b/examples/stm32/f2/Makefile.include @@ -31,7 +31,7 @@ GDB = $(PREFIX)-gdb TOOLCHAIN_DIR = ../../../../.. CFLAGS += -Os -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include \ -fno-common -mcpu=cortex-m3 -mthumb -msoft-float -MD -DSTM32F2 -LDSCRIPT = $(BINARY).ld +LDSCRIPT ?= $(BINARY).ld LDFLAGS += -lc -lnosys -L$(TOOLCHAIN_DIR)/lib \ -L$(TOOLCHAIN_DIR)/lib/stm32/f2 \ -T$(LDSCRIPT) -nostartfiles -Wl,--gc-sections \ diff --git a/examples/stm32/f2/jobygps/jobygps.ld b/examples/stm32/f2/jobygps/jobygps.ld new file mode 100644 index 0000000..b5e866b --- /dev/null +++ b/examples/stm32/f2/jobygps/jobygps.ld @@ -0,0 +1,32 @@ +/* + * This file is part of the libopencm3 project. + * + * Copyright (C) 2009 Uwe Hermann + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +/* TODO: Fix board name, chip name, and sizes. */ +/* Linker script for Olimex STM32-H103 (STM32F103RBT6, 128K flash, 20K RAM). */ + +/* Define memory regions. */ +MEMORY +{ + rom (rx) : ORIGIN = 0x08000000, LENGTH = 256K + ram (rwx) : ORIGIN = 0x20000000, LENGTH = 64K +} + +/* Include the common ld script. */ +INCLUDE libopencm3_stm32f2.ld + diff --git a/examples/stm32/f2/jobygps/miniblink/Makefile b/examples/stm32/f2/jobygps/miniblink/Makefile index 24a478b..08b482e 100644 --- a/examples/stm32/f2/jobygps/miniblink/Makefile +++ b/examples/stm32/f2/jobygps/miniblink/Makefile @@ -19,5 +19,7 @@ BINARY = miniblink +LDSCRIPT = ../jobygps.ld + include ../../Makefile.include diff --git a/examples/stm32/f2/jobygps/miniblink/miniblink.ld b/examples/stm32/f2/jobygps/miniblink/miniblink.ld deleted file mode 100644 index cfe9ab7..0000000 --- a/examples/stm32/f2/jobygps/miniblink/miniblink.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Olimex STM32-H103 (STM32F103RBT6, 128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 256K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 64K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f2.ld - diff --git a/examples/stm32/f2/jobygps/spi_test/Makefile b/examples/stm32/f2/jobygps/spi_test/Makefile index de4c338..1b52623 100644 --- a/examples/stm32/f2/jobygps/spi_test/Makefile +++ b/examples/stm32/f2/jobygps/spi_test/Makefile @@ -19,5 +19,7 @@ BINARY = spi_test +LDSCRIPT = ../jobygps.ld + include ../../Makefile.include diff --git a/examples/stm32/f2/jobygps/spi_test/spi_test.ld b/examples/stm32/f2/jobygps/spi_test/spi_test.ld deleted file mode 100644 index cfe9ab7..0000000 --- a/examples/stm32/f2/jobygps/spi_test/spi_test.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Olimex STM32-H103 (STM32F103RBT6, 128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 256K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 64K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f2.ld - diff --git a/examples/stm32/f2/jobygps/usart_printf/Makefile b/examples/stm32/f2/jobygps/usart_printf/Makefile index fb26208..eebde4a 100644 --- a/examples/stm32/f2/jobygps/usart_printf/Makefile +++ b/examples/stm32/f2/jobygps/usart_printf/Makefile @@ -19,5 +19,7 @@ BINARY = usart_printf +LDSCRIPT = ../jobygps.ld + include ../../Makefile.include diff --git a/examples/stm32/f2/jobygps/usart_printf/usart_printf.ld b/examples/stm32/f2/jobygps/usart_printf/usart_printf.ld deleted file mode 100644 index e80bdbd..0000000 --- a/examples/stm32/f2/jobygps/usart_printf/usart_printf.ld +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for Open-BLDC (STM32F103CBT6, 128K flash, 20K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 128K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f2.ld - diff --git a/examples/stm32/f4/Makefile.include b/examples/stm32/f4/Makefile.include index c3058ee..bed1aa8 100644 --- a/examples/stm32/f4/Makefile.include +++ b/examples/stm32/f4/Makefile.include @@ -31,7 +31,7 @@ GDB = $(PREFIX)-gdb TOOLCHAIN_DIR = ../../../../.. CFLAGS += -Os -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include \ -fno-common -mcpu=cortex-m3 -mthumb -msoft-float -MD -DSTM32F4 -LDSCRIPT = $(BINARY).ld +LDSCRIPT ?= $(BINARY).ld LDFLAGS += -lc -lnosys -L$(TOOLCHAIN_DIR)/lib \ -L$(TOOLCHAIN_DIR)/lib/stm32/f4 \ -T$(LDSCRIPT) -nostartfiles -Wl,--gc-sections \ diff --git a/examples/stm32/f4/stm32f4-discovery/button/Makefile b/examples/stm32/f4/stm32f4-discovery/button/Makefile index 96731c2..6fc56b8 100644 --- a/examples/stm32/f4/stm32f4-discovery/button/Makefile +++ b/examples/stm32/f4/stm32f4-discovery/button/Makefile @@ -19,5 +19,7 @@ BINARY = button +LDSCRIPT = ../stm32f4-discovery.ld + include ../../Makefile.include diff --git a/examples/stm32/f4/stm32f4-discovery/button/button.ld b/examples/stm32/f4/stm32f4-discovery/button/button.ld deleted file mode 100644 index 1cb43c6..0000000 --- a/examples/stm32/f4/stm32f4-discovery/button/button.ld +++ /dev/null @@ -1,32 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * Copyright (C) 2011 Stephen Caudle - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for ST STM32F4DISCOVERY (STM32F407VG, 1024K flash, 128K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 1024K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 128K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f4.ld - diff --git a/examples/stm32/f4/stm32f4-discovery/fancyblink/Makefile b/examples/stm32/f4/stm32f4-discovery/fancyblink/Makefile index 1baec4d..b4250da 100644 --- a/examples/stm32/f4/stm32f4-discovery/fancyblink/Makefile +++ b/examples/stm32/f4/stm32f4-discovery/fancyblink/Makefile @@ -19,5 +19,7 @@ BINARY = fancyblink +LDSCRIPT = ../stm32f4-discovery.ld + include ../../Makefile.include diff --git a/examples/stm32/f4/stm32f4-discovery/fancyblink/fancyblink.ld b/examples/stm32/f4/stm32f4-discovery/fancyblink/fancyblink.ld deleted file mode 100644 index 1cb43c6..0000000 --- a/examples/stm32/f4/stm32f4-discovery/fancyblink/fancyblink.ld +++ /dev/null @@ -1,32 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * Copyright (C) 2011 Stephen Caudle - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for ST STM32F4DISCOVERY (STM32F407VG, 1024K flash, 128K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 1024K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 128K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f4.ld - diff --git a/examples/stm32/f4/stm32f4-discovery/miniblink/Makefile b/examples/stm32/f4/stm32f4-discovery/miniblink/Makefile index 24a478b..d6ec46d 100644 --- a/examples/stm32/f4/stm32f4-discovery/miniblink/Makefile +++ b/examples/stm32/f4/stm32f4-discovery/miniblink/Makefile @@ -19,5 +19,7 @@ BINARY = miniblink +LDSCRIPT = ../stm32f4-discovery.ld + include ../../Makefile.include diff --git a/examples/stm32/f4/stm32f4-discovery/miniblink/miniblink.ld b/examples/stm32/f4/stm32f4-discovery/miniblink/miniblink.ld deleted file mode 100644 index 1cb43c6..0000000 --- a/examples/stm32/f4/stm32f4-discovery/miniblink/miniblink.ld +++ /dev/null @@ -1,32 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * Copyright (C) 2011 Stephen Caudle - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for ST STM32F4DISCOVERY (STM32F407VG, 1024K flash, 128K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 1024K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 128K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f4.ld - diff --git a/examples/stm32/f4/stm32f4-discovery/stm32f4-discovery.ld b/examples/stm32/f4/stm32f4-discovery/stm32f4-discovery.ld new file mode 100644 index 0000000..1cb43c6 --- /dev/null +++ b/examples/stm32/f4/stm32f4-discovery/stm32f4-discovery.ld @@ -0,0 +1,32 @@ +/* + * This file is part of the libopencm3 project. + * + * Copyright (C) 2009 Uwe Hermann + * Copyright (C) 2011 Stephen Caudle + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +/* Linker script for ST STM32F4DISCOVERY (STM32F407VG, 1024K flash, 128K RAM). */ + +/* Define memory regions. */ +MEMORY +{ + rom (rx) : ORIGIN = 0x08000000, LENGTH = 1024K + ram (rwx) : ORIGIN = 0x20000000, LENGTH = 128K +} + +/* Include the common ld script. */ +INCLUDE libopencm3_stm32f4.ld + diff --git a/examples/stm32/f4/stm32f4-discovery/usart/Makefile b/examples/stm32/f4/stm32f4-discovery/usart/Makefile index 2c1e1b1..7d7bc9a 100644 --- a/examples/stm32/f4/stm32f4-discovery/usart/Makefile +++ b/examples/stm32/f4/stm32f4-discovery/usart/Makefile @@ -19,5 +19,7 @@ BINARY = usart +LDSCRIPT = ../stm32f4-discovery.ld + include ../../Makefile.include diff --git a/examples/stm32/f4/stm32f4-discovery/usart/usart.ld b/examples/stm32/f4/stm32f4-discovery/usart/usart.ld deleted file mode 100644 index 1cb43c6..0000000 --- a/examples/stm32/f4/stm32f4-discovery/usart/usart.ld +++ /dev/null @@ -1,32 +0,0 @@ -/* - * This file is part of the libopencm3 project. - * - * Copyright (C) 2009 Uwe Hermann - * Copyright (C) 2011 Stephen Caudle - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -/* Linker script for ST STM32F4DISCOVERY (STM32F407VG, 1024K flash, 128K RAM). */ - -/* Define memory regions. */ -MEMORY -{ - rom (rx) : ORIGIN = 0x08000000, LENGTH = 1024K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 128K -} - -/* Include the common ld script. */ -INCLUDE libopencm3_stm32f4.ld - -- cgit v1.2.3