esp-idf/components/spi_flash/test
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
..
CMakeLists.txt
component.mk ut: Move tests back from "esp32" subfolder 2020-01-06 17:13:53 +08:00
test_cache_disabled.c
test_esp_flash.c spi_flash: Fix over-allocation and OOM crash when reading from SPI flash to PSRAM buffers 2020-03-03 00:17:27 +00:00
test_flash_encryption.c
test_large_flash_writes.c spi_flash: resume unit tests for ESP32-S2 2020-02-26 11:12:08 +08:00
test_mmap.c spi_flash: resume unit tests for ESP32-S2 2020-02-26 11:12:08 +08:00
test_out_of_bounds_write.c
test_partition_ext.c spi_flash: resume unit tests for ESP32-S2 2020-02-26 11:12:08 +08:00
test_partitions.c spi_flash: resume unit tests for ESP32-S2 2020-02-26 11:12:08 +08:00
test_read_write.c spi_flash: resume unit tests for ESP32-S2 2020-02-26 11:12:08 +08:00
test_spi_flash.c global: rename esp32s2beta to esp32s2 2020-01-22 12:14:38 +08:00