Hello!
Okay, I've made some magic gestures:
- Arduino Ethernet board with inserted microSD card (SanDisk, 2GB, formatted with SDFormatter)
- fat16info.pde with if (!card.init(0, 4)) {
- Result is:
Fat16 version: 20111205
FreeRam: 1261
type any character to start
card.init failed
SD error
errorCode: 1
errorData: 0
type any character to start
And next test:
- Same Arduino Ethernet board with same microSD card.
- SdInfo.pde (from sdfat16/32 library) with const uint8_t SdChipSelect = 4;
- And result is:
SdFat version: 20121203
type any character to start
init time: 12 ms
Card type: SD2
Manufacturer ID: 0X3
OEM ID: SD
Product: SU02G
Version: 8.0
Serial number: 1408082784
Manufacturing date: 6/2010
cardSize: 1977.61 MB (MB = 1,000,000 bytes)
flashEraseSize: 32 blocks
eraseSingleBlock: true
SD Partition Table
part,boot,type,start,length
1,0X0,0X6,135,3858489
2,0X0,0X0,0,0
3,0X0,0X0,0,0
4,0X0,0X0,0,0
Volume is FAT16
blocksPerCluster: 64
clusterCount: 60281
freeClusters: 60281
freeSpace: 1975.29 MB (MB = 1,000,000 bytes)
fatStartBlock: 136
fatCount: 2
blocksPerFat: 236
rootDirStart: 608
dataStartBlock: 640
type any character to start
What I'm doing wrong with fat16 library?
Btw, I tried 4 Arduino boards with same result, except one which has custom bootloader with TFTP support, here is result of fat16info.pde:
Fat16 version: 20111205
FreeRam: 1261
type any character to start
init time: 237
Manufacturer ID: 3
OEM ID: SD
Product: SU02G
Version: 8.0
Serial number: 1408082784
Manufacturing date: 6/2010
Card Size(blocks): 3862528
Partition Table:
part,boot,type,start,size
1,0,6,135,3858489
2,0,0,0,0
3,0,0,0,0
4,0,0,0,0
FAT Volume info for partition: 1
Volume is FAT16
clusterSize: 64
clusterCount: 60281
fatCount: 2
fatSize: 236
totalBlocks: 3858489
Root Directory:
name ext att size
Done
type any character to start
And same board with SdInfo.pde:
SdFat version: 20121203
type any character to start
card.init failed
SD errorCode: 0X1
SD errorData: 0X0
type any character to start
That's really odd for me
Hope you could help.
Thank you!