这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 综合技术 » 基础知识 » msp430 msp430高手进

共2条 1/1 1 跳转至

msp430 msp430高手进

院士
2006-09-17 18:14:16     打赏
msp430 msp430高手进



关键词: msp430     高手    

院士
2006-12-22 22:43:00     打赏
2楼
问 我是用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选中,编译链接即可!

共2条 1/1 1 跳转至

回复

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