mcuboot
mcuboot copied to clipboard
Flash API simplification
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.
Regarding the fixed secotor size, I think that STM32 devices may be used with OVERWRITE mode.