OVMS3-idf/components/spi_flash/test
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
..
CMakeLists.txt spi_flash tests: Fix exclusion of new API tests in legacy mode 2019-12-11 15:57:49 +11:00
component.mk flash_ops: fix spi_flash_read with source buffer not from internal memory and size < 16 2019-10-19 15:00:00 +08:00
test_cache_disabled.c spi_flash: support working on differnt buses and frequency 2019-06-18 06:32:52 +00:00
test_esp_flash.c spi_flash: Fix over-allocation and OOM crash when reading from SPI flash to PSRAM buffers 2020-03-05 17:11:26 +11:00
test_flash_encryption.c esp_flash: add support for encrypted read and write 2019-09-16 17:10:08 +08:00
test_large_flash_writes.c spi_flash: support working on differnt buses and frequency 2019-06-18 06:32:52 +00:00
test_mmap.c spi_flash: fix mmap unit tests for flash encryption 2019-09-10 17:20:19 +02:00
test_out_of_bounds_write.c spi_flash: support working on differnt buses and frequency 2019-06-18 06:32:52 +00:00
test_partition_ext.c spi_flash: support for partitions in external flash 2019-07-02 10:26:06 +02:00
test_partitions.c spi_flash: support working on differnt buses and frequency 2019-06-18 06:32:52 +00:00
test_read_write.c flash_ops: fix spi_flash_read with source buffer not from internal memory and size < 16 2019-10-19 15:00:00 +08:00
test_spi_flash.c spi_flash: support working on differnt buses and frequency 2019-06-18 06:32:52 +00:00