]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/CORTEX_LM3Sxxxx_IAR_Keil/LM3Sxxxx.icf
commit 9f316c246baafa15c542a5aea81a94f26e3d6507
[freertos] / FreeRTOS / Demo / CORTEX_LM3Sxxxx_IAR_Keil / LM3Sxxxx.icf
1 //*****************************************************************************\r
2 //\r
3 // enet_lwip.icf - Linker configuration file for enet_lwip.\r
4 //\r
5 // Copyright (c) 2007 Luminary Micro, Inc.  All rights reserved.\r
6 // Luminary Micro Confidential - For Use Under NDA Only\r
7 //\r
8 //*****************************************************************************\r
9 \r
10 //\r
11 // Define a memory region that covers the entire 4 GB addressible space of the\r
12 // processor.\r
13 //\r
14 define memory mem with size = 4G;\r
15 \r
16 //\r
17 // Define a region for the on-chip flash.\r
18 //\r
19 define region FLASH = mem:[from 0x00000000 to 0x0003ffff];\r
20 \r
21 //\r
22 // Define a region for the on-chip SRAM.\r
23 //\r
24 define region SRAM = mem:[from 0x20000000 to 0x2000ffff];\r
25 \r
26 //\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
29 //\r
30 define block HEAP with alignment = 8, size = 0x00000000 { };\r
31 \r
32 //\r
33 // Indicate that the read/write values should be initialized by copying from\r
34 // flash.\r
35 //\r
36 initialize by copy { readwrite };\r
37 \r
38 //\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
42 //\r
43 do not initialize { section .noinit };\r
44 \r
45 //\r
46 // Place the interrupt vectors at the start of flash.\r
47 //\r
48 place at start of FLASH { readonly section .intvec };\r
49 \r
50 //\r
51 // Place the remainder of the read-only items into flash.\r
52 //\r
53 place in FLASH { readonly };\r
54 \r
55 //\r
56 // Place all read/write items into SRAM.\r
57 //\r
58 place in SRAM { readwrite, block HEAP };\r