1//*****************************************************************************
2//
3// tm4c_room.icf - Linker configuration file for RT-Thread BSP.
4//
5// Copyright (c) 2013-2017 Texas Instruments Incorporated.  All rights reserved.
6// Software License Agreement
7//
8// Texas Instruments (TI) is supplying this software for use solely and
9// exclusively on TI's microcontroller products. The software is owned by
10// TI and/or its suppliers, and is protected under applicable copyright
11// laws. You may not combine this software with "viral" open-source
12// software in order to form a larger program.
13//
14// THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
15// NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
16// NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
17// A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
18// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
19// DAMAGES, FOR ANY REASON WHATSOEVER.
20//
21// This is part of revision 2.1.4.178 of the DK-TM4C129X Firmware Package.
22//
23//*****************************************************************************
24
25//
26// Define a memory region that covers the entire 4 GB addressible space of the
27// processor.
28//
29define memory mem with size = 4G;
30
31//
32// Define a region for the on-chip flash.
33//
34define region FLASH = mem:[from 0x00000000 to 0x000fffff];
35
36//
37// Define a region for the on-chip SRAM.
38//
39define region SRAM = mem:[from 0x20000000 to 0x2003ffff];
40
41//
42// Define a block for the heap.  The size should be set to something other
43// than zero if things in the C library that require the heap are used.
44//
45define block HEAP with alignment = 8, size = 0x00000000 { };
46
47//
48// Define a block for RT-Thread components initialization
49//
50define block RTT_INIT_FUNC with fixed order { readonly section .rti_fn* };
51
52//
53// Indicate that the read/write values should be initialized by copying from
54// flash.
55//
56initialize by copy { readwrite };
57
58//
59// Indicate that the noinit values should be left alone.  This includes the
60// stack, which if initialized will destroy the return address from the
61// initialization code, causing the processor to branch to zero and fault.
62//
63do not initialize { section .noinit };
64
65//
66// Place the interrupt vectors at the start of flash.
67//
68place at start of FLASH { readonly section .intvec };
69
70//
71// Place the remainder of the read-only items into flash.
72//
73place in FLASH { readonly, block RTT_INIT_FUNC };
74
75//
76// Place the RAM vector table at the start of SRAM.
77//
78place at start of SRAM { section VTABLE };
79
80//
81// Place all read/write items into SRAM.
82//
83place in SRAM { readwrite, block HEAP };
84
85keep { section FSymTab };
86keep { section VSymTab };
87keep { section .rti_fn* };
88