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.87k stars 6.62k forks source link

Flash API - `flash_page_foreach` could take range of pages #60986

Open savvn001 opened 1 year ago

savvn001 commented 1 year ago

Hi,

It would be great if the flash driver API function flash_page_foreach accepted arguments to specify a range of pages instead of just iterating over all pages in a flash device.

I'm writing a custom flash driver to work with the flash API and this chip supports a 'burst read' type function to improve read throughput when reading consecutive sequential pages. I'm sure maybe a lot of flash chips might support this function? Sometimes we don't want to iterate over the entire flash but rather an area of pages.

Or alternatively just have a separate function flash_page_foreach_range or something maybe.

zephyrbot commented 9 months ago

Hi @de-nordic,

This issue, marked as an Enhancement, was opened a while ago and did not get any traction. It was just assigned to you based on the labels. If you don't consider yourself the right person to address this issue, please re-assing it to the right person.

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.

@savvn001 you are also encouraged to help moving this issue forward by providing additional information and confirming this request/issue is still relevant to you.

Thanks!