Hello, I'm looking for the same thing.
I hope I'm not hijacking the thread. If I am, please tell me.
I want to know if there's a library for FAT filesystem on an external flash storage chip or a way to just change the behavior of the current FAT filesystem libary to not work just with the SD card, but also the external flash storage chip.
And I'd like to give a hint. To spare RAM from strings, you should use PROGMEM strings and make functions for printing from Flash memory space. Usage of printf might be good, but as much as I remember, you need to disable floating point math for printf("%g"); in order to save Flash memory space too. So if you have mixed Flash and RAM strings, you can do this:
- Code: Select all
char playerName[17];
char PROGMEM someConstantString = "I like cookies";
printf_P(PSTR("Player named %s constantly says: %S"),playerName,pgm_read_ptr(someConstantString));
However, you'll need to include stdio.h, pgmspace.h and set up the stdio.h like said in a tutorial written in that same header file. Go check.