Skip to content

espflash: Reduce the memory fragmentation during flash write. #654

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

robert-hh
Copy link
Contributor

espflash used to implicitely allocate four times per write the ~4k buffer for the data. That caused boards with smaller memory to fail due to memory fragmentation. This change reduces the allocation to once per block.

espflash used to implicitely allocate four times per write the ~4k
buffer for the data. That caused devices with smaller memory to fail
due to memory fragmentation. This change reduces it to once per block.

Signed-off-by: robert-hh <robert@hammelrath.com>
@robert-hh robert-hh force-pushed the drop_fragmentation branch from 5a6bc77 to a834485 Compare April 25, 2025 12:12
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.

1 participant