Neil, What environment are you in PIC, Windows, Linux, ? How important is it that you don't lose any data. If on a PIC what filesystem and SD card access code are you using? -- Bob Ammerman RAm Systems -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of Neil Sent: Tuesday, October 30, 2012 3:41 PM To: Microcontroller discussion list - Public. Subject: [EE] SD card best practices? I'm writing ongoing CSV data (logging) to an SD card, and wondering if=20 there are any guidelines for when to periodically flush the data to the=20 card. Should I flush after every line of data? Or should I flush after=20 some amount that ties to block-size, etc? Is there any good doc=20 floating around the web that has good guidelines or best practices for this= ? --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .