I used the FatFS http://elm-chan.org/fsw/ff/00index_e.html file system for the SD card, it is much more flexible and avoids the nasty file and directory rename issues. It will easily fit in a Mega – I think it was about 18K or less compiled.
The Arduino SD.h has a few bugs in it that have never been fixed including a really nasty size bug to do with sectors on the SD card. Causes all sorts of problems when trying to size an SD card. From: M100 <[email protected]<mailto:[email protected]>> on behalf of c646581 <[email protected]<mailto:[email protected]>> Reply-To: <[email protected]<mailto:[email protected]>> Date: Saturday, July 21, 2018 at 3:00 PM To: <[email protected]<mailto:[email protected]>> Subject: [M100] SD2TPDD Project Hello! As several of you already know, I've been working on a TPDD emulator that runs on an Arduino Mega and uses an SD card for mass storage. I've gotten the emulator to the point where I feel comfortable releasing it for testing purposes. Here is my GitHub page: https://github.com/TangentDelta/SD2TPDD<https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FTangentDelta%2FSD2TPDD&data=02%7C01%7C%7Ca9388d0753044e06a5c408d5ef557139%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636678072598617205&sdata=K5taEgJbYvF%2FkSUv1QVxBLyyYoxj6xR7dF%2BmHMfqxNY%3D&reserved=0> It's pretty limited at the moment. It doesn't support sub-directories or any of the expanded TPDD features. In the future, I hope to add more features to it! Try it out and let me know how it goes! Thanks, Jimmy.
