共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在线】E起听工程师的声音! | |
“我踩过的那些坑”主题活动——第001期 | |
高校联络员开始招募啦!有惊喜!! | |
【工程师专属福利】每天30秒,积分轻松拿!EEPW宠粉打卡计划启动! | |
送您一块开发板,2025年“我要开发板活动”又开始了! | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
【我踩过的那些坑】工作那些年踩过的记忆深刻的坑被打赏10分 | |
【我踩过的那些坑】DRC使用位置错误导致的问题被打赏100分 | |
我踩过的那些坑之混合OTL功放与落地音箱被打赏50分 | |
汽车电子中巡航控制系统的使用被打赏10分 | |
【我踩过的那些坑】工作那些年踩过的记忆深刻的坑被打赏100分 | |
分享汽车电子中巡航控制系统知识被打赏10分 | |
分享安全气囊系统的检修注意事项被打赏10分 | |
分享电子控制安全气囊计算机知识点被打赏10分 | |
【分享开发笔记,赚取电动螺丝刀】【OZONE】使用方法总结被打赏20分 | |
【分享开发笔记,赚取电动螺丝刀】【S32K314】芯片启动流程分析被打赏40分 |