谢谢版主,我对cmd还不是很明白,这是我的原来的cmd文件,我应该怎么改才能把程序放在内部ram中调试呢? MEMORY { PAGE 0: /* PROGRAM MEMORY */ VEC :ORIGIN=0000H , LENGTH=0040H  M :ORIGIN=0040H , LENGTH=0FF00H /* 32K On–chip flash memory */
PAGE 1: /* DATA MEMORY */ REGS :ORIGIN=0h , LENGTH=60h /* Memory mapped regs & reservd address*/ BLK_B2 :ORIGIN=60h , LENGTH=20h /* Block B2 */ BLK_B0 :ORIGIN=200h , LENGTH=80h /* Block B0, On–chip DARAM if CNF =0 */ BLK_B01 :ORIGIN=280h , LENGTH=80h BLK_B1 :ORIGIN=300h, LENGTH=100h /*BLK_B1 :ORIGIN=300h , LENGTH=100h /* Block B1 */ SARAM_D :ORIGIN=0800H=300h , LENGTH=0800h /* 2K SARAM in data space */  ERIPH :ORIGIN=7000h , LENGTH=1000h /* Peripheral register space */ EX2_DM :ORIGIN=8000h , LENGTH=8000h /* External data RAM */ PAGE 2: /* I/O MEMORY */ IO_EX :ORIGIN=0000h , LENGTH=0FFF0h /* External I/O mapped peripherals */ IO_IN :ORIGIN=0FFF0h, LENGTH=0Fh /* On–chip I/O mapped peripherals */ }
SECTIONS { .vectors :{} > VEC PAGE 0 .text :{} > PM PAGE 0 .bss :{} > BLK_B1 PAGE 1 .data0 :{} > BLK_B0 PAGE 1 .data1 :{} > BLK_B01 PAGE 1 .data2 :{} > BLK_B2 PAGE 1 }
[此贴子已经被作者于2006-12-18 11:55:12编辑过] |