|
试过了,也还不行。下面是CMD文件:
MEMORY
{
PAGE 0 : VECS : origin = 0h , length = 040h /* VECTORS */
PROG : origin = 08000h , length = 08000h /* PROGRAM */
PAGE 1 : MMRS : origin = 0h , length = 060h /* MMRS */
B2 : origin = 0060h , length = 020h /* DARAM */
B0 : origin = 0200h , length = 0100h /* DARAM */
B1 : origin = 0300h , length = 0100h /* DARAM */
DATA : origin = 8000h , length = 8000h /* XDM */
}
/*--------------------------------------------------------------------*/
/* SECTIONS ALLOCATION */
/*--------------------------------------------------------------------*/
SECTIONS
{
.vectors : { } > VECS PAGE 0 /* Interrupt vector table */
.text : { } > PROG PAGE 0 /* Code */
.data : { } > PROG PAGE 0 /* Initialization data tables */
.bss : { } > DATA PAGE 1 /* Block B2 */
.cinit : { } > PROG PAGE 0 /*Block B0 */
.stack : { } > B1 PAGE 1 /* Block B1 */
.const : { } > B2 PAGE 1 /* Block B2 */
} |
|