esp-idf/components/spi_flash/include
Angus Gratton af4c6ac0f3 spi_flash: Fix over-allocation and OOM crash when reading from SPI flash 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 https://github.com/espressif/esp-idf/issues/4769

Also reported on forum: https://esp32.com/viewtopic.php?f=13&t=14304&p=55972
2020-03-05 17:11:26 +11:00
..
esp_flash.h
esp_flash_internal.h
esp_flash_spi_init.h
esp_partition.h
esp_spi_flash.h
memspi_host_driver.h
spi_flash_chip_driver.h
spi_flash_chip_gd.h
spi_flash_chip_generic.h
spi_flash_chip_issi.h