Go Down

Topic: Micro SD - vol.init failed, Cardsize = 0.0 (Read 28 times) previous topic - next topic

Comiter

Hi,
I'm trying to get the SdFat library work with a micro SD card (4GB) together with a Micro SD card purchased on eBay of the following type: http://item.taobao.com/item.htm?spm=a1z10.1.w4004-8438023200.10.iGcptA&id=19306030373

The shield uses 74VHC125MCT level shifter.

When I run the sketch SdInfo I get the following output:

type any character to start

init time: 3 ms

Card type: SDHC

Manufacturer ID: 0X1
OEM ID:
Product: 
Version: 0.0

Serial number: 0X9808C018

Manufacturing date: 0/2008


cardSize: 0.00 MB (MB = 1,000,000 bytes)

flashEraseSize: 64 blocks

eraseSingleBlock: false


SD Partition Table

part,boot,type,start,length

1,0X0,0X1,0,1048576

2,0X0,0X0,0,0

3,0X0,0X0,0,0

4,0X0,0X0,0,0



vol.init failed


I've used SdFat library with other shields using normal (not micro) SD cards without problems before.

Any suggestions to why it fails? I know it's quite old (says manufactured 2008). Is it because of lack of support for erasing single blocks?

Edit: I've formatted the card with SD Formatter utility, and it works fine under windows/linux.

Best Regards
Comiter

fat16lib

#1
Oct 22, 2014, 11:59 pm Last Edit: Today at 12:01 am by fat16lib
There is a lot wrong with the info read from the SD.

The card size is zero, The partition type is 0X1 which is FAT12 and impossible for a 4 GB card.

What size does Windows and Linux report for the card?

What is the SD card brand?

I have used your ebay SD module with microSD cards and it worked fine.

Comiter

The brand of the SD card is Samsung.
Windows reports the card as 3 930 456 064 bytes (3,66GB).
Also under properties in Windows it say that the file system is FAT32.
I have created and read data files (text files) from the card in Windows.

I've tried to format it with both SD formatter and Mini Tool Partition Master, same result.
The Mini Tool reports (after formatting):

Partition Type ID: oxb
File system: FAT32
First Physical Sector: 63
Last Physical Sector: 7698431
Total Physical Sector: 3.67GB

SD Info after this formatting reports

cardSize: 0.00 MB (MB = 1,000,000 bytes)
flashEraseSize: 64 blocks
eraseSingleBlock: false

SD Partition Table
part,boot,type,start,length
1,0X0,0X1,15,1053632
2,0X0,0X0,0,0
3,0X0,0X0,0,0
4,0X0,0X0,0,0

I'll try to get hold of a new card tomorrow and see if that does the trick.

Go Up