Sorry, but that might be a little bit too much work. I am not sure whether the PSoC4 is large enough to handle that, especially since you are about to do something more as just to connect an SD-card.
There is a library from segger (don't know the price) that is used and licenced for PSoc5s using an SPI interface. I would suggest to search for other solutions using google. search for "chan fat library "
For PSoC4 it seems there is only one library:
PSoC 4 Pioneer Kit Community Project#050 – SD Card Example
Read more here: SPI TFT Color LCD240x320 +SD
I only have 3 projects for PSoC4:
and the one that I sent you at mail.
Thank Bob and pavloven. I have reduced the number of files stored in the memory card. My file is image.raw and it have about 1.2Gb, I save my file in sd card 2G. My file have about 10000 file name, but it generates an error. when I read some file is ok but when I read a few final file name near file 10000. It is not run. Please tell me how to config number file read in SDcard.c?
I have not worked with so many files.
You may need help from Kabron message here: http://www.cypress.com/?app=forum&id=4749&rID=91643