这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 综合技术 » 基础知识 » IAR,Embeded,Workbench 关于IAR Embeded Work

共2条 1/1 1 跳转至

IAR,Embeded,Workbench 关于IAR Embeded Workbench汇编器的使用方法

院士
2006-09-17 18:14:16     打赏
IAR,Embeded,Workbench 关于IAR Embeded Workbench汇编器的使用方法



关键词: Embeded     Workbench     关于     汇编     使    

院士
2006-12-22 22:43:00     打赏
2楼
问 梁工,各位高手:
我用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 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]