Skip to main content
6 events
when toggle format what by license comment
Jan 3, 2011 at 15:08 comment added W5VO If you're using FAT16, I believe you're limited to 2GB. I believe the SD/MMC card has an "erase blocks" function, which doesn't appear to be implemented in the MDDFS library. I used a proprietary code library for my SD card project, so I can't share any code examples. In order to find the last data, you would need to read until you found all 0's in a data record. If your data record can be all 0's, I'd advise adding in some non-zero data, or a delimiter of some sorts.
Jan 3, 2011 at 13:14 comment added PICyourBrain Also, if you write all zero's to the file. How do you keep track of where the end of your actual data is? Do you just read all the data at the beginning and find the string of zeros?
Jan 3, 2011 at 13:04 comment added PICyourBrain How long do you think it would take to write all zeros to a 4gb card? Seems like a long time. Also, do you have any code examples you could share for modifying the fswrite function to allow whole writes to whole sectors?
Dec 30, 2010 at 19:18 comment added PICyourBrain Thanks for the info. Very helpful. I'll see what I can do with it...
Dec 30, 2010 at 19:18 vote accept PICyourBrain
Dec 30, 2010 at 15:40 history answered W5VO CC BY-SA 2.5