zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.66k stars 6.53k forks source link

flash_map: Add a flash_area_?() API for check read-only property #30587

Open nvlsianpu opened 3 years ago

nvlsianpu commented 3 years ago

Is your enhancement proposal related to a problem? Please describe. A fixed-partition might be read-only. This is not reflected in flash_area API. [edit] write/read access level for given fixed partition might be considered.

Describe the solution you'd like Mayby worth to add a flash_area API function for check that And additionally dismiss write to read only area in flash_area_write().

struct flash_area have to be extended by the read_only property field.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context problem signaled here: https://github.com/zephyrproject-rtos/zephyr/pull/30562

nvlsianpu commented 3 years ago

cc @de-nordic

nvlsianpu commented 2 years ago

Looks like this ticked might be used as start point for discussion on introduction access level for given fixed partition.

zephyrbot commented 8 months ago

Hi @nvlsianpu,

This issue, marked as an Enhancement, was opened a while ago and did not get any traction. Please confirm the issue is correctly assigned and re-assign it otherwise.

Please take a moment to review if the issue is still relevant to the project. If it is, please provide feedback and direction on how to move forward. If it is not, has already been addressed, is a duplicate, or is no longer relevant, please close it with a short comment explaining the reason.

Thanks!