Config430Xv2.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  *
11  * Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the
14  * distribution.
15  *
16  * Neither the name of Texas Instruments Incorporated nor the names of
17  * its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  *
32 */
33 /*==========================================================================*\
34 | |
35 | Config430Xv2.h |
36 | |
37 | Replicator configuration file for MSP430Xv2 Flash-based family (5xx/6xx) |
38 | and FRAM-based devices. |
39 | |
40 |----------------------------------------------------------------------------|
41 | Project: MSP430 Replicator Xv2 |
42 | Developed using: IAR Embedded Workbench 6.20 |
43 | and: Code Composer Studio 6.0 |
44 |----------------------------------------------------------------------------|
45 | Version history: |
46 | 1.0 04/12 RL Initial version. |
47 | 1.1 10/12 RL Added #define for start address of target RAM |
48 | 1.2 05/14 RL Removed FRAM related functionality |
49 |----------------------------------------------------------------------------|
50 | Designed 2012 by Texas Instruments Germany |
51 \*==========================================================================*/
54 /****************************************************************************/
55 /* QUICK START OPTIONS */
56 /****************************************************************************/
57 
67 //#define INTERFACE JTAG_IF
68 #define INTERFACE SPYBIWIRE_IF
69 //#define INTERFACE SPYBIWIREJTAG_IF
70 
73 #define VCC_LEVEL 30
74 
76 #define MAIN_START_ADDRESS 0xF000
77 
80 #define MAIN_LENGTH 0x800
81 
83 #define RAM_START_ADDRESS 0x1C00
84 
85 // This table lists the possible start adresses for the device's RAM
86 /*--------------------------------------------------------------------------*/
87 /* */
88 /* DEFAULT -> RAM_START_ADDRESS 0x1C00 */
89 /* F52xx -> RAM_START_ADDRESS 0x2400 */
90 /*--------------------------------------------------------------------------*/
91 
92 // The following table lists the main start addresses and memory length for
93 // most 5xx/6xx devices. If your device is not listed, please look up these
94 // values in the device data sheet.
95 /*--------------------------------------------------------------------------*/
96 /* Examples: */
97 /* */
98 /* F5529 F5528 F5519 -> MAIN_START_ADDRESS 0x4400 MAIN_LENGTH 0x10000 */
99 /* F5527 F5526 F5517 -> MAIN_START_ADDRESS 0x4400 MAIN_LENGTH 0xC000 */
100 /* F5525 F5524 F5515 -> MAIN_START_ADDRESS 0x4400 MAIN_LENGTH 0x8000 */
101 /* F5522 F5521 F5513 -> MAIN_START_ADDRESS 0x8000 MAIN_LENGTH 0x4000 */
102 /* */
103 /* F6137 F6127 F5137 -> MAIN_START_ADDRESS 0x8000 MAIN_LENGTH 0x4000 */
104 /* */
105 /* F5438A F5438 -> MAIN_START_ADDRESS 0x5C00 MAIN_LENGTH 0x20000 */
106 /* F5436A F5436 -> MAIN_START_ADDRESS 0x5C00 MAIN_LENGTH 0x18000 */
107 /* F5419A F5419 -> MAIN_START_ADDRESS 0x5C00 MAIN_LENGTH 0x10000 */
108 /* */
109 /* F5510 -> MAIN_START_ADDRESS 0x8000 MAIN_LENGTH 0x4000 */
110 /* */
111 /* F5132 -> MAIN_START_ADDRESS 0xE000 MAIN_LENGTH 0x1000 */
112 /* F5152 -> MAIN_START_ADDRESS 0xC000 MAIN_LENGTH 0x2000 */
113 /* F5172 -> MAIN_START_ADDRESS 0x8000 MAIN_LENGTH 0x4000 */
114 /* */
115 /* F5636 F5633 F5630 -> MAIN_START_ADDRESS 0x8000 MAIN_LENGTH 0x10000 */
116 /* F5637 F5634 F5631 -> MAIN_START_ADDRESS 0x8000 MAIN_LENGTH 0x18000 */
117 /* F5638 F5635 F5632 -> MAIN_START_ADDRESS 0x8000 MAIN_LENGTH 0x20000 */
118 /* */
119 /* F6636 F6633 F6630 -> MAIN_START_ADDRESS 0x8000 MAIN_LENGTH 0x10000 */
120 /* F6637 F6634 F6631 -> MAIN_START_ADDRESS 0x8000 MAIN_LENGTH 0x18000 */
121 /* F6638 F6635 F6632 -> MAIN_START_ADDRESS 0x8000 MAIN_LENGTH 0x20000 */
122 /* */
123 /* F67x9(1) F67x8(1) -> MAIN_START_ADDRESS 0xC000 MAIN_LENGTH 0x40000 */
124 /* F67x7(1) F67x6(1) -> MAIN_START_ADDRESS 0xC000 MAIN_LENGTH 0x20000 */
125 /* F67x5(1) -> MAIN_START_ADDRESS 0xC000 MAIN_LENGTH 0x10000 */
126 /* */
127 /* CC430F6147 -> MAIN_START_ADDRESS 0x8000 MAIN_LENGTH 0x4000 */
128 /*--------------------------------------------------------------------------*/
129 
130 /****************************************************************************/
131 /* OTHER DEFINES */
132 /****************************************************************************/
133 
139 #define MCLK_18MHZ
140 //#define MailBoxWriteFram
143 #define LPM5_ACTIVATED 1
144 #define ACTIVATE_MAGIC_PATTERN 1
146 #define DEVICE_HAS_JTAG17 1
148 #define WordBufferSize 50
150 #define MAX_ENTRY_TRY 4
153 
154 /****************************************************************************/
155 /* TYPEDEFS */
156 /****************************************************************************/
157 
158 #ifndef __BYTEWORD__
159 #define __BYTEWORD__
160 typedef unsigned short word;
161 typedef unsigned char byte;
162 #endif
163 
164 /****************************************************************************/
165 /* FUNCTION PROTOTYPES */
166 /****************************************************************************/
167 
168 void runProgramm(void);
169 void main(void);
170 
171 /****************************************************************************/
172 /* END OF SOURCE FILE */
173 /****************************************************************************/
void main(void)
Main function.
void runProgramm(void)
The basic Replicator routine.

Copyright 2016, Texas Instruments Incorporated