4D SYSTEMS FORUM

Register New Posts
 
 
 


Reply
 
Author Comment
 
kaddrison

Registered: 30/01/10
Posts: 368
Reply with quote #1 
Using a LCD32PT and kingston uSD cards (lots of them) - just got a new patch in and some (about 75%) fail to mount - trying the checkerget

media_Init sucessful
Partitioned FAT16
Part#       type          start       length
1             06             00000081 003BA77F

Trying mount
Mount Failed
Disk probably not formatted

Any ideas - Have tested 10 of the new ones and got 2 that work - they are all kingston ones
thierry_72

Registered: 21/06/12
Posts: 120
Reply with quote #2 
quel logiciel utiliser pour formater en FAT 16
merci
thierry
which software to use to format to FAT 16
thank you
thierry
kaddrison

Registered: 30/01/10
Posts: 368
Reply with quote #3 
Have tried many - windows has always worked it the past - but tried the SD.org own today
ESPsupport

Moderator
Registered: 27/01/09
Posts: 4,251
Reply with quote #4 
Assuming they are formatted / powered / etc the same way as the last good batch the most common reason for this is that the cards are fakes. The fakes often do not support SPI mode, or seem to be 'broken' with it.

You can try the http://4d.websitetoolbox.com/post/uSD-Card-and-Display-Modules-5149940 and see what it has to say.

You can usually identify a fake by reading the cards CSD register, SGC can do this, the manufacturer ID will be invalid and/or the serial number will be blank. Of course SGC will not be able to read the CSD if it cannot read the card, so you wont be able to check all of them.

Unfortunately I have never been able to work out how to read the CSD register under windows and have not been able to find a utility that can.
ESPsupport

Moderator
Registered: 27/01/09
Posts: 4,251
Reply with quote #5 
Quote:
which software to use to format to FAT 16


When you bring up the windows gui formatter change the file system to FAT. For some reason MS decided to make FAT=FAT16
kaddrison

Registered: 30/01/10
Posts: 368
Reply with quote #6 
Hi ESPsupport

Found this page - not sure if this could be the issue 
kaddrison

Registered: 30/01/10
Posts: 368
Reply with quote #7 
Done some more testing and can get the cards to work on an arduino


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

Card type: SD2

Volume type is FAT16

Volume size (bytes): 2001403904
Volume size (Kbytes): 1954496
Volume size (Mbytes): 1908

Files found on the card (name, date and size in bytes):
WATCHKEE.GCI  2012-06-06 09:27:14 4095488
WATCHKEE.DAT  2012-06-06 09:27:14 7932


Have lots of these cards that dont work on the screen but do elsewhere -

Need help here - can send some cards for you to test if needed - got 150 screens from you lately and ordered cards locally for them. Most dont work on the screen but do on the Arduino so SPI works on them
ESPsupport

Moderator
Registered: 27/01/09
Posts: 4,251
Reply with quote #8 
Can you point to a circuit of the Arduino you are using, just want to satisfy myself that it is not using SD mode to access the card?

Can you confirm that you are using the latest PmmC (R30)?

Can you run the uSD tester and put a photo of the results here? http://4d.websitetoolbox.com/post/uSD-Card-and-Display-Modules-5149940

Are you sure the only difference between what works and what doesn't is the uSD card? (that's probably a trick question, but anyway)

We don't have the issue you referred to in an earlier post.

Hopefully we can get to the bottom of this quickly, without the need to send some cards.
kaddrison

Registered: 30/01/10
Posts: 368
Reply with quote #9 
Hi

Using a EtherShield which is 100% SPI

Yes to R30

Attached uSD Tester of a good and a bad

and yes remove one card - replace with another reboot and wont read - replace with original and all works

