Go Down

Topic: SD Library using too much RAM (Read 1 time) previous topic - next topic


Hi there,

I am currently trying to implement SD card functionality into my Arduino project (SPI). After looking around, I am using the SD.h library.

This library takes up 35% RAM in my project which I cannot afford. Are there any other libraries which I can use to work with the SD card which will not take up so much RAM.

P.S I only need the write function.



When you write to an SD card, the process is very slow. So, you actually write to a buffer, and when the buffer is full, it gets written to the card. Most writes then are fast, with only the occasional one that takes a relatively long time.

It is that 512 byte buffer which is using up your SRAM, and, no, you can't change the buffer size.
The art of getting good answers lies in asking good questions.


Are there other libraries such as PetitFS which you would reccomend?

Go Up