共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电子工程师创研计划】技术变现通道已开启~ | |
发原创文章 【每月瓜分千元赏金 凭实力攒钱买好礼~】 | |
【EEPW在线】E起听工程师的声音! | |
“我踩过的那些坑”主题活动——第001期 | |
高校联络员开始招募啦!有惊喜!! | |
【工程师专属福利】每天30秒,积分轻松拿!EEPW宠粉打卡计划启动! | |
送您一块开发板,2025年“我要开发板活动”又开始了! | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
电流检测模块MAX4080S被打赏10分 | |
【我踩过的那些坑】calloc和malloc错误使用导致跑飞问题排查被打赏50分 | |
多组DCTODC电源方案被打赏50分 | |
【我踩过的那些坑】STM32cubeMX软件的使用过程中的“坑”被打赏50分 | |
新手必看!C语言精华知识:表驱动法被打赏50分 | |
【我踩过的那些坑】杜绑线问题被打赏50分 | |
【我踩过的那些坑】STM32的硬件通讯调试过程的“坑”被打赏50分 | |
【我踩过的那些坑】晶振使用的问题被打赏100分 | |
【我踩过的那些坑】电感选型错误导致的处理器连接不上被打赏50分 | |
【我踩过的那些坑】工作那些年踩过的记忆深刻的坑被打赏10分 |