Skip to content

Flash driver interface #589

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Copper280z
Copy link
Contributor

Here's the start of a driver interface for flash memory, modeled roughly on the datagram device. Right now I'm implementing it as erasing/writing sectors only, and reading at an arbitrary offset.

I'm open to some bikeshedding on this, I think it mostly does what I was after when I wrote it, but it's definitely incomplete from a library perspective.

@tact1m4n3
Copy link
Collaborator

tact1m4n3 commented Jun 16, 2025

Perhaps we can put more specific interfaces not under base but under a flash namespace (in this case)?

@Copper280z
Copy link
Contributor Author

Looks like the rebase fixed the linter errors.

Perhaps we can put more specific interfaces not under base but under a flash namespace (in this case)?

I don't have a strong opinion about location in the tree, but I'm also not sure what level of abstraction is appropriate. It's labeled "flash" right now, and the main goal when writing it was a basic, consistent interface to MCU internal flash since I was working on a bootloader, but it could really represent just about any nonvolatile memory.

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.

2 participants