Config430FR.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 | Config430FR.h |
36 | |
37 | Replicator configuration file for MSP430 FRAM-based families (FRxx) |
38 | |
39 |----------------------------------------------------------------------------|
40 | Project: MSP430 FRAM Replicator |
41 | Developed using: IAR Embedded Workbench 6.20 |
42 | and: Code Composer Studio 6.0 |
43 |----------------------------------------------------------------------------|
44 | Version history: |
45 | 1.0 04/14 RL Initial version. |
46 |----------------------------------------------------------------------------|
47 | Designed 2014 by Texas Instruments Germany |
48 \*==========================================================================*/
51 /****************************************************************************/
52 /* QUICK START OPTIONS */
53 /****************************************************************************/
54 
64 #define INTERFACE SPYBIWIRE_IF
65 //#define INTERFACE SPYBIWIREJTAG_IF
66 
69 #define VCC_LEVEL 30
70 
73 //#define FR4xxFR2xx
74 
76 #define MAIN_START_ADDRESS 0xC200
77 
80 #define MAIN_LENGTH 0x3E00
81 
83 #define RAM_START_ADDRESS 0x1C00
84 
85 // This table lists possible start adresses for the device's RAM
86 /*--------------------------------------------------------------------------*/
87 /* */
88 /* DEFAULT -> RAM_START_ADDRESS 0x1C00 */
89 /* FR4xx/FR2xx -> RAM_START_ADDRESS 0x2000 */
90 /*--------------------------------------------------------------------------*/
91 
92 // The following table lists the main start addresses and memory length for
93 // some FRxx devices. If your device is not listed, please look up these
94 // values in the device data sheet.
95 /*--------------------------------------------------------------------------*/
96 /* Examples: */
97 /* */
98 /* FR5739 -> MAIN_START_ADDRESS 0xC200 MAIN_LENGTH 0x3E00 */
99 /* FR5969 -> MAIN_START_ADDRESS 0x4440 MAIN_LENGTH 0xBC00 */
100 /* FR6989 -> MAIN_START_ADDRESS 0x4440 MAIN_LENGTH 0xBC00 */
101 /* FR4133 -> MAIN_START_ADDRESS 0xC400 MAIN_LENGTH 0x3C00 */
102 /* FR2533 -> MAIN_START_ADDRESS 0xC400 MAIN_LENGTH 0x3C00 */
103 /*--------------------------------------------------------------------------*/
104 
105 /****************************************************************************/
106 /* OTHER DEFINES */
107 /****************************************************************************/
108 
114 #define MCLK_18MHZ
115 //#define MailBoxWriteFram
118 #define LPM5_ACTIVATED 1
119 #define ACTIVATE_MAGIC_PATTERN 1
121 #define WordBufferSize 50
123 #define MAX_ENTRY_TRY 4
126 
127 /****************************************************************************/
128 /* TYPEDEFS */
129 /****************************************************************************/
130 
131 #ifndef __BYTEWORD__
132 #define __BYTEWORD__
133 typedef unsigned short word;
134 typedef unsigned char byte;
135 #endif
136 
137 /****************************************************************************/
138 /* FUNCTION PROTOTYPES */
139 /****************************************************************************/
140 
141 void runProgramm(void);
142 void main(void);
143 
144 /****************************************************************************/
145 /* END OF SOURCE FILE */
146 /****************************************************************************/
void main(void)
Main function.
void runProgramm(void)
The basic Replicator routine.

Copyright 2016, Texas Instruments Incorporated