共2条
1/1 1 跳转至页
问
我是用IAR开发的最近遇到了这样一个问题:
程序是:include "MSP430x44x.h"
ORG 01100h
RESET mov.w #0A00h,SP
StopWDT mov.w #WDTPW+WDTHOLD,&WDTCTL
SetupTA mov.w #TASSEL1+TACLR,&TACTL
SetupC0 mov.w #CCIE,&CCTL0
mov.w #35000,&CCR0
SetupP1 bis.b #001h,&P1DIR
bis.w #MC1,&TACTL
MOV.B #0FFH,&P2DIR
eint
M JMP M
ORG 0FFFEh
DW RESET
END
可是编译错误:IAR Universal Linker V4.56E/386
Copyright 1987-2003 IAR Systems. All rights reserved.
Error[e16]: Segment INTVEC (size: 0x20 align: 0x1) is too long for segment definition. At least 0x2 more bytes needed. The problem occurred while processing the
segment placement command "-Z(CONST)INTVEC=FFE0-FFFF", where at the moment of placement the available memory ranges were "CODE:FFE0-FFFD"
Reserved ranges relevant to this placement:
CODE:FFFE-FFFF Absolute code from jiat2
Total number of errors: 1
Total number of warnings: 0
答 1: 可能是工程创建的原因用鼠标指向IAR软件的Workspace窗口,单击激活该窗口,然后将鼠标指向你所创建的那个工程,右击鼠标,选Option,在弹出的工程属性菜单中将only assembly选中,编译链接即可!
程序是:include "MSP430x44x.h"
ORG 01100h
RESET mov.w #0A00h,SP
StopWDT mov.w #WDTPW+WDTHOLD,&WDTCTL
SetupTA mov.w #TASSEL1+TACLR,&TACTL
SetupC0 mov.w #CCIE,&CCTL0
mov.w #35000,&CCR0
SetupP1 bis.b #001h,&P1DIR
bis.w #MC1,&TACTL
MOV.B #0FFH,&P2DIR
eint
M JMP M
ORG 0FFFEh
DW RESET
END
可是编译错误:IAR Universal Linker V4.56E/386
Copyright 1987-2003 IAR Systems. All rights reserved.
Error[e16]: Segment INTVEC (size: 0x20 align: 0x1) is too long for segment definition. At least 0x2 more bytes needed. The problem occurred while processing the
segment placement command "-Z(CONST)INTVEC=FFE0-FFFF", where at the moment of placement the available memory ranges were "CODE:FFE0-FFFD"
Reserved ranges relevant to this placement:
CODE:FFFE-FFFF Absolute code from jiat2
Total number of errors: 1
Total number of warnings: 0
答 1: 可能是工程创建的原因用鼠标指向IAR软件的Workspace窗口,单击激活该窗口,然后将鼠标指向你所创建的那个工程,右击鼠标,选Option,在弹出的工程属性菜单中将only assembly选中,编译链接即可!
共2条
1/1 1 跳转至页
回复
有奖活动 | |
---|---|
【有奖活动】分享技术经验,兑换京东卡 | |
话不多说,快进群! | |
请大声喊出:我要开发板! | |
【有奖活动】EEPW网站征稿正在进行时,欢迎踊跃投稿啦 | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
打赏了!打赏了!打赏了! |