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

Add caching of flash reads #183

Open
will-v-pi opened this issue Nov 26, 2024 · 2 comments
Open

Add caching of flash reads #183

will-v-pi opened this issue Nov 26, 2024 · 2 comments
Assignees
Milestone

Comments

@will-v-pi
Copy link
Contributor

Using picotool info -a takes a while due to multiple flash reads, for the multiple scans for metadata blocks. This could be improved by caching the data read from flash in the picoboot_memory_access class, so you don't need multiple reads from the device of the same data.

@will-v-pi will-v-pi added this to the 2.2.0 milestone Nov 26, 2024
@will-v-pi will-v-pi self-assigned this Nov 26, 2024
@lurch
Copy link
Contributor

lurch commented Nov 26, 2024

Would it be worth caching OTP reads too, or are they always "single shot" as far as picotool is concerned?

@will-v-pi
Copy link
Contributor Author

Those should always be "single shot" - the OTP commands don't do any "scanning" reads as such, they just read the rows specified, so shouldn't read any rows more than once

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants