共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 跳转至页
回复
| 有奖活动 | |
|---|---|
| 2026年“我要开发板活动”第三季,开始了! | |
| 硬核工程师专属补给计划——填盲盒 | |
| “我踩过的那些坑”主题活动——第002期 | |
| 【EEPW电子工程师创研计划】技术变现通道已开启~ | |
| 发原创文章 【每月瓜分千元赏金 凭实力攒钱买好礼~】 | |
| 【EEPW在线】E起听工程师的声音! | |
| 高校联络员开始招募啦!有惊喜!! | |
| 【工程师专属福利】每天30秒,积分轻松拿!EEPW宠粉打卡计划启动! | |
我要赚赏金打赏帖 |
|
|---|---|
| 【分享开发笔记,赚取电动螺丝刀】在音频测试中顺序的调整可改变功效被打赏¥18元 | |
| 【分享开发笔记,赚取电动螺丝刀】点阵显示模块及其应用-----献给新年的小礼物被打赏¥22元 | |
| 基于地奇星开发板的数码管模块显示技术被打赏¥23元 | |
| window下生成compilecommands.json的的方法被打赏¥22元 | |
| 【S32K3XX】GPIO中断配置被打赏¥26元 | |
| 【分享开发笔记,赚取电动螺丝刀】WS2812B的RGB灯介绍以及驱动方法被打赏¥25元 | |
| PTC与NTC功能常规对比被打赏¥14元 | |
| 【S32K3XX】核间通信MU使用被打赏¥27元 | |
| 【分享开发笔记,赚取电动螺丝刀】关于3pin锂电池接口的介绍/使用被打赏¥16元 | |
| 以启明云端ESP32P4开发板实现TF卡读写功能被打赏¥28元 | |
我要赚赏金
