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