Skip to content

[Fix] Mis-use of cache for STM32 #8228

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

Closed
wants to merge 1 commit into from
Closed

[Fix] Mis-use of cache for STM32 #8228

wants to merge 1 commit into from

Conversation

elpekenin
Copy link

Closes #7615

Perhaps i mis-understood something on the code + i dont have any hardware to test this with, please review it throughtfully.

From my understanding:
- num_blocks: amount of memory we want to read
- count: amount of memory we can read from cache

If that is correct (bold assumption):
- < should have been <=. That is, reading the same or less amount of memory than there's in cache
- Why would we use MIN on count there at all? Since the variable isnt used later on, MIN + < is effectively just a convoluted way of checking which value was higher, i believe...

PS: I dont know which branch i should target, just went for main but let me know if i use go against another one.

@elpekenin elpekenin marked this pull request as ready for review July 29, 2023 09:14
@elpekenin elpekenin closed this by deleting the head repository Jul 29, 2023
tannewt added a commit that referenced this pull request Aug 1, 2023
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

Successfully merging this pull request may close these issues.

Uncorrected read of STM32 internal_flash cache
1 participant