我按照原子的NAND FLASH试验代码进行写测试,每次写512字节数据,共写1GB的数据,测试速度才3KB/s,速度太慢,请问怎么操作能提高写NAND Flash的速度?
RTC_Get_Time(&h,&m,&s,&ap);
LCD_ShowString(20,20,240,16,16,"start write time: : : ",LCD_POINT_COLOR,LCD_BACK_COLOR);
LCD_ShowxNum(20+17*8,20,h,2,16,1<<7,LCD_POINT_COLOR,LCD_BACK_COLOR);
LCD_ShowxNum(20+20*8,20,m,2,16,1<<7,LCD_POINT_COLOR,LCD_BACK_COLOR);
LCD_ShowxNum(20+23*8,20,s,2,16,1<<7,LCD_POINT_COLOR,LCD_BACK_COLOR);
for(k=0; k<2097152; k++)//每次写512字节,共需要写2097152次
{
for(j=0;j<NAND_ECC_SECTOR_SIZE;j++)
{
nand_test_buf[j]=j; //填充数据(随机的,根据t的值来确定)
}
FTL_WriteSectors(nand_test_buf,k,NAND_ECC_SECTOR_SIZE,1);//写入扇区
LCD_ShowNum(5,5,k,8,16,LCD_POINT_COLOR,LCD_BACK_COLOR);
}
RTC_Get_Time(&h,&m,&s,&ap);
LCD_ShowString(20,40,240,16,16," end write time: : : ",LCD_POINT_COLOR,LCD_BACK_COLOR);
LCD_ShowxNum(20+17*8,40,h,2,16,1<<7,LCD_POINT_COLOR,LCD_BACK_COLOR);
LCD_ShowxNum(20+20*8,40,m,2,16,1<<7,LCD_POINT_COLOR,LCD_BACK_COLOR);
LCD_ShowxNum(20+23*8,40,s,2,16,1<<7,LCD_POINT_COLOR,LCD_BACK_COLOR);
一周热门 更多>