Skip to main content
Cesar cfg
Associate III
April 3, 2013
Question

STM32 sd card high capacity

  • April 3, 2013
  • 4 replies
  • 900 views
Posted on April 03, 2013 at 10:38

Hi everybody

I am working with stm32 to store data into a micro sdcard (64 Mega  Bytes) and everything works fine but when i decided to work  with sdcard(4 G  Bytes) i found a problem in sdcard initialization.

#no-crystal-ball
    This topic has been closed for replies.

    4 replies

    Andrew Neil
    Super User
    April 3, 2013
    Posted on April 03, 2013 at 11:09

    ''i found a problem in sdcard initialization''

    Well, thanks for the information!

    If you want people to give suggestions to fix this ''problem'', do you not thing that it would be necessary for them to know what this ''problem'' is, exactly?

    And what steps you have taken to debug it so far?

    http://www.catb.org/~esr/faqs/smart-questions.html#beprecise

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    Tesla DeLorean
    Guru
    April 3, 2013
    Posted on April 03, 2013 at 11:16

    ST supplied code has known deficiencies, like representing byte offsets with 32-bit values. I've addressed these before.

    There are some more subtle DMA issues with Ultra (SDXC) cards, and the standard format of 64GB+ cards is ExFat
    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Cesar cfg
    Cesar cfgAuthor
    Associate III
    April 3, 2013
    Posted on April 03, 2013 at 11:49

    I  use the spi to connect to my sdcard. 

    my problem is that the function MSDGetresponse return MSD_RESPONSE_FAILURE.I think that a timeout is happen. 

    Cesar cfg
    Cesar cfgAuthor
    Associate III
    April 3, 2013
    Posted on April 03, 2013 at 12:56

    Clive1 

    I think that i should change the functions MSDReadBuffer and MSDwritebuffer.Do you have any idea how i can change it.