aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/f1/stm32-h103
diff options
context:
space:
mode:
authorUwe Hermann2011-11-13 12:32:45 +0100
committerUwe Hermann2011-11-13 23:21:26 +0100
commitc3fea659d1313e324bb7512e7e50875e0cb0318a (patch)
tree0ecdd6e8d0d7bf3d6bc69d90f06db24cf8bc67da /examples/stm32/f1/stm32-h103
parent7f1e75c3a8f7bd4accdbf88a127b24d87131e617 (diff)
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.
Diffstat (limited to 'examples/stm32/f1/stm32-h103')
-rw-r--r--examples/stm32/f1/stm32-h103/button/Makefile2
-rw-r--r--examples/stm32/f1/stm32-h103/exti_both/Makefile2
-rw-r--r--examples/stm32/f1/stm32-h103/exti_both/exti_both.ld31
-rw-r--r--examples/stm32/f1/stm32-h103/exti_rising_falling/Makefile2
-rw-r--r--examples/stm32/f1/stm32-h103/exti_rising_falling/exti_rising_falling.ld31
-rw-r--r--examples/stm32/f1/stm32-h103/fancyblink/Makefile2
-rw-r--r--examples/stm32/f1/stm32-h103/fancyblink/fancyblink.ld31
-rw-r--r--examples/stm32/f1/stm32-h103/led_stripe/Makefile2
-rw-r--r--examples/stm32/f1/stm32-h103/led_stripe/led_stripe.ld31
-rw-r--r--examples/stm32/f1/stm32-h103/miniblink/Makefile2
-rw-r--r--examples/stm32/f1/stm32-h103/miniblink/miniblink.ld31
-rw-r--r--examples/stm32/f1/stm32-h103/pwm_6step/Makefile2
-rw-r--r--examples/stm32/f1/stm32-h103/pwm_6step/pwm_6step.ld31
-rw-r--r--examples/stm32/f1/stm32-h103/spi/Makefile2
-rw-r--r--examples/stm32/f1/stm32-h103/spi/spi.ld31
-rw-r--r--examples/stm32/f1/stm32-h103/stm32-h103.ld (renamed from examples/stm32/f1/stm32-h103/button/button.ld)0
-rw-r--r--examples/stm32/f1/stm32-h103/timer/Makefile2
-rw-r--r--examples/stm32/f1/stm32-h103/timer/timer.ld31
-rw-r--r--examples/stm32/f1/stm32-h103/traceswo/Makefile2
-rw-r--r--examples/stm32/f1/stm32-h103/traceswo/traceswo.ld31
-rw-r--r--examples/stm32/f1/stm32-h103/usart/Makefile2
-rw-r--r--examples/stm32/f1/stm32-h103/usart/usart.ld31
-rw-r--r--examples/stm32/f1/stm32-h103/usart_irq/Makefile2
-rw-r--r--examples/stm32/f1/stm32-h103/usart_irq/usart_irq.ld31
-rw-r--r--examples/stm32/f1/stm32-h103/usart_irq_printf/Makefile2
-rw-r--r--examples/stm32/f1/stm32-h103/usart_irq_printf/usart_irq_printf.ld31
-rw-r--r--examples/stm32/f1/stm32-h103/usart_printf/Makefile2
-rw-r--r--examples/stm32/f1/stm32-h103/usart_printf/usart_printf.ld31
-rw-r--r--examples/stm32/f1/stm32-h103/usb_cdcacm/Makefile2
-rw-r--r--examples/stm32/f1/stm32-h103/usb_cdcacm/cdcacm.ld31
-rw-r--r--examples/stm32/f1/stm32-h103/usb_dfu/Makefile2
-rw-r--r--examples/stm32/f1/stm32-h103/usb_dfu/usbdfu.ld29
-rw-r--r--examples/stm32/f1/stm32-h103/usb_hid/Makefile2
-rw-r--r--examples/stm32/f1/stm32-h103/usb_hid/usbhid.ld31
-rw-r--r--examples/stm32/f1/stm32-h103/usb_iap/Makefile2
-rw-r--r--examples/stm32/f1/stm32-h103/usb_iap/usbiap.ld31
36 files changed, 36 insertions, 525 deletions
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/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 <uwe@hermann-uwe.de>
- *
- * 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 <http://www.gnu.org/licenses/>.
- */
-
-/* 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 <uwe@hermann-uwe.de>
- *
- * 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 <http://www.gnu.org/licenses/>.
- */
-
-/* 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 <uwe@hermann-uwe.de>
- *
- * 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 <http://www.gnu.org/licenses/>.
- */
-
-/* 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 <uwe@hermann-uwe.de>
- *
- * 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 <http://www.gnu.org/licenses/>.
- */
-
-/* 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 <uwe@hermann-uwe.de>
- *
- * 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 <http://www.gnu.org/licenses/>.
- */
-
-/* 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 <uwe@hermann-uwe.de>
- *
- * 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 <http://www.gnu.org/licenses/>.
- */
-
-/* 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 <uwe@hermann-uwe.de>
- *
- * 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 <http://www.gnu.org/licenses/>.
- */
-
-/* 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/button/button.ld b/examples/stm32/f1/stm32-h103/stm32-h103.ld
index 3409b98..3409b98 100644
--- a/examples/stm32/f1/stm32-h103/button/button.ld
+++ b/examples/stm32/f1/stm32-h103/stm32-h103.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 <uwe@hermann-uwe.de>
- *
- * 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 <http://www.gnu.org/licenses/>.
- */
-
-/* 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 <uwe@hermann-uwe.de>
- *
- * 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 <http://www.gnu.org/licenses/>.
- */
-
-/* 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 <uwe@hermann-uwe.de>
- *
- * 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 <http://www.gnu.org/licenses/>.
- */
-
-/* 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 <uwe@hermann-uwe.de>
- *
- * 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 <http://www.gnu.org/licenses/>.
- */
-
-/* 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 <uwe@hermann-uwe.de>
- *
- * 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 <http://www.gnu.org/licenses/>.
- */
-
-/* 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 <uwe@hermann-uwe.de>
- *
- * 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 <http://www.gnu.org/licenses/>.
- */
-
-/* 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 <tommi@viadmin.org>
- *
- * 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 <http://www.gnu.org/licenses/>.
- */
-
-/* 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 <tommi@viadmin.org>
- *
- * 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 <http://www.gnu.org/licenses/>.
- */
-
-/* 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 <tommi@viadmin.org>
- *
- * 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 <http://www.gnu.org/licenses/>.
- */
-
-/* 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 <tommi@viadmin.org>
- *
- * 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 <http://www.gnu.org/licenses/>.
- */
-
-/* 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
-