This repository has been archived by the owner on Jan 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
msp430f149L.xcl
69 lines (56 loc) · 2.28 KB
/
msp430f149L.xcl
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
// msp430F149C.XCL
//
// Texas Instruments, Revision: 1.1
//
// XLINK command file for the ICC430 C-compiler and the MSP430F149
//
// Usage: xlink your_file(s) -f msp430F149C
//
// The following segments are used by the compiler:
//
// Data read/write segments (RAM)
// ==============================
// segment address range max size usage (compiler option)
// ------- ------------- -------- --------------------------
// UDATA0 0200-09FF 2 Kbytes Uninitialized variables
// IDATA0 0200-09FF 2 Kbytes Initialized variables
// CSTACK 0200-09FF 2 Kbytes Run-time stack/auto variables
// ECSTR 0200-09FF 2 Kbytes Writeable string literals (-y)
//
// Program and non-volatile segments (FLASH)
// =========================================
// segment address range max size usage (compiler option)
// ------- ------------- -------- --------------------------
// INFO 1000-10FF 256 bytes Information memory
// CODE 1100-FFDF <60 Kbytes Program code
// CONST 1100-FFDF <60 Kbytes Constant "const" variables
// CSTR 1100-FFDF <60 Kbytes String literals (not -y)
// CDATA0 1100-FFDF <60 Kbytes Initializers for IDATA0
// CCSTR 1100-FFDF <60 Kbytes Initializers for ECSTR (-y)
// INTVEC FFE0-FFFF 32 bytes Interrupt vectors (-e)
//
// Note:
// Option -y stores strings in ECSTR (init value in CCSTR) instead of CSTR,
// Option -e enables language extensions
// Special function registers and peripheral modules occupy addresses 0-01FFh
//
//
// Define CPU
-cMSP430
// RAM
// Note: The stack is allocated from the top of RAM downward
-Z(DATA)UDATA0,IDATA0,ECSTR=0200-09FF
-Z(DATA)CSTACK#0200-0A00
// Information memory (FLASH)
-Z(CODE)INFO=1000-10FF
// Main memory (FLASH)
-Z(CODE)CODE,CONST,CSTR,CDATA0,CCSTR=F000-FFDF
// Interrupt vectors (FLASH)
-Z(CODE)INTVEC=FFE0-FFFF
-Z(CODE)LOADER_CODE=F000-FFDF
// See configuration section concerning printf/sprintf
-e_small_write=_formatted_write
// See configuration section concerning scanf/sscanf
-e_medium_read=_formatted_read
// Load the C library with support for the hardware multiplier
cl430m.r43