1MEMORY
2{
3  FLASH (wx) : ORIGIN = 0x00000000, LENGTH = 256K
4  RAM   (wx) : ORIGIN = 0x20000000, LENGTH = 64K
5}
6
7SECTIONS
8{
9    __vectors_start__ = .;
10    .vectors : { *(.vectors) } > FLASH
11    __vectors_end__ = __vectors_start__ + 0x400;
12	.sys    : { *(.sys*) }    > FLASH
13    .text   : { *(.text*) }   > FLASH
14    .rodata : { *(.text*) }   > FLASH
15
16	__data_load_start__ = .;
17    __data_start__ = .;
18    .data   : { *(.data*) }   > RAM
19    __data_end__ = __data_start__ + SIZEOF(.data);
20
21    __bss_start__ = .;
22    .bss    : { *(.bss*)  }   > RAM
23    __bss_end__   = __bss_start__ + SIZEOF(.bss);
24
25    __heap_start__ = .;
26    .heap   : { *(.heap*)  }   > RAM
27    __heap_end__ = __heap_start__ + SIZEOF(.heap);
28
29    end = .;
30}
31