Replies: 1 comment 1 reply
-
you need to use the Adafruit Fork of SdFat https://github.com/adafruit/SdFat |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
(Using the Pico core: https://github.com/earlephilhower/arduino-pico)
I cannot get the (for v2 sdfat adapted) example of "msc_sdfat" working:
https://github.com/adafruit/Adafruit_TinyUSB_Arduino/blob/master/examples/MassStorage/msc_sdfat/msc_sdfat.ino
Line 164:
sd.cacheClear();
Quits with:
In file included from C:\Users\matth\AppData\Local\Temp\.arduinoIDE-unsaved202356-5956-1sr0qn4.r76ai\msc_sdfat\msc_sdfat.ino:17: c:\Users\matth\Documents\Arduino\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) | ^~~~~~~ C:\Users\matth\AppData\Local\Temp\.arduinoIDE-unsaved202356-5956-1sr0qn4.r76ai\msc_sdfat\msc_sdfat.ino: In function 'void msc_flush_cb()': C:\Users\matth\AppData\Local\Temp\.arduinoIDE-unsaved202356-5956-1sr0qn4.r76ai\msc_sdfat\msc_sdfat.ino:164:6: error: 'SdFat' {aka 'class SdFs'} has no member named 'cacheClear' 164 | sd.cacheClear(); | ^~~~~~~~~~ exit status 1 Compilation error: 'SdFat' {aka 'class SdFs'} has no member named 'cacheClear'
So there is no cacheClear() function available.
Things I tried:
Using the newest sdfat library instead of the build in one
Editing the sdfatconfig.h file, like activating
#define USE_BLOCK_DEVICE_INTERFACE 1
So there must be a stupid thing, I forgotten...
Thank you
regards Matthias
Beta Was this translation helpful? Give feedback.
All reactions