多谢版主,我的CMD文件如下: MEMORY { PAGE 0: /* PROGRAM MEMORY */ VECS: origin=0h, length=0040h /* PROGRAM */ PM: origin=0060h, length=07FA0h /* 32K On-chip flash memory */ SARAM_P: origin=08000h, length=0800h /* 2K SARAM in program space */ EX1_PM: origin=8800h, length=7700h /* External RAM */ B0_PM: origin=0FF00h, length=0100h /* On-chip DARAM if CNF=1, else */ 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=100h /* Block B0, On-chip DARAM if CNF=0 */ BLK_B1: origin=300h , length=100h /* Block B1 */ SARAM_D: origin=0800H , length=0800H /* 2K SARAM in data space */ PERIPH: origin=7000h , length=1000h /* Peripheral register space */ EX2_DM: origin=8000h , length=8000h /* External data RAM */  AGE 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: {} > VECS PAGE 0 /* INTERRUPT VECTOR TABLE */ .text: {} > PM PAGE 0 /* CODE */ .bss: {} > BLK_B1 PAGE 1 .data: {} > PM PAGE 0 /* INITIALIZATION DATA TABLES */ .stack: {} > BLK_B0 PAGE 1 .context: {} > BLK_B2 PAGE 1 }
|