All cards (or the 10 I'm testing report OK on the Arduino)

Thanks for your help

Attached Images:
Click image for larger version - Name: Bad.jpg, Views: 27, Size: 113.96 KB   Click image for larger version - Name: Good.jpg, Views: 24, Size: 116.21 KB  

ESPsupport

Moderator
Registered: 27/01/09
Posts: 4,251
Reply with quote #10 
Can you run a chkdsk against a good one and a bad one and post the results?
ESPsupport

Moderator
Registered: 27/01/09
Posts: 4,251
Reply with quote #11 

Maybe a silly question, but is the good one the one that says mount successful (and seems to have invalid partition data), or the one that says mount failed (but seems to have valid partition data)?

ESPsupport

Moderator
Registered: 27/01/09
Posts: 4,251
Reply with quote #12 
Can you dump the first couple of sectors of a goodie and a baddie using, say HxD?
kaddrison

Registered: 30/01/10
Posts: 368
Reply with quote #13 
ChkDsk good one first

Attached Images:
Click image for larger version - Name: Good_chk.jpg, Views: 22, Size: 121.76 KB  

kaddrison

Registered: 30/01/10
Posts: 368
Reply with quote #14 
yes thats correct - not sure where that came from but reformatted and still works on that one - new picture attached

Attached Images:
Click image for larger version - Name: photo.JPG, Views: 11, Size: 109.85 KB  

ESPsupport

Moderator
Registered: 27/01/09
Posts: 4,251
Reply with quote #15 
Once you've done the HxD dump(s) I suspect if you use RMPet to delete the partition table and then reformat I suspect the cards will be ok.

Need to look at the HxD dumps to figure out what the issue is/was still
kaddrison

Registered: 30/01/10
Posts: 368
Reply with quote #16 
Hope this means something to you !
good

EB 00 90 20 20 20 20 20 20 20 20 00 02 40 01 00 02 00 02 00 00 F8 EE 00 3F 00 40 00 83 00 00 00 7D 4F 3B 00 80 00 29 59 95 24 E3 4E 4F 20 4E 41 4D 45 20 20 20 20 46 41 54 31 36 20 20 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 AA F8 FF FF FF FF FF 04 00 05 00 06 00 07 00 08 00 09 00 0A 00 0B 00 0C 00 0D 00 0E 00 0F 00 10 00 11 00 12 00 13 00 14 00 15 00 16 00 17 00 18 00 19 00 1A 00 1B 00 1C 00 1D 00 1E 00 1F 00 20 00 21 00 22 00 23 00 24 00 25 00 26 00 27 00 28 00 29 00 2A 00 2B 00 2C 00 2D 00 2E 00 2F 00 30 00 31 00 32 00 33 00 34 00 35 00 36 00 37 00 38 00 39 00 3A 00 3B 00 3C 00 3D 00 3E 00 3F 00 40 00 41 00 42 00 43 00 44 00 45 00 46 00 47 00 48 00 49 00 4A 00 4B 00 4C 00 4D 00 4E 00 4F 00 50 00 51 00 52 00 53 00 54 00 55 00 56 00 57 00 58 00 59 00 5A 00 5B 00 5C 00 5D 00 5E 00 5F 00 60 00 61 00 62 00 63 00 64 00 65 00 66 00 67 00 68 00 69 00 6A 00 6B 00 6C 00 6D 00 6E 00 6F 00 70 00 71 00 72 00 73 00 74 00 75 00 76 00 77 00 78 00 79 00 7A 00 7B 00 7C 00 7D 00 7E 00 7F 00 FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

bad
EB 00 90 20 20 20 20 20 20 20 20 00 02 40 01 00 02 00 02 00 00 F8 EF 00 3F 00 40 00 81 00 00 00 7F A7 3B 00 80 00 29 F8 4E 16 90 4E 4F 20 4E 41 4D 45 20 20 20 20 46 41 54 31 36 20 20 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 AA F8 FF FF FF 03 00 04 00 05 00 06 00 07 00 08 00 09 00 0A 00 0B 00 0C 00 0D 00 0E 00 0F 00 10 00 11 00 12 00 13 00 14 00 15 00 16 00 17 00 18 00 19 00 1A 00 1B 00 1C 00 1D 00 1E 00 1F 00 20 00 21 00 22 00 23 00 24 00 25 00 26 00 27 00 28 00 29 00 2A 00 2B 00 2C 00 2D 00 2E 00 2F 00 30 00 31 00 32 00 33 00 34 00 35 00 36 00 37 00 38 00 39 00 3A 00 3B 00 3C 00 3D 00 3E 00 3F 00 40 00 41 00 42 00 43 00 44 00 45 00 46 00 47 00 48 00 49 00 4A 00 4B 00 4C 00 4D 00 4E 00 4F 00 50 00 51 00 52 00 53 00 54 00 55 00 56 00 57 00 58 00 59 00 5A 00 5B 00 5C 00 5D 00 5E 00 5F 00 60 00 61 00 62 00 63 00 64 00 65 00 66 00 67 00 68 00 69 00 6A 00 6B 00 6C 00 6D 00 6E 00 6F 00 70 00 71 00 72 00 73 00 74 00 75 00 76 00 77 00 78 00 79 00 7A 00 7B 00 7C 00 7D 00 7E 00 FF FF FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
kaddrison

Registered: 30/01/10
Posts: 368
Reply with quote #17 
have already tried RMPet without luck
ESPsupport

Moderator
Registered: 27/01/09
Posts: 4,251
Reply with quote #18 
Did you open the uSD in HxD as 'Logical' or 'Physical'? I should have said I'd like to see it as physical.
ESPsupport

Moderator
Registered: 27/01/09
Posts: 4,251
Reply with quote #19 
What size are these cards supposed to be?
kaddrison

Registered: 30/01/10
Posts: 368
Reply with quote #20 
they are all 2G cards all branded Kingston Cards

Hex attached

Attached Images:
Click image for larger version - Name: Hex.jpg, Views: 17, Size: 894.02 KB  

ESPsupport

Moderator
Registered: 27/01/09
Posts: 4,251
Reply with quote #21 
ATM I'm reasonably confident these cards are fakes. Every 2gb Kingston card I have reports 3,842,048 sectors.

One of yours is reporting 3,909,632, the other is reporting 3,887,104, and the fact that they are reporting different numbers is in itself odd. These are the sizes reported in the Partition tables, if you fire up RMPET against these cards the Capacity in sectors (top line) should be the same.

Neither of these cards have had their partitions deleted in RMPET. It is important to remove and reinsert the drive after deleting the partition as Windows caches the Partion table and simply rewrites it if you haven't removed and reinserted the card between the delete in RMPET and the format in Windows.

In the past I have simply said 'The cards are fake and do not support SPI'. But you tell me the work on Arduino, so I guess we need to look further, although I don't know that I'd trust fake cards for anything. If Arduino can dump the CID register on the cards we should be able to identify if they are fakes immediately.

Can you use RMPET to check the number of sectors, Delete the partition table, remove and reinsert the cards and then format them as FAT16 and see if they then work (If this works you need to get another 'faulty' card and dump the 'LBA First sector' as reported by RMPET, but later).

Also dump Sector 0 again once you have done this.

Thanks
ESPsupport

Moderator
Registered: 27/01/09
Posts: 4,251
Reply with quote #22 
I've dug up a couple of fake Kingston cards that can't be read on our displays. Can you point me to the source of the low level SPI init and sector read routines that Arduino uses, I'll have a go at trying to see if I can read them, somehow?
kaddrison

Registered: 30/01/10
Posts: 368
Reply with quote #23 
RMPet

Attached Images:
Click image for larger version - Name: RMP.jpg, Views: 17, Size: 101.47 KB  

kaddrison

Registered: 30/01/10
Posts: 368
Reply with quote #24 
This is the library for the SD I use

All these Cards were bought from Ebuyer.com ( one of the main online sellers in the UK) Could they be selling fake cards?

 
Attached Files:
zip adafruitSD.zip (55.51 KB, 13 views)

ESPsupport

Moderator
Registered: 27/01/09
Posts: 4,251
Reply with quote #25 
According to Kinston Ebuyer is a legit site http://www.kingston.com/en/wheretobuy

Can you try their, rather non-tecnical, fake determinator http://www.kingston.com/us/support/memory_verification

Meanwhile I will look into this code
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Powered by Website Toolbox - Create a Website Forum Hosting, Guestbook Hosting, or Website Chat Room for your website.