Skip to content

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
@robert-hh
Copy link
Contributor Author

This change was only needed for MIMXRT101x boards with the NINA firmware. Since the related PR was closed, it's not needed any more.

@robert-hh robert-hh closed this Dec 16, 2025
@dpgeorge
Copy link
Member

IMO this was a reasonable improvement, always good to reduce memory fragmentation. But I was waiting for the mimxrt WiFi integration to be finished before fully reviewing it, so I never got to it.

@robert-hh
Copy link
Contributor Author

Thank you for the feedback, and no worries.

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.

2 participants