SD card - "invalid command" responses

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have a product that uses SD cards in SPI mode. It's been trouble-free up until now, but I found an SD card that doesn't work. This is a cheapo 2G card, not HD, brand name "Centon". It accepts CMD8 properly, but then it gives an "invalid command" response to ACMD41. If I step it past that point, I find it also gives an "invalid command" response to CMD9, READ_CSD. Without that info the card setup can't be continued any further.

Thinking this may be just a cheap Chinese anomaly, I went out and bought every different kind of SD card I could find, about 10 of them. Most work ok but I found another, an 8G HG card brand name "Adata", that behaves exactly the same way, invalid command to ACMD41 and CMD9. Yet both these cards work ok in non-SPI mode using a standard Windows USB card reader. The only thing I noticed is that both took a second or so longer than usual to come up.

I have the full SD specs, version 3.00 draft 1 2009, and nowhere in its 3 volumes and 700 pages is there any mention of how this situation can arise or what to do about it. In fact, the docs say that an "invalid command" response to ACMD41 means "Not SD Memory Card" (fig 7.2, vol 1 page 167). I wonder whether I'm just doing something stupid, or whether there are a few cards out there that don't fully comply with the SD specifications.

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Are you going slowly enough during the 80 clocks?

At ElmChan, some of the performance tables showed a bigger differnce in speed between cards than I thought there would be.

Lee

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I think so, because it accepts the CMD0 and CMD8 and responds correctly (including the check fields). But I'll try a slower initial clock and see.

All the brand-name cards I've tried work (Sandisk, Sony, Kingston, Winbond etc), but these companies are members of the SD Consortium. It's the two no-names that don't work. Centon is marked "Made in China", Adata says "Taiwan". Hence my suspicions.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

After considerably more testing, I'm now quite sure that these "SD" cards don't support SPI mode. So caveat emptor.

Every BRANDED SD card I tried works just fine.