ninja2
Well-known member
I have a number of sketches I wrote for my T3.5 & T3.6 back in 2017. They all successfully read &/or wrote to the SD card using the SdFat library by grieman (which, based on my sketch comment, was a beta release) using this code snippet:
but now it won't compile in IDE 2.3.2 ...
Suggestions welcomed
What's the meaning of the inital warning about FS.h?
Looking a bit further I see greiman's SdFat-beta in GitHub. This "seems" to be the same as SdFat provided through the IDE library manager, although I'm not sure yet.
BTW it was this 2016 thread that got me onto this library: Try SdFat for Teensy 3.5/3.6
But maybe the library has changed heaps since 2017 ?? (hoping not ... )
TIA
Code:
#include <SdFat.h> // grieman's SdFat_beta, unmodified
#include <SPI.h>
SdFatSdio SD;
File inputfile; // input data file
File outputfile; // output results file
but now it won't compile in IDE 2.3.2 ...
Code:
In file included from D:\...\02 ARDUINO\SKETCHES\x_ARCHIVES\TEENSY\t3MPUsim02\t3MPUsim02.ino:27:
d:\...\02 ARDUINO\SKETCHES\libraries\SdFat\src/SdFat.h:448:2: warning: #warning File not defined because __has_include(FS.h) [-Wcpp]
448 | #warning File not defined because __has_include(FS.h)
| ^~~~~~~
D:\10 CJ base\02 ARDUINO\SKETCHES\x_ARCHIVES\TEENSY\t3MPUsim02\t3MPUsim02.ino:29:1: error: 'SdFatSdio' does not name a type
29 | SdFatSdio SD;
| ^~~~~~~~~
D:\10 CJ base\02 ARDUINO\SKETCHES\x_ARCHIVES\TEENSY\t3MPUsim02\t3MPUsim02.ino:30:1: error: 'File' does not name a type
30 | File inputfile; // input data file
| ^~~~
D:\10 CJ base\02 ARDUINO\SKETCHES\x_ARCHIVES\TEENSY\t3MPUsim02\t3MPUsim02.ino:31:1: error: 'File' does not name a type
31 | File outputfile; // output results file
Suggestions welcomed
What's the meaning of the inital warning about FS.h?
Looking a bit further I see greiman's SdFat-beta in GitHub. This "seems" to be the same as SdFat provided through the IDE library manager, although I'm not sure yet.
BTW it was this 2016 thread that got me onto this library: Try SdFat for Teensy 3.5/3.6
But maybe the library has changed heaps since 2017 ?? (hoping not ... )
TIA
Last edited: