MEMORY { L2_LIM : ORIGIN = 0x8000000, LENGTH = 0x200000 RAM : ORIGIN = 0x40000000, LENGTH = 0x200000000 FLASH : ORIGIN = 0x21000000, LENGTH = 0x8000000 } 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", L2_LIM); _stack_start = ORIGIN(L2_LIM) + LENGTH(L2_LIM);