1

I have a 16GB SD card which is formated with FAT32. I'm trying to run the example codes presented for SD in Arduino. The SD card is inserted in the data logging shield and the CS pin in this shield is connected to pin 10. I first tried the Cardinfo example and this is the result: Serial Output of Cardinfo

The SD card is not empty, there exist a few files in it but this example was unable to show this files. I then tried the example ReadWrite and the code freezes on line SD.begin(10). I have no Idea where this problem is coming from.

2
  • try the card without files on it
    – Juraj
    Sep 19 '19 at 11:17
  • I tried this, it doesn't work. The Cardinfo example can detect it but can't read the system file. The ReadWrite example freezes on SD.begin() line.
    – Masoud
    Sep 19 '19 at 14:38
0

I had the same problem when I used a big SD card, maybe because some cards have a more modern format.

If you have smaller / older cards, try them and see if those work; than you rule out it is not a circuit/connection problem.

5
  • It is difficult to find an SD with lower capacities. But I search maybe that is the problem.
    – Masoud
    Sep 19 '19 at 14:40
  • I think I had that problem about 2 years ago too when I tried a bigger SD card. Sep 19 '19 at 14:44
  • 1
    I found another SD card with 16GB capacity, but fortunately, it worked!
    – Masoud
    Sep 19 '19 at 15:16
  • Good to hear your problem is solved ... maybe the smaller SD card I tried has the same properties as your working card ... still wondering what the exact specifications should be.. But glad you found one that worked. Sep 19 '19 at 15:31
  • Thanks for you help, I appreciate it.
    – Masoud
    Sep 21 '19 at 7:20
1

I found another SD with 16GB capacity, and fortunately it worked. So the problem was because of the SD but I don't know what was the exact problem. I post the photo of this SD cards.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.