I'm using an SD card on SPI for data storage on FAT for a data logging and capturing application.
Battery life is important in this application, so I've already implemented sector buffering in FAT (i.e. cache last FAT, directory and write blocks), and data buffering in the application (i.e. cache data in sram until sector_size multiple before writing out to FAT).
The next challenge is to improve power efficiency by sleeping or turning off both the SPI peripheral block and the SD card between write outs.
Question is: looking at SD/MMC specs, there's no granular way to power save, by the looks of it, the only choice for me is to send a CMD0 to go back to idle state, then on recovery, go through CMD1 initialisation.
Does this sound right, has anyone else tackled this problem, comments, suggestions, hints, etc?
Thanks!