1 //*****************************************************************************
3 // boot_demo1.icf - Linker configuration file for boot_demo1.
5 // Copyright (c) 2007 Luminary Micro, Inc. All rights reserved.
6 // Luminary Micro Confidential - For Use Under NDA Only
8 //*****************************************************************************
11 // Define a memory region that covers the entire 4 GB addressible space of the
14 define memory mem with size = 4G;
17 // Define a region for the on-chip flash.
19 define region FLASH = mem:[from 0x00000000 to 0x0000ffff];
22 // Define a region for the on-chip SRAM.
24 define region SRAM = mem:[from 0x20000000 to 0x20001fff];
27 // Define a block for the heap. The size should be set to something other
28 // than zero if things in the C library that require the heap are used.
30 define block HEAP with alignment = 8, size = 0x00000000 { };
33 // Indicate that the read/write values should be initialized by copying from
36 initialize by copy { readwrite };
39 // Initicate that the noinit values should be left alone. This includes the
40 // stack, which if initialized will destroy the return address from the
41 // initialization code, causing the processor to branch to zero and fault.
43 do not initialize { section .noinit };
46 // Place the interrupt vectors at the start of flash.
48 place at start of FLASH { readonly section .intvec };
51 // Place the remainder of the read-only items into flash.
53 place in FLASH { readonly };
56 // Place all read/write items into SRAM.
58 place in SRAM { readwrite, block HEAP };