关于msp430复位中断编译问题

2019-03-24 11:36发布

大家好:
       一个关于msp430的复位中断的问题请教一下。
       是这样,我在用iar做开发环境的时候在测试复位中断,但是编译出现错误
不知道是什么原因,代码是这样(很简单):
#pragma vector = RESET_VECTOR
__interrupt void Rsset(void)
{
        __no_operation();
}
编译以后错误如下:

Building configuration: Interrupt0 - Debug
Updating build tree...
main.c  
Linking
Error[e16]: Segment RESET (size: 0x2 align: 0x1) is too long for segment definition. At least 0x2 more bytes needed. The problem  
occurred while processing the segment placement command "-Z(CODE)RESET=FFFE-FFFF", where at the moment of placement the  
available memory ranges were "-none-"
   Reserved ranges relevant to this placement:
   ffe0-ffff            INTVEC
Error while running Linker

Total number of errors: 1
Total number of warnings: 0
请给予帮助,不胜感谢! 此帖出自小平头技术问答
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
6条回答
wangfuchong
1楼-- · 2019-03-24 15:47
估计是IAR软件不够智能?把__no_operation();放在一个单独的函数里或者用两个以上__no_operation();试试看看?或者用别的无实际意义操作结果的指令代替看看,这个NOP仿真指令还真没搞透彻

[ 本帖最后由 wangfuchong 于 2013-4-1 16:48 编辑 ]
ali009
2楼-- · 2019-03-24 21:28
< :TI_MSP430_内容页_SA7 --> 完全不对啊说的,是有一个设置不对。已经解决了,不过还是谢了。
如果有更多的人参与就好了。
还是谢了!
wangfuchong
3楼-- · 2019-03-25 00:34
 精彩回答 2  元偷偷看……
wstt
4楼-- · 2019-03-25 05:31
mcu型号选错了。
sflyhx
5楼-- · 2019-03-25 08:40
朋友,以上问题是怎么解决的?我也遇到同样的问题,急急~~~
pht1150
6楼-- · 2019-03-25 10:33
 精彩回答 2  元偷偷看……

一周热门 更多>

相关问题

    相关文章