-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spi_flash: Fix over-allocation and OOM crash when reading from SPI fl…
…ash to PSRAM buffers Previously would try allocate buffer of minimum size 16KB not maximum size 16KB, causing out of memory errors for any large reads, or if less than 16KB contiguous free heap. Also, if using legacy API and internal allocation failed then implementation would abort() instead of returning the error to the caller. Added test for using large buffers in PSRAM. Closes #4769 Also reported on forum: https://esp32.com/viewtopic.php?f=13&t=14304&p=55972
- Loading branch information
1 parent
e7a3387
commit d602682
Showing
3 changed files
with
62 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters