From ff7e2824011f787acd730ac788b06610c6e40132 Mon Sep 17 00:00:00 2001 From: James McKenzie Date: Sun, 2 Aug 2015 23:37:49 +0100 Subject: fish --- app/crypto.ld | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'app/crypto.ld') diff --git a/app/crypto.ld b/app/crypto.ld index b36fefa..a2d5a9c 100644 --- a/app/crypto.ld +++ b/app/crypto.ld @@ -17,13 +17,13 @@ * along with this library. If not, see . */ -/* Linker script for STM32F101C8T6, 64K flash, 20K RAM). */ +/* Linker script for Olimex STM32-H103 (STM32F103RBT6, 128K flash, 20K RAM). */ /* Define memory regions. */ MEMORY { - rom (rx) : ORIGIN = 0x08000000, LENGTH = 64K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 10K + rom (rx) : ORIGIN = 0x08002000, LENGTH = 120K + ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K } /* Include the common ld script. */ @@ -31,10 +31,13 @@ INCLUDE libopencm3_stm32f1.ld dfu_shared_location = ORIGIN(ram) + LENGTH(ram) - 1024; +/* PROVIDE(_stack = dfu_shared_location ); */ + SECTIONS { - .dfu_shared dfu_shared_location :{ - dfu_flag = .; - } + .dfu_shared dfu_shared_location :{ + dfu_flag = .; + } } + -- cgit v1.2.3