mcuboot icon indicating copy to clipboard operation
mcuboot copied to clipboard

Flash API simplification

Open d3zd3z opened this issue 2 years ago • 3 comments

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 avatar Sep 28 '23 17:09 d3zd3z

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

de-nordic avatar Mar 01 '24 16:03 de-nordic