I am using Arduino Uno r3 and SD.
In sysArduinoUNO.h on line 29 I typed CHIP_SELECT = 10;
Avil has returned the error "init code".
I tested the Arduino and SD card with the SD program of SparkFun Electronics
** SD - a slightly more friendly wrapper for sdfatlib **
Below the printout of this program, works perfectly on chip_select 4, 8, 10.
Initializing SD card...Wiring is correct and a card is present.
Card type: SDHC
Volume type is FAT16
Volume size (bytes): 1986756608
Volume size (Kbytes): 1940192
Volume size (Mbytes): 1894
Files found on the card (name, date and size in bytes):
CAT 2017-05-30 12:10:58 163
CP 2017-05-30 12:10:58 542
DIOR 2017-05-30 12:10:58 161
DIOW 2017-05-30 12:10:58 190
EDITL.AV 2017-05-30 12:10:58 1666
ERRDESC 2017-05-30 12:10:58 2526
FREC 2017-05-30 12:10:58 247
FREE 2017-05-30 12:10:58 139
GETPM 2017-05-30 12:10:58 161
LS 2017-05-30 12:10:58 136
MAHOWTO 2017-05-30 12:10:58 413
MEADEMO.AV 2017-05-30 12:10:58 556
Where to look for a problem, maybe turning on the debug feature will show the problem.
Any program from FAT16 directory does not work
error code is
"read begin failed
fat16info:
SD error
ErrorCode: 2
ErrorData: 1 "