can not read from sd card but initialize

I am using a sd-card reader like https://www.geeker.co.nz/accessories/catalex-micro-sd-tf-card-module.html with a due board. After some problems in wiring I think I have done it correctly now by using the SPI-pins instead of pin digital 10-13:

CS - digital 4
SCK - SCK (SPI-pins)
MOSI - MOSI (SPI-pins)
MISO - MISO (SPI-pins)
VCC - 5V (SPI-pins)
GND - GND (SPI-pins)

according to:

By the way: I have also connected an audio module:

When I run the example SD => CardInfo I get:

Initializing SD card...Wiring is correct and a card is present.

Card type: SDHC

Volume type is FAT16

Volume size (bytes): 3991404544
Volume size (Kbytes): 3897856
Volume size (Mbytes): 3806

Files found on the card (name, date and size in bytes):

No files are displayed although the are two files (test.wav and test.txt) on it.

When I run the example SD => listfiles I also get no files.

When I run the example Audio => SimpleAudioPlayer I get:

Initializing SD card... done.
error opening test.wav
  • I found in this forum to add:
pinMode(4, OUTPUT);
digitalWrite(4, HIGH);

but that did not solve the Problem.

  • I found in this forum not to use the OS formatter but the formatter from sdcard.org
    SD Memory Card Formatter for Windows/Mac | SD Association
    But that formatter uses all of the 8 GB and then the reader does not initialize.

  • I found in this forum that maybe the power supply of the USB-connection is not sufficient… But if it is insufficient it should not do anything (init, read info), right?

Using a decent wall wart is always a good idea. Although you get something, anything can happen if the supply is marginal. Have you tried writing to the SD using Arduino?

Try to re-format your SD card again with the SDFormatter.

-> Use the "Full format" command WITH the option "Formatting Size Adjustment" ON (this option is OFF by default).

This did the trick for me.