arm: TM4C1294NCPDT
sp flash: N25Q128
follow the spi_Flash.c
1. SPIFlashSectorErase ,
2. SPIFlashFastRead
code:
for(i=0;i<4096;i++)
SPIFlashSectorErase(i*4096);
for(i=0;i<4096;i++)
{
SPIFlashFastRead(i*4096,buff,4096);
for(j=0;j>4096;j++)
if(buff[j]!=0xff)
break;
}
i found the i=128,then the buff[j] is not equal 0xff,
i donot know the reason ,would you please give some suggestions?