OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 4385|回复: 4

使用IAR编程TI的MCU(M3内核),编译出现以下错误!在线等……

[复制链接]

17

主题

81

帖子

0

精华

初级会员

Rank: 2

积分
169
金钱
169
注册时间
2013-12-16
在线时间
6 小时
发表于 2015-2-9 11:50:05 | 显示全部楼层 |阅读模式
5金钱
错误之处指向我调用的一个interrupt.c的库,如下:还请大神帮忙看看问题出在哪里?
//*****************************************************************************
//
// The processor vector table.
//
// This contains a list of the handlers for the various interrupt sources in
// the system.  The layout of this list is defined by the hardware; assertion
// of an interrupt causes the processor to start executing directly at the
// address given in the corresponding location in this list.
//
//*****************************************************************************
#if defined(ewarm)
static __no_init void (*g_pfnRAMVectors[NUM_INTERRUPTS])(void) @ "VTABLE";
#elif defined(sourcerygxx)
static __attribute__((section(".cs3.region-head.ram")));
void (*g_pfnRAMVectors[NUM_INTERRUPTS])(void);
#elif defined(ccs)
#pragma DATA_SECTION(g_pfnRAMVectors, ".vtable")
void (*g_pfnRAMVectors[NUM_INTERRUPTS])(void);
#else
static __attribute__((section(".vtable")));           //错误指向此处
void (*g_pfnRAMVectors[NUM_INTERRUPTS])(void);
#endif
log如下:
Updating build tree... 
interrupt.c  
Error[Pe079]: expected a type specifier E:\My Work\product\Orcar T5020\MCU\StellarisWare\driverlib\interrupt.c 108 
Error[Pe260]: explicit type is missing ("int" assumed) E:\My Work\product\Orcar T5020\MCU\StellarisWare\driverlib\interrupt.c 108 
Warning[Pe177]: function "__attribute__" was declared but never referenced E:\My Work\product\Orcar T5020\MCU\StellarisWare\driverlib\interrupt.c 108 
Error while running C/C++ Compiler 
Total number of errors: 2 
Total number of warnings: 1 

正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

17

主题

81

帖子

0

精华

初级会员

Rank: 2

积分
169
金钱
169
注册时间
2013-12-16
在线时间
6 小时
 楼主| 发表于 2015-2-9 16:22:26 | 显示全部楼层
自己顶一下,路过的请指点一二~~
回复

使用道具 举报

530

主题

11万

帖子

34

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
165540
金钱
165540
注册时间
2010-12-1
在线时间
2117 小时
发表于 2015-2-9 22:36:14 | 显示全部楼层
帮顶....
回复

使用道具 举报

17

主题

81

帖子

0

精华

初级会员

Rank: 2

积分
169
金钱
169
注册时间
2013-12-16
在线时间
6 小时
 楼主| 发表于 2015-2-11 11:00:24 | 显示全部楼层
原子哥帮忙顶了啊,没人遇到过这个问题?
回复

使用道具 举报

17

主题

81

帖子

0

精华

初级会员

Rank: 2

积分
169
金钱
169
注册时间
2013-12-16
在线时间
6 小时
 楼主| 发表于 2015-2-12 09:27:27 | 显示全部楼层
原子哥,看来大家都放假了~
……
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-6-25 20:43

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表