我 load program 时总是提示在程序空间的VECT的首地址处失败,vector.asm分配到VECT空间,
着是怎么回事啊?请高手指点,谢谢拉
把你的CMD文件和vector.asm贴出来看看.
就是TI的HELLO工程,我也没有改动的,请各位帮忙拉!
MEMORY
{
PAGE 0: EPROG: origin = 0x1400, len = 0x7c00
VECT: origin = 0xff80, len = 0x80
PAGE 1: USERREGS: origin = 0x60, len = 0x1c
BIOSREGS: origin = 0x7c, len = 0x4
IDATA: origin = 0x80, len = 0x1380
EDATA: origin = 0x1400, len = 0x8000
EDATA1: origin = 0x9400, len = 0x4c00
}
SECTIONS
{
.vectors: {} > VECT PAGE 0
.sysregs: {} > BIOSREGS PAGE 1
.trcinit: {} > EPROG PAGE 0
.gblinit: {} > EPROG PAGE 0
frt: {} > EPROG PAGE 0
.text: {} > EPROG PAGE 0
.cinit: {} > EPROG PAGE 0
.pinit: {} > EPROG PAGE 0
.sysinit: {} > EPROG PAGE 0
.bss: {} > IDATA PAGE 1
.far: {} > IDATA PAGE 1
.const: {} > IDATA PAGE 1
.switch: {} > IDATA PAGE 1
.sysmem: {} > IDATA PAGE 1
.cio: {} > IDATA PAGE 1
.MEM$obj: {} > IDATA PAGE 1
.sysheap: {} > IDATA PAGE 1
.stack: {} > IDATA PAGE 1
}
.sect \".vectors\"
.ref _c_int00 ; C entry point
.align 0x80 ; must be aligned on page boundary
RESET: ; reset vector
BD _c_int00 ; branch to C entry point
STM #200,SP ; stack size of 200
nmi: RETE ; enable interrupts and return from one
NOP
NOP
NOP ;NMI~
; software interrupts
sint17 .space 4*16
sint18 .space 4*16
sint19 .space 4*16
sint20 .space 4*16
sint21 .space 4*16
sint22 .space 4*16
sint23 .space 4*16
sint24 .space 4*16
sint25 .space 4*16
sint26 .space 4*16
sint27 .space 4*16
sint28 .space 4*16
sint29 .space 4*16
sint30 .space 4*16
int0: RETE
NOP
NOP
NOP
int1: RETE
NOP
NOP
NOP
int2: RETE
NOP
NOP
NOP
tint: RETE
NOP
NOP
NOP
rint0: RETE
NOP
NOP
NOP
xint0: RETE
NOP
NOP
NOP
rint1: RETE
NOP
NOP
NOP
xint1: RETE
NOP
NOP
NOP
int3: RETE
NOP
NOP
NOP
.end
你可以试着修改一下VECT的分配空间.
从你的CMD文件看,你和我搞的DSP
型号不一样,我也不知道如何修改.