Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FatFS and FatFSUSB - Wear-Leveled FTL based FAT filesystem for onboard flash #2028

Merged
merged 21 commits into from
Apr 19, 2024

Conversation

earlephilhower
Copy link
Owner

Adds a FatFS filesystem using an embedded static wear-leveling based FTL to preserve flash life. Presents the same interface as LittleFS and SDFS.

Adds a simple way to export onboard FTL to a host allowing drag-and-drop file read/update from the PC, with examples.

The FatFS library defines commonly used names like WORD which could conflict
with user code otherwise.
Allow using FAT filesystem with onboard flash in a safer, wear-leveled
way and to export the onboard flash to the host as a USB drive for easy
data transfer.
@earlephilhower
Copy link
Owner Author

Differs from #1731 by supporting 512b sectors (the FTL makes this easy w/o rewrites required) and the base Arduino File class infrastructure, not the ChaN API.

@earlephilhower earlephilhower merged commit 074b952 into master Apr 19, 2024
13 checks passed
@earlephilhower earlephilhower deleted the fatfs branch April 19, 2024 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant