ld: don't provide flash size

This commit is contained in:
King Kévin 2020-01-10 11:01:53 +01:00
parent d74fd3aa09
commit 3bf0871f39
1 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@
* the first 4 bytes of the RAM is reserved for the DFU magic word (DFU! to start DFU bootloader) * 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 MEMORY
{ {
rom (rx) : ORIGIN = 0x08000000 + 8K, LENGTH = 64K - 8K rom (rx) : ORIGIN = 0x08000000 + 8K, LENGTH = 64K - 8K
@ -19,9 +19,9 @@ PROVIDE(__flash_end = ORIGIN(rom) + LENGTH(rom));
PROVIDE(__application_end = 0); PROVIDE(__application_end = 0);
PROVIDE(__flash_end = 0); PROVIDE(__flash_end = 0);
*/ */
PROVIDE(__application_end = ORIGIN(rom) + LENGTH(rom)); PROVIDE(__application_end = 0);
PROVIDE(__flash_end = ORIGIN(rom) + LENGTH(rom)); PROVIDE(__flash_end = 0);
/* RAM location reserved so application can talk to bootloader and tell to start DFU */
PROVIDE(__dfu_magic = ORIGIN(ram) - 4); PROVIDE(__dfu_magic = ORIGIN(ram) - 4);
/* include rest of the definitions for the STM32F1 family */ /* include rest of the definitions for the STM32F1 family */