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 · 2 comments
Open
3 tasks

Flash API simplification #1823

d3zd3z opened this issue Sep 28, 2023 · 2 comments
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.

Copy link

This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.

@github-actions github-actions bot added the stale label Aug 29, 2024
@de-nordic de-nordic removed the stale label Aug 29, 2024
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