Mercman1811 / rallylog

Automatically exported from code.google.com/p/rallylog
0 stars 0 forks source link

Intermittant corruption in CSV files on SD card #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This is an intermittant problem that presents itself when a large amount of 
cards are read and written e.g. over the course of a day, the file may become 
corrupt.

Garbled records or at times no data in the file

Original issue reported on code.google.com by sea...@strobotics.com.au on 2 Aug 2012 at 3:02

GoogleCodeExporter commented 8 years ago
This problem appears to be a SPI bus contention between the SDFAT and the 
DOGLCD Libraries.  This is highlighted by the fact that the LCD would not work 
if the SDFAT library was initialised first.

upon further investigation of both libraries the DOGLCD library is using 
software SPI while the SDFAT library is using the hardware SPI as default.  
After enabling the software SPI in the SDFAT library all appears to be working 
together nicely.

SdFatConfig.h 
#define USE_SOFTWARE_SPI 1  

Original comment by sea...@strobotics.com.au on 2 Aug 2012 at 3:09

GoogleCodeExporter commented 8 years ago
Committed Changes

Original comment by sea...@strobotics.com.au on 2 Aug 2012 at 3:16