1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 17:38:39 +00:00
trezor-firmware/memory_app_1.0.0.ld

26 lines
553 B
Plaintext
Raw Normal View History

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
}
SECTIONS
{
.confidential (NOLOAD) : {
*(confidential)
ASSERT ((SIZEOF(.confidential) <= 33K), "Error: Confidential section too big!");
} >ram
}
2014-04-29 12:26:51 +00:00
INCLUDE libopencm3_stm32f2.ld
_ram_start = ORIGIN(ram);
_ram_end = ORIGIN(ram) + LENGTH(ram);
_stack = _ram_end - 8;
__stack_chk_guard = _ram_end - 8;
system_millis = _ram_end - 4;
_data_size = SIZEOF(.data);