| 1 |
/* This file is part of the MicroPython project, http://micropython.org/ |
| 2 |
* The MIT License (MIT) |
| 3 |
* Copyright (c) 2018 Damien P. George |
| 4 |
*/ |
| 5 |
|
| 6 |
MEMORY |
| 7 |
{ |
| 8 |
ROM : ORIGIN = 0x00000000, LENGTH = 1M |
| 9 |
RAM : ORIGIN = 0x20000000, LENGTH = 128K |
| 10 |
} |
| 11 |
|
| 12 |
_estack = ORIGIN(RAM) + LENGTH(RAM); |
| 13 |
|
| 14 |
SECTIONS |
| 15 |
{ |
| 16 |
.text : { |
| 17 |
. = ALIGN(4); |
| 18 |
KEEP(*(.isr_vector)) |
| 19 |
*(.text*) |
| 20 |
*(.rodata*) |
| 21 |
. = ALIGN(4); |
| 22 |
_etext = .; |
| 23 |
_sidata = _etext; |
| 24 |
} > ROM |
| 25 |
|
| 26 |
.data : AT ( _sidata ) |
| 27 |
{ |
| 28 |
. = ALIGN(4); |
| 29 |
_sdata = .; |
| 30 |
*(.data*) |
| 31 |
. = ALIGN(4); |
| 32 |
_edata = .; |
| 33 |
} >RAM |
| 34 |
|
| 35 |
.bss : |
| 36 |
{ |
| 37 |
. = ALIGN(4); |
| 38 |
_sbss = .; |
| 39 |
*(.bss*) |
| 40 |
*(COMMON) |
| 41 |
. = ALIGN(4); |
| 42 |
_ebss = .; |
| 43 |
} >RAM |
| 44 |
} |