Skip to main content
antonius
Associate III
February 11, 2016
Question

8Gb SDcard with SPI ?

  • February 11, 2016
  • 4 replies
  • 780 views
Posted on February 12, 2016 at 00:40

Guys,

Can I use 8Gb with FATFS and SPI ? Or I need to use 1Gb ?

Thanks
    This topic has been closed for replies.

    4 replies

    mark239955_stm1
    Visitor II
    February 12, 2016
    Posted on February 12, 2016 at 03:18

    8GB should work with SPI.  It will be a high capacity card (SDHC) so some of the behaviour and functionality is a bit different compared to a standard capacity card (SDSC).  It's all reasonably well documented.

    Tesla DeLorean
    Guru
    February 12, 2016
    Posted on February 12, 2016 at 03:44

    FATFS can work with a very board range of media and capacities. It is dependent on a functional Block IO system. Therefore it is critically important that your SPI SD/SDHC layer actually works properly. You really can't debug the SPI layer through the FATFS one. So if you complain about not being able to open a file, you are looking at the problem incorrectly. I believe I've explained this before.

    Yes, it is possible to use FATFS with SPI attached 8GB, 16GB and 32GB SDHC cards. The speed is unlikely to be impressive, most rational designs use 4-bit SDIO.

    The ST supplied SD/SPI libraries, I've seen, do not support SDHC cards.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    antonius
    antoniusAuthor
    Associate III
    February 12, 2016
    Posted on February 12, 2016 at 05:59

    So I can't use examples from ST with 8GB SD card...?

    Is that what you're trying to tell ?

    Thanks

    Tesla DeLorean
    Guru
    February 12, 2016
    Posted on February 12, 2016 at 16:02

    So I can't use examples from ST with 8GB SD card...?  Is that what you're trying to tell ?

    Correct, I don't believe ST's examples using SPI work for cards above 2GB. This is an issue with the examples, not an intrinsic limitation of the hardware or interface.

    Can we please stop opening and abandoning threads on this topic area?

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..