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

Flash API simplification #1823

Open
3 tasks
d3zd3z opened this issue Sep 28, 2023 · 1 comment
Open
3 tasks

Flash API simplification #1823

d3zd3z opened this issue Sep 28, 2023 · 1 comment
Milestone

Comments

@d3zd3z
Copy link
Member

d3zd3z commented Sep 28, 2023

The current flash_area API came from the flash interface used in mynewt. We should instead have an API tailored to the information we need within mcuboot. Some things to improve:

  • Fixed sector size. Require drivers to present fixed sized sectors. Although as far as we can tell, nobody has ever used mcuboot with varying sector sizes within an area, there is a complex query API to find this out. Reduce this to a simple erase and write size query.
  • No erase assumption. Remove the erase assumption from the code. Specifically, mcuboot should never assume that erased data returns any particular value.
  • Better naming. Choose naming more appropriate for our use.
@d3zd3z d3zd3z added this to the Release 3.0.0 milestone Sep 28, 2023
@de-nordic
Copy link
Collaborator

Regarding the fixed secotor size, I think that STM32 devices may be used with OVERWRITE mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants