I'm trying to get SD card operation up and running, but can't.
I'm currently trying to troubleshoot with the SdInfo sketch from the latest SDFat library, the only change being that I used pin 4 (IC pin 6) instead of pin 10 for CS
I'm using an Atmega168 with Optiboot @ 3.3v and a 12Mhz crystal clock
The SD card is driven from the same 3.3v supply so there is no level shifter circuitry.
The SD card slot has an 0.1uF ceramic capacitor right next to the supply pins on the breakout board, which goes into a breadboard.
I have 10k pullups on CS and DO, as I read elsewhere it was correct to do.
The breadboard wiring from uC to SD card is no more than about 8cm.
The results with three different SD cards I have tried are as follows:
Brand New 8GB Card:
SdFat version: 20130629type any character to start
init time: 22 ms
Card type: SD2
Manufacturer ID: 0X3
OEM ID: SD
Product: SD032
Version: 8.0
Serial number: 4294967295
Manufacturing date: 2/2006cardSize: 32.10 MB (MB = 1,000,000 bytes)
flashEraseSize: 32 blocks
eraseSingleBlock: trueSD Partition Table
part,boot,type,start,length
1,0X0,0X0,0,0
2,0X0,0X0,0,0
3,0X0,0X0,0,0
4,0X0,0X0,0,0vol.init failed
Old 512MB Card:
SdFat version: 20130629type any character to start
init time: 3 ms
Card type: SD1
Manufacturer ID: 0X1D
OEM ID: AD
Product: SD
Version: 0.0
Serial number: 1728249905
Manufacturing date: 10/2004cardSize: 513.28 MB (MB = 1,000,000 bytes)
flashEraseSize: 128 blocks
eraseSingleBlock: false
read MBR failed
SD errorCode: 0X11
SD errorData: 0XFFReally old 16MB Card:
SdFat version: 20130629type any character to start
card.init failed
SD errorCode: 0XA
SD errorData: 0X1
All three cards work in the computer, of course.
Does anyone have any ideas?