Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

SD Card for SOPC with Fat32

Altera_Forum
Honored Contributor II
1,674 Views

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.
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
564 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
564 Views

Hello Alex, 

 

of course that is an good idea. Actual i start to Transfer the generic Fat from this site 

 

http://elm-chan.org/fsw/ff/00index_e.html 

 

on my NiosII. 

 

Has anybody tryed this before? 

 

Thanks 

Andreas
0 Kudos
Altera_Forum
Honored Contributor II
564 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
564 Views

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
0 Kudos
Reply