SD card-chans fat file system

Has anyone worked with chans fat file system?
If so… He has an example with the at91sam7… Is it possible to use the same example but use the at91sam9rl64 registers?

Yes I did use it on EMX (LPC2478) so little different then the AT91SAMx. See http://www.tinyclr.com/forum/topic?id=6849

I think the AT91SAM7 example is a very good starting point to get it running on the SAM9, I think little changes are needed to make it work.

Thanks a lot :smiley: one quick question…the only files that are needed are the
ff.c.

ff.h,

diskio.h,

integer.h

Fattime.c

Fattime.h and

The sd_spi_at91.c(setup the dma n spi config)?

Another question… Will u still use the same sd card module n connect it to socket 8 of the hydra once this is done?

Another question… Will u still use the same sd card module n connect it to socket 8 of the hydra once this is done?

I have diskio.c/diskio.h ff.c/ff.h ffconf.h mci.c and rtc.c/rtc.h (which will be the same as your fattime.c/fattime.h).

For the PINS, you will have to verify that the code configures the correct PINS (those that are routed to socket 8).

Ok soo I’m guessing my sd_spi_at91.c serves the same purpose as ur mci.c… And wen I was compiling it in keil… It kept giving me errors where they had “static inline void abcd (void)” then I took the inlines out and the error didn’t come up. Will that affect the program in anyway?

Also This method uses the spi pins… (PA25,26,27-miso mosi n sck) on the hydra whereas the sd card socket uses MC_DA0-3,MC_CK and MC_CDA… Soo I’m not sure how I’m going to connect it together. How did u connect yours?