ld: improve flash size enforcing comment
This commit is contained in:
parent
0048f5ceb1
commit
9b50d14c42
|
@ -10,11 +10,16 @@ MEMORY
|
|||
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K
|
||||
}
|
||||
PROVIDE(__application_beginning = ORIGIN(rom));
|
||||
/* only provide application end if you want to force a flash size
|
||||
i.e. STM32F103x8 most often have if fact 128 KB instead of the specified and advertised 64 KB
|
||||
PROVIDE(__application_end = ORIGIN(rom) + LENGTH(rom));
|
||||
PROVIDE(__flash_end = ORIGIN(rom) + LENGTH(rom));
|
||||
/* only provide application_end and/or flash_end if you want to force a flash size
|
||||
i.e. STM32F103xC most often have if fact 512 KB instead of the specified and advertised 256 KB
|
||||
PROVIDE(__application_end = __application_beginning + 512K - 8K);
|
||||
PROVIDE(__flash_end = __application_beginning + 512K - 8K);
|
||||
else
|
||||
PROVIDE(__application_end = 0);
|
||||
PROVIDE(__flash_end = 0);
|
||||
*/
|
||||
PROVIDE(__application_end = 0);
|
||||
PROVIDE(__flash_end = 0);
|
||||
|
||||
/* include rest of the definitions for the STM32F1 family */
|
||||
INCLUDE libopencm3_stm32f1.ld
|
||||
|
|
|
@ -10,11 +10,16 @@ MEMORY
|
|||
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K
|
||||
}
|
||||
PROVIDE(__application_beginning = ORIGIN(rom) + LENGTH(rom));
|
||||
/* only provide application end if you want to force a flash size
|
||||
i.e. STM32F103x8 most often have if fact 128 KB instead of the specified and advertised 64 KB
|
||||
PROVIDE(__application_end = __application_beginning + 248K);
|
||||
PROVIDE(__flash_end = __application_beginning + 248K);
|
||||
/* only provide application_end and/or flash_end if you want to force a flash size
|
||||
i.e. STM32F103xC most often have if fact 512 KB instead of the specified and advertised 256 KB
|
||||
PROVIDE(__application_end = __application_beginning + 512K - 8K);
|
||||
PROVIDE(__flash_end = __application_beginning + 512K - 8K);
|
||||
else
|
||||
PROVIDE(__application_end = 0);
|
||||
PROVIDE(__flash_end = 0);
|
||||
*/
|
||||
PROVIDE(__application_end = 0);
|
||||
PROVIDE(__flash_end = 0);
|
||||
|
||||
/* include rest of the definitions for the STM32F1 family */
|
||||
INCLUDE libopencm3_stm32f1.ld
|
||||
|
|
Loading…
Reference in New Issue