【芯片型号】MSP430G2553
【CCS版本】Code Composer Studio v4 Core Edition(但没有用这个)
【软件平台】IAR for MSP430 5.5
【问题描述】从网上复制了一个程序如下:
//******************************************************************************
// LaunchPad Lab2 - Software Toggle P1.0,
//
// MSP430G2xx2
// -----------------
// /|\| XIN|-
// | | |
// --|RST XOUT|-
// | |
// | P1.0|-->LED
// //******************************************************************************
#include <msp430g2553.h>
void _delay_cycles(unsigned int x){
while(x--);
}
void main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
if (CALBC1_1MHZ == 0xFF || CALDCO_1MHZ == 0xFF)
{
while(1); // If calibration constants erased, trap CPU!!
}
// Configure Basic Clock
BCSCTL1 = CALBC1_1MHZ; // Set range
DCOCTL = CALDCO_1MHZ; // Set DCO step + modulation
BCSCTL3 |= LFXT1S_2; // Set LFXT1 P1DIR = BIT6; // P1.6 output (green LED)
P1OUT = 0; // LED off
IFG1 &= ~OFIFG; // Clear OSCFault flag
BCSCTL2 |=SELM_1 + DIVM_0; // Set MCLK
for(;;)
{
P1OUT = BIT6; // P1.6 on (green LED)
_delay_cycles(100); P1OUT = 0; // green LED off
_delay_cycles(5000);
}
}
在电脑上编译成功了,连接LaunchPad进行Download and Debug 就出现如下问题:
Tue Oct 14, 2014 19:54:35: The custom SFR file 'D:\360安全浏览器下载\IAR_EW_MSP430_5502\firstCustomSfr.sfr' contains a modification of the factory SFR 'FCTL3.LOCK'. This SFR cannot be found in the used factory SFR file 'C:\Program Files (x86)\IAR Systems\Embedded Workbench 6.4 Evaluation\430\config\msp430g2253.sfr' and the definition will be ignored.
Tue Oct 14, 2014 19:54:35: The custom SFR file 'D:\360安全浏览器下载\IAR_EW_MSP430_5502\firstCustomSfr.sfr' contains a modification of the factory SFR 'P1IN.P4'. This SFR cannot be found in the used factory SFR file 'C:\Program Files (x86)\IAR Systems\Embedded Workbench 6.4 Evaluation\430\config\msp430g2253.sfr' and the definition will be ignored.
作为刚接触这个的人,不知道是出了什么问题,也不知道如何解决,还请各位大神帮一下忙,不胜感激