SDCard

05 May 2010

Has anyone modified the SDCard code to work similar to the local file system?  The local file system is fine but I need something that works without the "magic" part of the board. It seems like some modification of the sectoring would accomplish this. Something that may require us to wire up a seperate at45db chip in place of the SD card would be fine.

regards;

05 May 2010

It already works with fopen/fwrite and friends. Here's the sample program:

SDFileSystem sd(p11, p12, p13, p27, "sd");

int main() {
    printf("Hello World!\n");   

    FILE *fp = fopen("/sd/sdtest.txt", "w");
    if(fp == NULL) {
        error("Could not open file for write\n");
    }
    fprintf(fp, "Hello fun SD Card World!");
    fclose(fp); 

    printf("Goodbye World!\n");
}   
Or did you mean something else?

06 May 2010

So you are saying that this will work on a production type board without the "magic" chip. It seems like when I researched it a while back, the at45db local chip is under control of the "magic" chip.

06 May 2010

The SD Card FS uses only SPI and two I/Os... there is no "magic" there;). The filesystem implemented in the library does not need specific hardware, so I don't see why you would need some external flash ic.

06 May 2010

Take a look at SDCards!

Hopefully that'll give you some ideas!