esp-idf/components/spi_flash/include
Angus Gratton fb340940d3 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-03 00:17:27 +00:00
..
esp_flash_internal.h esp_flash: fix the coredump issue 2019-09-14 17:01:36 +08:00
esp_flash_spi_init.h Added Cpp compatibility for components/spi_flash/include/esp_flash_spi_init.h 2019-11-05 14:52:57 +01:00
esp_flash.h spi_flash: Fix over-allocation and OOM crash when reading from SPI flash to PSRAM buffers 2020-03-03 00:17:27 +00: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 Merge branch 'master' into feature/esp32s2beta_merge 2019-09-16 16:18:48 +10:00
memspi_host_driver.h ble_mesh_wifi_coexist example: Disable Wi-Fi RX IRAM optimisation 2019-11-28 09:20:00 +08:00
spi_flash_chip_driver.h esp_flash: fix set qe bit and write command issues 2019-10-14 17:25:58 +08:00
spi_flash_chip_gd.h esp_flash: fix the quad issue for some GD flash chips 2019-10-14 17:25:59 +08:00
spi_flash_chip_generic.h esp_flash: fix set qe bit and write command issues 2019-10-14 17:25:58 +08:00
spi_flash_chip_issi.h spi_flash: support working on differnt buses and frequency 2019-06-18 06:32:52 +00:00