Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
9 years ago

SD Card for SOPC with Fat32

Hello,

I have a Cylone II board with a Micro SDCardon it. I would use a Fat32 formated Card und Quarts 9.0 SP2. Are there some IP Core forte SOPC builder to save some data (no Pictures) on this Card?

Thanks for your help.

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The "Serial Peripheral Interface (SPI)" IP can give you low level access to and SD card. However, it's got no awareness of data structure - such as FAT32. If you want to store data in such a way as to be FAT32 compliant you'll have to look at doing so in software - and quite a lot of it.

    Cheers,

    Alex
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello,

    it is not easy. My SD-Card doesn't answer.

    Can anybody help me how I can test my communication with the sd-card?

    Thanks
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Have you found this page (from the same site you had found)?

    http://elm-chan.org/docs/mmc/mmc_e.html

    Pay attention to the Initialization Procedure for SPI Mode (assuming that's how you're trying to access your SD card). Have you put your SD card into SPI mode? I won't respond until you do.

    Cheers,

    Alex