1 /****************************************************************************
\r
2 * Copyright (c) 2006 by Michael Fischer. All rights reserved.
\r
4 * Redistribution and use in source and binary forms, with or without
\r
5 * modification, are permitted provided that the following conditions
\r
8 * 1. Redistributions of source code must retain the above copyright
\r
9 * notice, this list of conditions and the following disclaimer.
\r
10 * 2. Redistributions in binary form must reproduce the above copyright
\r
11 * notice, this list of conditions and the following disclaimer in the
\r
12 * documentation and/or other materials provided with the distribution.
\r
13 * 3. Neither the name of the author nor the names of its contributors may
\r
14 * be used to endorse or promote products derived from this software
\r
15 * without specific prior written permission.
\r
17 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
\r
18 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
\r
19 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
\r
20 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
\r
21 * THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
\r
22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
\r
23 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
\r
24 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
\r
25 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
\r
26 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
\r
27 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
\r
30 ****************************************************************************
\r
34 * 31.03.06 mifi First Version
\r
35 ****************************************************************************/
\r
42 * Define stack size here
\r
44 FIQ_STACK_SIZE = 0x0100;
\r
45 IRQ_STACK_SIZE = 0x0100;
\r
46 ABT_STACK_SIZE = 0x0100;
\r
47 UND_STACK_SIZE = 0x0100;
\r
48 SVC_STACK_SIZE = 0x0400;
\r
51 * This file, olimex_lpce2294_ram.ld, locate the program in the internal
\r
52 * ram of the LPC2294. For more information about the memory of the LPC2294
\r
53 * take a look in the LPC2119/2129/2194/2292/2294 USER MANUAL.
\r
54 * Reference is made to the user manual from 2004 May 03
\r
56 * Take a look at page 48, section 2.Memory Addressing
\r
61 ram : org = 0x40000000, len = 16k
\r
65 * Do not change the next code
\r
90 PROVIDE (__data_start = .);
\r
95 PROVIDE (__data_end = .);
\r
100 PROVIDE (__bss_start = .);
\r
104 PROVIDE (__bss_end = .);
\r
108 PROVIDE (__stack_start = .);
\r
110 PROVIDE (__stack_fiq_start = .);
\r
111 . += FIQ_STACK_SIZE;
\r
113 PROVIDE (__stack_fiq_end = .);
\r
115 PROVIDE (__stack_irq_start = .);
\r
116 . += IRQ_STACK_SIZE;
\r
118 PROVIDE (__stack_irq_end = .);
\r
120 PROVIDE (__stack_abt_start = .);
\r
121 . += ABT_STACK_SIZE;
\r
123 PROVIDE (__stack_abt_end = .);
\r
125 PROVIDE (__stack_und_start = .);
\r
126 . += UND_STACK_SIZE;
\r
128 PROVIDE (__stack_und_end = .);
\r
130 PROVIDE (__stack_svc_start = .);
\r
131 . += SVC_STACK_SIZE;
\r
133 PROVIDE (__stack_svc_end = .);
\r
134 PROVIDE (__stack_end = .);
\r
135 PROVIDE (__heap_start = .);
\r