Comments (3)
I am no longer adding custom drivers. There are now hundreds of "Arduino like boards".
SdFat version 2.x probably will fail with a compile error for LGT8F328P if USE_STANDARD_SPI_LIBRARY is zero.
from sdfat-beta.
I don't have this hardware so you must solve this problem.
from sdfat-beta.
As per (dbuezas/lgt8fx#24)
The SPI of LGT8F328P has more features than ATmega328P SPI. One of these features is 4 byte input and 4 byte output buffer. (Translated databook v1.0.5 page 195: -Input/output both have 4 buffer register.) If your SD card library not handling this buffer, SPI will not work as expected. Maybe your SD card library could use the SPI library from this lgt8f package.
But if your SD card library use hardware SPI, it won't work.
For SdFat v1.x (I haven't played with the 2.x series), In SdFarConfig.h (Arduino/libraries/sdfat), set:
#define USE_STANDARD_SPI_LIBRARY 1
As per the comments:
* If the symbol USE_STANDARD_SPI_LIBRARY is zero, an optimized custom SPI
* driver is used if it exists. If the symbol USE_STANDARD_SPI_LIBRARY is
* one, the standard Arduino SPI.h library is used with SPI. If the symbol
* USE_STANDARD_SPI_LIBRARY is two, the SPI port can be selected with the
* constructors SdFat(SPIClass* spiPort) and SdFatEX(SPIClass* spiPort).
... works great then. Software SPI also works (see the rest of the comments and examples included w/SdFat)
from sdfat-beta.
Related Issues (20)
- hosting the documentation on a github.io page HOT 2
- SD card error with beta version HOT 7
- .h files in separate directories not found HOT 1
- PlatformIO compatibility HOT 1
- ESP32, Multiple cards, and Software Serial questions HOT 13
- SPI access to external SD Card other than normal SPI Pins (not soft spi) HOT 10
- lfnGetName might not properly null terminate callerstring HOT 7
- Moving cursor position with O_APPEND HOT 1
- Support for Multiple Partitions HOT 2
- FsVolume support partition? Also maybe memory leaks HOT 9
- Maybe support __has_include for configuration for sketch or library override of configuration. HOT 5
- Warning "'next' may be used uninitialized in this function" HOT 3
- Conflict between SdFat-beta library and USBFat library
- cannot open File with UTF-8 Name HOT 1
- Any attempt to have Web SD file Downloader
- ESP32 check sd format HOT 6
- SD Card hot swap HOT 1
- 'SdFat {aka class SdFs}' has no member named 'vwd' HOT 7
- SDIO multi-sector read timings HOT 2
- Some SDCard Samples work others not ,SdFat Lib HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdfat-beta.