TI中文支持网
TI专业的中文技术问题搜集分享网站

在CCS7进行编译时,遇到重复性定义的错误,想请教如何解决

新手一枚,刚接触CCS,    在编译时出现104errors,

error #10056: symbol "_ADCINT2_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_ECAP1_INT_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_ADCINT3_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_EPWM3_TZINT_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_NMI_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_EPWM3_INT_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_WAKEINT_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_EPWM2_INT_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"

我尝试过的方法:Search“ ADCINT2_ISR“”在DSP2802x_DefaultIsr.c和initial.c (5 matches) 出现过。

1在.h做过extern声明,报错。

2 symbol多次出现,在.c中屏蔽过,还是报错

想请教各位大神如何解决这种问题,非常感谢

Susan Yang:

你的头文件是自己定义的还是TI例程?

建议你下载controlSUITE软件,用CCS导入例程,在例程基础上修改。

新手一枚,刚接触CCS,    在编译时出现104errors,

error #10056: symbol "_ADCINT2_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_ECAP1_INT_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_ADCINT3_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_EPWM3_TZINT_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_NMI_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_EPWM3_INT_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_WAKEINT_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_EPWM2_INT_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"

我尝试过的方法:Search“ ADCINT2_ISR“”在DSP2802x_DefaultIsr.c和initial.c (5 matches) 出现过。

1在.h做过extern声明,报错。

2 symbol多次出现,在.c中屏蔽过,还是报错

想请教各位大神如何解决这种问题,非常感谢

changfu tan:

回复 Susan Yang:

非常感谢您的回复,请问还有别的途径吗,并不是TI例程

新手一枚,刚接触CCS,    在编译时出现104errors,

error #10056: symbol "_ADCINT2_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_ECAP1_INT_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_ADCINT3_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_EPWM3_TZINT_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_NMI_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_EPWM3_INT_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_WAKEINT_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_EPWM2_INT_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"

我尝试过的方法:Search“ ADCINT2_ISR“”在DSP2802x_DefaultIsr.c和initial.c (5 matches) 出现过。

1在.h做过extern声明,报错。

2 symbol多次出现,在.c中屏蔽过,还是报错

想请教各位大神如何解决这种问题,非常感谢

user450161651:

回复 changfu tan:

觉得还是参考TI例程的头文件比较好,TI的片子做开发文件比较多,自己写容易出现漏洞

新手一枚,刚接触CCS,    在编译时出现104errors,

error #10056: symbol "_ADCINT2_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_ECAP1_INT_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_ADCINT3_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_EPWM3_TZINT_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_NMI_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_EPWM3_INT_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_WAKEINT_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_EPWM2_INT_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"

我尝试过的方法:Search“ ADCINT2_ISR“”在DSP2802x_DefaultIsr.c和initial.c (5 matches) 出现过。

1在.h做过extern声明,报错。

2 symbol多次出现,在.c中屏蔽过,还是报错

想请教各位大神如何解决这种问题,非常感谢

mangui zhang:

回复 changfu tan:

多加入文件了。 删除多余文件

新手一枚,刚接触CCS,    在编译时出现104errors,

error #10056: symbol "_ADCINT2_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_ECAP1_INT_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_ADCINT3_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_EPWM3_TZINT_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_NMI_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_EPWM3_INT_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_WAKEINT_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"
error #10056: symbol "_EPWM2_INT_ISR" redefined: first defined in "./17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"; redefined in "../17k_slave_V0.02/Debug/DSP2802x_DefaultIsr.obj"

我尝试过的方法:Search“ ADCINT2_ISR“”在DSP2802x_DefaultIsr.c和initial.c (5 matches) 出现过。

1在.h做过extern声明,报错。

2 symbol多次出现,在.c中屏蔽过,还是报错

想请教各位大神如何解决这种问题,非常感谢

user4049846:首先你看看你的片子是多少位的,16位还是32位?
然后看看TI例子文件中DSP2802x_DefaultIsr.obj是否出现了重复定义。

赞(0)
未经允许不得转载:TI中文支持网 » 在CCS7进行编译时,遇到重复性定义的错误,想请教如何解决
分享到: 更多 (0)