gallegojm / Arduino-Ftp-Server

Ftp server for Arduino Due and Ethernet Shield or WIZ820io
40 stars 25 forks source link

Teensy 3.6 #1

Open qniens opened 5 years ago

qniens commented 5 years ago

Hello, Your library looks very promising. Only it doesn't work on a Teensy 3.6. This is because it needs to use the SdFatSdioEX module from SdFat. I cannot find in your code where you initialize the SdFat library. Can you point my in the right direction please where to look?

madsci1016 commented 5 years ago

I have this working on a 3.5.

Change FatLib.h to use FAT_SDFAT #define FAT_USE FAT_SDFAT //#define FAT_USE FAT_FATFS //#define FAT_USE FAT_SPIFFS

Change ExtSdFat.h to use the SDIOEX parent class, line 15 should be: class ExtSdFat : public SdFatSdioEX

And then in the demo sketch, change the FAT_FS begin (line 87) function to FAT_FS.begin()

And then it should work. I believe those are all the changes I had to make. Transfer Speed is slow though, <1MB/s right now.