共2条
1/1 1 跳转至页
问
我是用IAR开发的最近遇到了这样一个问题:
程序是:include "MSP430x44x.h"
ORG 01100h
RESET mov.w #0A00h,SP
StopWDT mov.w #WDTPW+WDTHOLD,&WDTCTL
SetupTA mov.w #TASSEL1+TACLR,&TACTL
SetupC0 mov.w #CCIE,&CCTL0
mov.w #35000,&CCR0
SetupP1 bis.b #001h,&P1DIR
bis.w #MC1,&TACTL
MOV.B #0FFH,&P2DIR
eint
M JMP M
ORG 0FFFEh
DW RESET
END
可是编译错误:IAR Universal Linker V4.56E/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 jiat2
Total number of errors: 1
Total number of warnings: 0
答 1: 可能是工程创建的原因用鼠标指向IAR软件的Workspace窗口,单击激活该窗口,然后将鼠标指向你所创建的那个工程,右击鼠标,选Option,在弹出的工程属性菜单中将only assembly选中,编译链接即可!
程序是:include "MSP430x44x.h"
ORG 01100h
RESET mov.w #0A00h,SP
StopWDT mov.w #WDTPW+WDTHOLD,&WDTCTL
SetupTA mov.w #TASSEL1+TACLR,&TACTL
SetupC0 mov.w #CCIE,&CCTL0
mov.w #35000,&CCR0
SetupP1 bis.b #001h,&P1DIR
bis.w #MC1,&TACTL
MOV.B #0FFH,&P2DIR
eint
M JMP M
ORG 0FFFEh
DW RESET
END
可是编译错误:IAR Universal Linker V4.56E/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 jiat2
Total number of errors: 1
Total number of warnings: 0
答 1: 可能是工程创建的原因用鼠标指向IAR软件的Workspace窗口,单击激活该窗口,然后将鼠标指向你所创建的那个工程,右击鼠标,选Option,在弹出的工程属性菜单中将only assembly选中,编译链接即可!
共2条
1/1 1 跳转至页
回复
有奖活动 | |
---|---|
【有奖活动】分享技术经验,兑换京东卡 | |
话不多说,快进群! | |
请大声喊出:我要开发板! | |
【有奖活动】EEPW网站征稿正在进行时,欢迎踊跃投稿啦 | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
vscode+cmake搭建雅特力AT32L021开发环境被打赏30分 | |
【换取逻辑分析仪】自制底板并驱动ArduinoNanoRP2040ConnectLCD扩展板被打赏47分 | |
【分享评测,赢取加热台】RISC-V GCC 内嵌汇编使用被打赏38分 | |
【换取逻辑分析仪】-基于ADI单片机MAX78000的简易MP3音乐播放器被打赏48分 | |
我想要一部加热台+树莓派PICO驱动AHT10被打赏38分 | |
【换取逻辑分析仪】-硬件SPI驱动OLED屏幕被打赏36分 | |
换逻辑分析仪+上下拉与多路选择器被打赏29分 | |
Let'sdo第3期任务合集被打赏50分 | |
换逻辑分析仪+Verilog三态门被打赏27分 | |
换逻辑分析仪+Verilog多输出门被打赏24分 |