我现在也把重点放在USB的传输方面,
因为我在Eboot里写了个程序来测试内存,没发现有过任何问题,我写的程序放在main.c里,如下
[code] OALMSG(TRUE, (TEXT("---------------Write 40 MB TO 80100000--------.\r\n")));
pDATA = (unsigned int *)0x80100000;
memset(pDATA, 0xAA, 0X4000000); //Write 40MB to the memory from 80100000
OALMSG(TRUE, (TEXT("---------------Read-1-------.\r\n")));
pDATA = (unsigned char *)0x80100000;
for(i=0;i<0X4000000;i++)
{
rDATA = *pDATA;
if(rDATA != 0xaa)
{
OALMSG(TRUE, (TEXT("-------ERROR:addr=0x%x-data=0x%x------.\r\n"),pDATA,rDATA));
}
pDATA ++;
}
pDATA = (unsigned char *)0x84100000;
OALMSG(TRUE, (TEXT("---------------Write40 MB TO 0x84100000--------.\r\n")));
memset(pDATA, 0xBB, 0X3E00000); //Write 10MB to the memory from 80100000
OALMSG(TRUE, (TEXT("---------------Read-2-------.\r\n")));
pDATA = (unsigned char *)0x84100000;
for(i=0;i<0X3E00000;i++)
{
rDATA = *pDATA;
if(rDATA != 0xbb)
{
OALMSG(TRUE, (TEXT("-------ERROR:addr=0x%x-data=0x%x------.\r\n"),pDATA,rDATA));
}
pDATA ++;
}
OALMSG(TRUE, (TEXT("-------All check OK!!!------.\r\n")));
pDATA = (unsigned char *)0x83000000;
rDATA = 0;
rDATA = *pDATA;
OALMSG(TRUE, (TEXT("-------Addr:0x83000000=0x%x------.\r\n"),rDATA));
pDATA = (unsigned char *)0x87e30000;
rDATA = 0;
rDATA = *pDATA;
OALMSG(TRUE, (TEXT("-------Addr:0x87e30000=0x%x------.\r\n"),rDATA));