This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
这是我的DDR2的程序,FLASH用的八位FLASH 是不是每次只能写八位?DDR2开的是16位的但是也是只能写8位,初始地址0XE0000000,可以在VIEW MEMORY直接修改值,是不是意味着已经初始化成功?请教大家
你定义的指针是char型,不是8位是那又该是多少呢?
你自己上面对寄存器的访问定义是 #define DMCSTAT ( *(int*)(0x78000004)),就不会比较为什么不同吗?
void test_ddr2()
{
flash_ptr=(unsigned char *)ddr2_base;
for(i=0;i<10;i++)
{
write_ddr2(flash_ptr++,i);
}
flash_ptr=(unsigned char *)ddr2_base;
for(i=0;i<10;i++)
{
read_data[i]=read_ddr2(flash_ptr++);
if(read_data[i]!=i)
{
errnum++;
}
}
printf("The error number of test is %d(word)\n",errnum);