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_internal.h esp_flash: fix the coredump issue 2019-09-18 14:30:23 +08:00
esp_flash_spi_init.h esp_flash: fix set qe bit and write command issues 2019-11-21 12:26:14 +08:00
esp_flash.h spi_flash: Fix over-allocation and OOM crash when reading from SPI flash to PSRAM buffers 2020-03-05 17:11:26 +11:00
esp_partition.h esp_partition_erase_range(): rename parameter "start_addr" to "offset" 2019-07-08 17:29:05 +10:00
esp_spi_flash.h spi_flash: support working on differnt buses and frequency 2019-06-18 06:32:52 +00:00
memspi_host_driver.h esp_flash: fix set qe bit and write command issues 2019-11-21 12:26:14 +08:00
spi_flash_chip_driver.h esp_flash: fix set qe bit and write command issues 2019-11-21 12:26:14 +08:00
spi_flash_chip_gd.h esp_flash: fix the quad issue for some GD flash chips 2019-11-21 12:26:15 +08:00
spi_flash_chip_generic.h esp_flash: fix set qe bit and write command issues 2019-11-21 12:26:14 +08:00
spi_flash_chip_issi.h spi_flash: support working on differnt buses and frequency 2019-06-18 06:32:52 +00:00