关于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条回答
wstt
2019-03-25 05:31
mcu型号选错了。

一周热门 更多>

相关问题

    相关文章