还想请问一下:如何根据自己的主程序来编写CMD文件,还是主程序参照CMD文件编写?CMD如何编写?谢谢
在上面的程序中我修改了一下CMD文件后,程序就跑不起来了!麻烦帮我看下是怎么回事?
MEMORY
{
PAGE 0: /* program memory */
PM : origin = 0000h, length = 08000h /*32K On-chip memory*/
SARAM : origin = 8000h, length = 0800h /*2K SARAM in program space*/
EX1_PM : origin = 8800h , length = 07600h /*External RAM*/
B0_PM : origin = 0FF00h, length = 0100h /*On chip DARAM if CNF =1,else */
PAGE 1: /* data memory*/
REGS
rigin = 0h, length = 60h
BLK_B2
rigin = 0060h,length = 20h
BLK_B0
rigin = 0200h,length = 100h
BLK_B1:origin = 0300h,length = 100h
SARAM_D:origin = 800h,length = 800h
PERIPH: origin= 07000h,length = 1000h
EX2_DM:origin = 8000h,length = 8000h
PAGE 3: /*I/O memory*/
IO_EX: origin = 0h,length = 0FFF0h
IO_IN: origin = 0FFF0h,length = 0Fh
}
SECTIONS
{
vectors : { } > PM PAGE 0
.text : { } > PM PAGE 0
.data : { } > BLK_B0 PAGE 1
.bss : { } > EX2_DM PAGE 1
}