各位: 我把仿真时通过的程序(有4个中断)烧入2812后发现,程序不进中断。我弄了个指示灯轮流亮灭的程序烧入后,发现这个程序运行正常。 我用的CMD文件如下: -o.DeBugclztest.out -m clztest.map MEMORY { PAGE 0 :
RAMM0 : origin = 0x000000, length = 0x000400 BEGIN : origin = 0x3f7ff6, length = 0x000002 PRAMH0 : origin = 0x3d8000, length = 0x004000 RESET : origin = 0x3FFFC0, length = 0x000002 PAGE 1 :
LSARAM : origin = 0x3de000, length = 0x008000 RAMM1 : origin = 0x000400, length = 0x000400 DRAMH0 : origin = 0x3f8000, length = 0x001000 BUFA : origin = 0x8000, length=0x1000 BUFB : origin = 0x9000, length=0x1000 BUFC : origin = 0x3f9000, length=0x1000 RECORDDATA : origin = 0x80020, length=0x700 PARAMETER : origin = 0x80725, length=0x20 PASSWORD : origin = 0x80005, length=0x08 }
SECTIONS {
codestart : > BEGIN, PAGE = 0 ramfuncs : > PRAMH0 PAGE = 0 .text : > PRAMH0, PAGE = 0 .cinit : > PRAMH0, PAGE = 0 .pinit : > PRAMH0, PAGE = 0 .switch : > RAMM0, PAGE = 0 .reset : > RESET, PAGE = 0, TYPE = DSECT .stack : > RAMM1, PAGE = 1 .ebss : > DRAMH0, PAGE = 1 .econst : > LSARAM, PAGE = 1 .esysmem : > DRAMH0, PAGE = 1 .bufferA : {}>BUFA PAGE 1 .bufferB : {}>BUFB PAGE 1 .bufferC : {}>BUFC PAGE 1 .RecordData : {}>RECORDDATA PAGE 1 .parameter : {}>PARAMETER PAGE 1 .password : {}>PASSWORD PAGE 1 }
我感觉象CMD少设置了什么,但又不知道具体怎么回事,烦请指点一下。 谢谢
|