s3c44b0,mx29lv320b,sdram里可以正常调试点灯的程序。
现在想测试flash的擦写, flash擦写代码如下:
volatile unsigned short *flash_p=0;
for(i=0;i<100;i++)
{
*(volatile unsigned short *) 0xaaa=0xaa;
*(volatile unsigned short *) 0x554=0x55;
*(volatile unsigned short *) 0xaaa=0xa0;
*(volatile unsigned short *) flash_p=0xffff; //写数据
flash_p++;
}
mx29lv320b command definitions
program(word): first bus--555(add)aa(data),second bus--2aa(add)55(data),third--555(add)a0(data),fourh-- pa pd
每次循环结束,倒是看到数据都变成0xffff,但一复位,数据怎么又变成以前的数了,?????
wp/acc是悬空的啊
明明看见memory里都是0xffff,打开flashpgm ‘target memory’察看也是,在axd,flashpgm两边memory显示里不停按 刷新,0xffff ffff渐渐都变成0x0000 ffff。
哎 搞不懂啦
(注:用flashpgm可以读flashid,erase擦除成功,但memory内容为0x0000ffff、0xffff0000,programe提示fail)
[align=right][color=#000066][此贴子已经被作者于2006-3-24 17:28:36编辑过][/color][/align]