I wonder if some code is available to build a file system on my STR7. I plan to use it on a SD card, driven by the SPI bus.
I know that connecting the SD card to the SPI bus is pretty straightforward, but I am puzzled when it comes to the FS... Anyone has seen some software to build the FS? Any suggestion is welcome. Regards, Tech
doesn't the sd card use 4 data pins? as far as i know only mmc is really 1 data pin serial =spi. I'm looking at this kind of things too... but there seems to be quite a lot of work ;)
The SD card uses a data IN wire, a data OUT, a clock, and a chip select.
Looking carefully at the SPI, you get Master In Slave OUT (MISO), Master Out Slave IN, (MOSI), SCLK, and /SS. (slave select) This fits perfectly with the previously enumerated signals. MISO: IN, MOSI: OUT, clock: SCLK, and CS: /SS The only remaining detail, and the biggest hurdle, is the File System. Where do I get that? This is the main issue here: we should be able to get some sample code of how to proceed with the FS, but where? I believe this could help a lot of people working with the STR7... Regards, Tech
as you can see the transfer is using 4 bits. mmc is with 1 bit interface. maybe sd works with one bit too. You would first see how you make it work with sd, filesystem is a later development problem. there are a lot of pieces of code, but it won't be easy. it's not a 2 day job.
the SD cards can be put into an SPI mode. I know this as a colleague has connected an SD card to the SPI bus. Cant help for the file system though as the SD card was memory addressed.