SdFat
SdFat copied to clipboard
LGT8F328P no work SDFAT
Hello, thanks for your work, I have a problem with the SDFAT library with the LGT8F328P board, it compiles correctly but does not read the sd, I have tried with a nano v3 and the code works, it is not hardware because I have tried the sd test of the reader with the SD.h library with the LGT8F328P board and the code works, any possible solution? I have tested the sdfatbeta and it still does not detect the SD Thanks
SD.h uses a 2009 version of SdFat. New versions of SdFat use optimized faster SPI.
Try editing SdFatConfig.h and at about line 124 set SPI_DRIVER_SELECT to one like this:
#define SPI_DRIVER_SELECT 1
I that doesn't work slow the SPI rate. Try the QuickStart example, it use 4 MHz like the old SdFat in SD.h.
Thanks for taking the time to help me with my problem, I did as you have told me, lower the SPI verlocity to half and change that parameter in the SdFatConfig.h file and now if it detects the SD, but it does not load well the images contained within to the tft screen, they come out totally deformed, I have tried to change parts of the image loading code but without success, I lowered the spi speed even more, the same, it is frustrating that they sell you a 99% compatible board with the nano v3 and let these things happen, thanks for your help.. Edit: the Quickstart code works perfectly