View previous topic :: View next topic |
Author |
Message |
neochrome32
Joined: 09 Jun 2013 Posts: 153
|
SDCARD Block Reading |
Posted: Sat Aug 10, 2013 10:16 pm |
|
|
Sorry to ask, can't get a straight answer or I'm not getting it.
Looking for the CMD command that helps tell me if an SDCARD is in 32BIT addressing mode...
addr 0 is sector 0, addr 512 is sector 1, addr 1024 sector 2......
I found some of the cards are
addr 0 is sector 0, addr 1 is sector 1....
I know there is a SET BLOCK size somewhere (and that works ok)
I have a few 2gig, and 8 SDHC (clearly marked) but i can't figure out when i need to manually use
addr = address <<9
or not bother?
Can someone point me in the right direction or a direct answer?
Greatly appreciated... thanks |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19552
|
|
Posted: Sun Aug 11, 2013 1:11 am |
|
|
CMD 8, then CMD 58.
A basic SD card won't respond to CMD8.
Read section 4.3, of the SD card physical layer spec (V2).
Then CMD58 reads the memory OCR. Bit 6 of the first byte of this specifies SDHC.
Best Wishes |
|
|
neochrome32
Joined: 09 Jun 2013 Posts: 153
|
|
Posted: Sun Aug 11, 2013 2:12 am |
|
|
LOVE YOU!!!!! thank you...
gonna take a peak at this now...
been looking at V3 specs..
must have missed it |
|
|
|