SD Card init failed


i'm trying read file text file on sd card.
i'm using sd shield work.


first of all,i tried run example program on sd library.when run cardinfo program gives card type
but,when program trying read volume,it failed.sometime done.but,lot of time failed.
this cord of cardinfo program failed.
code: [select]
  // try open 'volume'/'partition' - should fat16 or fat32
  if (!volume.init(card)) {
    serial.println("could not find fat16/fat32 partition.\nmake sure you've formatted card");
    return;
  }


sd card formatted correctly using windows 7 either fat16 or fat32.but,program gives same problem.
i have used pin10 of arduino uno spi cs pin.when use pin4 output same.
also change shield.
what problem in work?actually there no work  :(

quote
sd card formatted correctly using windows 7 either fat16 or fat32
it not formatted correctly. go storage section, should have been posted, , read sticky @ top of forum.


Arduino Forum > Using Arduino > Programming Questions > SD Card init failed


arduino

Comments