2019-01-27 10:58:30 +00:00
|
|
|
/* STM32F205RG - 1024K Flash, 128K RAM */
|
2019-02-23 19:47:49 +00:00
|
|
|
/* program starts at 0x08010400 */
|
2019-01-27 10:58:30 +00:00
|
|
|
MEMORY
|
|
|
|
{
|
|
|
|
rom (rx) : ORIGIN = 0x08010000, LENGTH = 1024K - 64K
|
|
|
|
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 128K
|
|
|
|
}
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
.confidential (NOLOAD) : {
|
|
|
|
*(confidential)
|
|
|
|
ASSERT ((SIZEOF(.confidential) <= 32K), "Error: Confidential section too big!");
|
|
|
|
} >ram
|
|
|
|
|
|
|
|
.header : ALIGN(4) {
|
|
|
|
KEEP(*(.header));
|
|
|
|
} >rom AT>rom
|
|
|
|
}
|
|
|
|
|
2019-04-01 15:02:32 +00:00
|
|
|
INCLUDE cortex-m-generic.ld
|
2019-01-27 10:58:30 +00:00
|
|
|
|
|
|
|
_codelen = SIZEOF(.text) + SIZEOF(.data) + SIZEOF(.ARM.exidx);
|
|
|
|
|
|
|
|
_ram_start = ORIGIN(ram);
|
|
|
|
_ram_end = ORIGIN(ram) + LENGTH(ram);
|
2021-02-09 13:43:23 +00:00
|
|
|
_go_to_bootloader_flag_addr = ABSOLUTE(0x20010000);
|
2019-01-27 10:58:30 +00:00
|
|
|
_stack = _ram_end - 8;
|
|
|
|
__stack_chk_guard = _ram_end - 8;
|
|
|
|
system_millis = _ram_end - 4;
|
|
|
|
|
|
|
|
_data_size = SIZEOF(.data);
|