1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-17 11:58:13 +00:00
trezor-firmware/memory_app_2.0.0.ld
2017-07-04 19:34:25 +02:00

22 lines
492 B
Plaintext

/* STM32F205RE - 512K Flash, 128K RAM */
/* program starts at 0x08010000 */
MEMORY
{
rom (rx) : ORIGIN = 0x08010000, LENGTH = 512K - 64K
bootloader (rx) : ORIGIN = 0x20000000, LENGTH = 32K
ram (rwx) : ORIGIN = 0x20000000 + LENGTH(bootloader),
LENGTH = 128K - LENGTH(bootloader)
}
INCLUDE libopencm3_stm32f2.ld
SECTIONS
{
.bootloader : {
__bootloader_runaddr__ = .;
KEEP (*(.bootloader*))
} >bootloader AT >rom
__bootloader_loadaddr__ = LOADADDR(.bootloader);
}