What are the right steps needed to be able to read FAT drives on Teensy 4.1, using USBHost_t36?
I found this 2019 thread on USB mass storage driver experiments:
https://forum.pjrc.com/threads/55821-USBHost_t36-USB-Mass-Storage-Driver-Experiments
As far as I can tell, this is the work that became the MassStorageDriver.cpp code in the USBHost_t36 library. Is that correct?
https://github.com/PaulStoffregen/USBHost_t36/blob/master/MassStorageDriver.cpp
That code does not include a FAT filesystem. From the above thread, it sounds like I need the ELM-Chan FatFS library for that.
http://elm-chan.org/fsw/ff/00index_e.html
However, I'm not sure how to get that library working with MassStorageDriver, without reinventing the wheel.
The code in the uSDFS GitHub repo seems to be targeted at reading an SD card, and I assume it's based on a version of the mass storage code from before MassStorageDriver.cpp was incorporated into USBHost_t36.
https://github.com/WMXZ-EU/uSDFS
Any help would be greatly appreciated!
I found this 2019 thread on USB mass storage driver experiments:
https://forum.pjrc.com/threads/55821-USBHost_t36-USB-Mass-Storage-Driver-Experiments
As far as I can tell, this is the work that became the MassStorageDriver.cpp code in the USBHost_t36 library. Is that correct?
https://github.com/PaulStoffregen/USBHost_t36/blob/master/MassStorageDriver.cpp
That code does not include a FAT filesystem. From the above thread, it sounds like I need the ELM-Chan FatFS library for that.
http://elm-chan.org/fsw/ff/00index_e.html
However, I'm not sure how to get that library working with MassStorageDriver, without reinventing the wheel.
The code in the uSDFS GitHub repo seems to be targeted at reading an SD card, and I assume it's based on a version of the mass storage code from before MassStorageDriver.cpp was incorporated into USBHost_t36.
https://github.com/WMXZ-EU/uSDFS
Any help would be greatly appreciated!