aboutsummaryrefslogtreecommitdiffstats
path: root/memory.x
blob: 6d8ae7568d5a0ffa5a17fcb53636051b6d7b0a8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
MEMORY
{
        /* 0x0000_0000 is an alias for 0x08000_0000 */
        FLASH(rwx) : ORIGIN = 0x00000000, LENGTH = 128K
        RAM(rw) : ORIGIN = 0x20000000, LENGTH = 32K
}

REGION_ALIAS("REGION_TEXT", FLASH);
REGION_ALIAS("REGION_RODATA", FLASH);
REGION_ALIAS("REGION_DATA", RAM);
REGION_ALIAS("REGION_BSS", RAM);
REGION_ALIAS("REGION_HEAP", RAM);
REGION_ALIAS("REGION_STACK", RAM);