|
Hello everybody I am trying to store 1000 bytes on SDCard using the following code : //*********************************************** for(k=0;k<512;k++) { MMCBuffer[k]=1; } Sector_No=1; for(k=0;k<1000;k++) { error = SD_WriteBlock(&sdDrv, Sector_No, 1, MMCBuffer); Sector_No++ } //*********************************************** till here everything is fine and I have tested that data is written successfully. but when I try to read this data back using the following code for(k=0;k<1000;k++) { error = SD_ReadBlock(&sdDrv,k, 1, MMCBuffer);
} I get the following error:
-E- Failed to send Command(1) ------------------------------------------------------------------ It means that I can write sequentially in SD_Card but Can't read sequentially from it!!!! I am using ATMEL example code's in KEIL All suggestion and recommendation are welcommed. Regards Hamid Reza
|