From 666d1ed9838d485c9fb228dbcbce609975ecdb3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Fri, 10 Jan 2020 11:02:22 +0100 Subject: [PATCH] ld: don't provide flash size --- bootloader.ld | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bootloader.ld b/bootloader.ld index d76dd59..a70d0a9 100644 --- a/bootloader.ld +++ b/bootloader.ld @@ -4,7 +4,7 @@ * the first 4 bytes of the RAM is reserved for the DFU magic word (DFU! to start DFU bootloader) */ -/* Define memory regions. */ +/* define memory regions. */ MEMORY { rom (rx) : ORIGIN = 0x08000000, LENGTH = 8K @@ -19,9 +19,9 @@ PROVIDE(__flash_end = __application_beginning + 128K - 8K); PROVIDE(__application_end = 0); PROVIDE(__flash_end = 0); */ -PROVIDE(__application_end = __application_beginning + 64K - 8K); -PROVIDE(__flash_end = __application_beginning + 64K - 8K); - +PROVIDE(__application_end = 0); +PROVIDE(__flash_end = 0); +/* RAM location reserved so application can talk to bootloader and tell to start DFU */ PROVIDE(__dfu_magic = ORIGIN(ram) - 4); /* include rest of the definitions for the STM32F1 family */