amiro-blt / Target / Source / ARMCM3_STM32 / GCC / memory.x @ 69661903
History | View | Annotate | Download (940 Bytes)
| 1 |
MEMORY |
|---|---|
| 2 |
{
|
| 3 |
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 24K |
| 4 |
SRAM (rwx) : ORIGIN = 0x20000000, LENGTH = 8K |
| 5 |
} |
| 6 |
|
| 7 |
__cbtable_start__ = ORIGIN(FLASH) + 0x01C0; |
| 8 |
__text_start__ = ORIGIN(FLASH) + 0x0200; |
| 9 |
|
| 10 |
SECTIONS |
| 11 |
{
|
| 12 |
__STACKSIZE__ = 512; |
| 13 |
|
| 14 |
startup : |
| 15 |
{
|
| 16 |
KEEP(*(.isr_vector)) |
| 17 |
} > FLASH |
| 18 |
|
| 19 |
cbtable __cbtable_start__ : |
| 20 |
{
|
| 21 |
KEEP(*(_callback_table)) |
| 22 |
} > FLASH |
| 23 |
|
| 24 |
.text __text_start__ : |
| 25 |
{
|
| 26 |
*(.text*) |
| 27 |
*(.rodata*) |
| 28 |
. = ALIGN(4); |
| 29 |
_etext = .; |
| 30 |
} > FLASH |
| 31 |
|
| 32 |
.data : AT (ADDR(.text) + SIZEOF(.text)) |
| 33 |
{
|
| 34 |
_data = .; |
| 35 |
*(vtable) |
| 36 |
*(.data*) |
| 37 |
. = ALIGN(4); |
| 38 |
_edata = .; |
| 39 |
} > SRAM |
| 40 |
|
| 41 |
.bss : |
| 42 |
{
|
| 43 |
_bss = .; |
| 44 |
*(.bss*) |
| 45 |
*(COMMON) |
| 46 |
_ebss = .; |
| 47 |
_stack = .; |
| 48 |
. = ALIGN(MAX(_stack + __STACKSIZE__ , .), 4); |
| 49 |
_estack = .; |
| 50 |
|
| 51 |
} > SRAM |
| 52 |
} |