This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCSV5编译报错

Other Parts Discussed in Thread: MSP430F5529

错误为:#10010 errors encountered during linking; "FrequenceMeasure.out" not;

<a href="file:/D:/MSP430/anzhuangchu/ccsv5/tools/compiler/dmed/HTML/10099.html">#10099-D</a>  program will not fit into

注:程序只是暂时只是一个框架。发现,一旦把中断服务子函数那一部分加上,就会报错,不加就不报错

#include<msp430f5529.h>
#include"HAL_Board.h"

void BeginInterruptSet();
void main()
{
 Board_init(); //开发板初始化
 WDTCTL=WDTPW+WDTHOLD; //关闭看门狗
 __enable_interrupt();//开总中断
 BeginInterruptSet(); //设置待测信号触发中断
 LPM3;  //进入低功耗模式

 __delay_cycles(10000);//延时,使待测信号稳定
 while(1);

}

/**待测信号上升沿,触发系统开始工作**/
void BeginInterruptSet()
{
 P1DIR&=~BIT0; //P1.0设定为输入方向
 P1IN&=~BIT0; //输入初始为0
 P1IES&=~BIT0; //上升沿触发
 P1OUT&=~BIT0;
 P1REN|=BIT1; //配置下拉电阻
 P1IE|=BIT0;  //开启P1.0外部中断
 P1IFG=0x00;  //清除P1口中断标志
}

#pragma vector=PORT1_VECTOR  //中断服务子函数
__interrupt void P1()
{
 P1IE&=~BIT0;//关闭P1.0中断
 P1SEL|=BIT0;//声明P1.0将用作TA0CLK
 LPM3_EXIT; //退出低功耗模式