2019-03-26 14:39发布
数码小叶 发表于 2018-8-15 20:38 根据使能信号,确定你的外扩RAM在ZONE0-ZONE7的哪个区域,然后在cmd里文件就提现出来了啊,比如外接的是XZCS ...
最多设置5个标签!
好的,十分感谢!
大哥,再次麻烦您!我现在将xintf初始化了,cmd文件也改了,你能看看我改的对吗。我现在问题是编译没出现什么问题,但是就是程序好像没加载到DSP中,没办法运行,我下面贴出了不能运行的和正常运行的debug照片,麻烦您帮我看看问题在哪呢?可以吗?感谢!
xintf初始化:
XintfRegs.XINTCNF2.bit.XTIMCLK = 1;
XintfRegs.XINTCNF2.bit.WRBUFF = 0;
XintfRegs.XINTCNF2.bit.CLKOFF = 0;
XintfRegs.XINTCNF2.bit.CLKMODE = 1;
XintfRegs.XTIMING6.bit.XWRLEAD = 3;
XintfRegs.XTIMING6.bit.XWRACTIVE = 7;
XintfRegs.XTIMING6.bit.XWRTRAIL = 3;
// Zone read timing
XintfRegs.XTIMING6.bit.XRDLEAD = 3;
XintfRegs.XTIMING6.bit.XRDACTIVE = 7;
XintfRegs.XTIMING6.bit.XRDTRAIL = 3;
// double all Zone read/write lead/active/trail timing
XintfRegs.XTIMING6.bit.X2TIMING = 1;
// Zone will sample XREADY signal
XintfRegs.XTIMING6.bit.USEREADY = 1;
XintfRegs.XTIMING6.bit.READYMODE = 1; // sample asynchronous
XintfRegs.XTIMING6.bit.XSIZE = 3;
XintfRegs.XBANK.bit.BANK = 6;
XintfRegs.XBANK.bit.BCYC = 7;
cmd文件:
PAGE 0 :
ZONE6 : origin = 0x100000, length = 0x01ffff
PAGE 1 :
ZONE6 : origin = 0x120000, length = 0x01ffff
.text : > ZONE6, PAGE = 0
.cinit : > ZONE6, PAGE = 0
.pinit : > ZONE6, PAGE = 0
.ebss : > ZONE6, PAGE = 1
一周热门 更多>