-
Notifications
You must be signed in to change notification settings - Fork 0
/
msp430fr5994.ld
72 lines (62 loc) · 1.78 KB
/
msp430fr5994.ld
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/* --------------------------------------------------------------------------
* -- (C) 2020 Paweł Kraszewski --
* -- --
* -- Licensed as: --
* -- Attribution-NonCommercial-ShareAlike 4.0 International --
* -- https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode --
* ------------------------------------------------------------------------*/
ENTRY(vec_Reset)
MEMORY
{
RAM_TINY (RW) : ORIGIN = 0x0000A, LENGTH = 0x00016
IO (RW) : ORIGIN = 0x00020, LENGTH = 0x00FE0
BOOT (RX) : ORIGIN = 0x01000, LENGTH = 0x00800
INFORM (RW) : ORIGIN = 0x01800, LENGTH = 0x00200
TLV (RW) : ORIGIN = 0x01A00, LENGTH = 0x00100
RAM (RW) : ORIGIN = 0x01C00, LENGTH = 0x01000
RAM_LEA (RW) : ORIGIN = 0x02C00, LENGTH = 0x01000
FRAM (RWX) : ORIGIN = 0x04000, LENGTH = 0x0BF80
VECTORS (WA) : ORIGIN = 0x0FF80, LENGTH = 0x00080
FRAM_HI (RWX) : ORIGIN = 0x10000, LENGTH = 0x34000
}
SECTIONS
{
.vectors :
{
KEEP(*(.vectors))
} >VECTORS =0
.fram_high ORIGIN(FRAM_HI) : ALIGN(2)
{
*(.text.high);
*(.persistent.high);
} >FRAM_HI
.fram_low ORIGIN(FRAM) : ALIGN(2)
{
KEEP(*(.Reset));
KEEP(*(.text));
*(.persistent.low);
} >FRAM
.bss :
{
. = ALIGN(2);
PROVIDE (__bssstart = .);
*(.bss)
PROVIDE (__bssend = .);
} >RAM
PROVIDE (__bsssize = SIZEOF(.bss));
.stack (ORIGIN (RAM) + LENGTH (RAM)) :
{
PROVIDE (__stack = .);
PROVIDE (__stack_size = 0x100);
} >RAM
.bss.lea :
{
. = ALIGN(2);
*(.bss.lea);
} >RAM_LEA
.bss.tiny :
{
. = ALIGN(2);
*(.bss.tiny);
} >RAM_TINY
}