2018-06-27 16:17:44 +00:00
|
|
|
/* STM32F205RG - 1024K Flash, 128K RAM */
|
2014-04-29 12:26:51 +00:00
|
|
|
/* program starts at 0x08010000 */
|
|
|
|
MEMORY
|
|
|
|
{
|
2018-06-27 16:17:44 +00:00
|
|
|
rom (rx) : ORIGIN = 0x08010000, LENGTH = 1024K - 64K
|
2014-04-29 12:26:51 +00:00
|
|
|
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 128K
|
|
|
|
}
|
|
|
|
|
2017-08-08 10:59:39 +00:00
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
.confidential (NOLOAD) : {
|
|
|
|
*(confidential)
|
2018-10-24 11:58:17 +00:00
|
|
|
ASSERT ((SIZEOF(.confidential) <= 32K), "Error: Confidential section too big!");
|
2017-08-08 10:59:39 +00:00
|
|
|
} >ram
|
|
|
|
}
|
|
|
|
|
2019-04-01 15:02:32 +00:00
|
|
|
INCLUDE cortex-m-generic.ld
|
2017-08-08 10:59:39 +00:00
|
|
|
|
|
|
|
_ram_start = ORIGIN(ram);
|
|
|
|
_ram_end = ORIGIN(ram) + LENGTH(ram);
|
2018-03-26 21:35:40 +00:00
|
|
|
_stack = _ram_end - 8;
|
|
|
|
__stack_chk_guard = _ram_end - 8;
|
|
|
|
system_millis = _ram_end - 4;
|
2017-08-08 10:59:39 +00:00
|
|
|
|
|
|
|
_data_size = SIZEOF(.data);
|