共2条
1/1 1 跳转至页
IAR,Embeded,Workbench 关于IAR Embeded Workbench汇编器的使用方法
问
梁工,各位高手:
我用IAR Embeded Workbench汇编时,
发现产生系列问题。
源码(是一IAR System自带的范例):
NAME first
ORG 0FFFEh
DW main
; counts up R4,R5 in binary coded decimal
ORG 0200h
main CLR R4
CLR R5
loop CLRC
DADD.B #1,R4
CMP #10h,R4
JNE loop
CLR R4
CLRC
DADD.B #1,R5
JNE loop
done JMP done
END main
在Link时产生如下的Error Messages:
Linking...
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(CODE)INTVEC=FFE0-FFFF", where at the moment of placement the available memory ranges were "ffe0-fffd"
Total number of errors: 1
Total number of warnings: 0
CAN you help me? 答 1: 头文件(*.H)没有定义,另外程序起始地址也不对,不是200H 答 2: 如此简单的一个源程序编译:
#include "MSP430x11x.h"
ORG 0F000h
RESET mov.w #300h, SP
STOPWDT mov.w #WDTPW+WDTHOLD,&WDTCTL
SetupP1 bis.b #001h,&P1DIR
MainLoop xor.b #001h,&P1OUT
Wait mov.w #050000,R15
L1 dec.w R15
jnz L1
jmp MainLoop
ORG 0FFF4h
DW RESET
END
COMPLIE的时候没有问题
make后出现的错误提示:
IAR Universal Linker V4.55H/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 LED
Total number of errors: 1
Total number of warnings: 0
还请指教
我用IAR Embeded Workbench汇编时,
发现产生系列问题。
源码(是一IAR System自带的范例):
NAME first
ORG 0FFFEh
DW main
; counts up R4,R5 in binary coded decimal
ORG 0200h
main CLR R4
CLR R5
loop CLRC
DADD.B #1,R4
CMP #10h,R4
JNE loop
CLR R4
CLRC
DADD.B #1,R5
JNE loop
done JMP done
END main
在Link时产生如下的Error Messages:
Linking...
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(CODE)INTVEC=FFE0-FFFF", where at the moment of placement the available memory ranges were "ffe0-fffd"
Total number of errors: 1
Total number of warnings: 0
CAN you help me? 答 1: 头文件(*.H)没有定义,另外程序起始地址也不对,不是200H 答 2: 如此简单的一个源程序编译:
#include "MSP430x11x.h"
ORG 0F000h
RESET mov.w #300h, SP
STOPWDT mov.w #WDTPW+WDTHOLD,&WDTCTL
SetupP1 bis.b #001h,&P1DIR
MainLoop xor.b #001h,&P1OUT
Wait mov.w #050000,R15
L1 dec.w R15
jnz L1
jmp MainLoop
ORG 0FFF4h
DW RESET
END
COMPLIE的时候没有问题
make后出现的错误提示:
IAR Universal Linker V4.55H/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 LED
Total number of errors: 1
Total number of warnings: 0
还请指教
共2条
1/1 1 跳转至页
回复
有奖活动 | |
---|---|
【有奖活动】分享技术经验,兑换京东卡 | |
话不多说,快进群! | |
请大声喊出:我要开发板! | |
【有奖活动】EEPW网站征稿正在进行时,欢迎踊跃投稿啦 | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
打赏了!打赏了!打赏了! |