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

Erase value on nor flash #35

Open
rmja opened this issue Apr 4, 2023 · 2 comments
Open

Erase value on nor flash #35

rmja opened this issue Apr 4, 2023 · 2 comments

Comments

@rmja
Copy link
Contributor

rmja commented Apr 4, 2023

It would be really useful if the erase value of a flash was exposed on the NorFlash trait(s). Maybe with a default of 0xFF, something like:

trait NorFlash {
    ...
    const ERASE_VALUE: u8 = 0xFF;
}
katyo added a commit to katyo/embedded-storage that referenced this issue May 26, 2023
@chrysn
Copy link

chrysn commented Oct 22, 2023

This is part oft the larger discussion at #23. That one has stalled, maybe your fresh pair of eyes could help get that unstuck.

@kingofpayne
Copy link

I also believe that would be a good feature.
This would allow embassy-boot to be compatible with more devices (it currently fails on STM32L0 for instance).
As the comment says, they expect such a feature in https://github.com/embassy-rs/embassy/blob/3d6a270f30c45eaf394c8eb8bf182dd1a7ec2d7b/embassy-boot/src/lib.rs#L17

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

No branches or pull requests

3 participants