OVMS3-idf/components/spi_flash/test
Angus Gratton d6026823fa 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:10:22 +11:00
..
CMakeLists.txt ble_mesh_wifi_coexist example: Disable Wi-Fi RX IRAM optimisation 2019-11-28 09:20:00 +08:00
component.mk ut: Move tests back from "esp32" subfolder 2020-01-06 17:13:53 +08:00
test_cache_disabled.c util-test: The cache and spi_flash tests passed 2019-09-09 16:59:29 +08: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:10:22 +11:00
test_flash_encryption.c spi_flash: support to verify written encrypted data 2019-10-30 05:49:50 +00: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: reenable mmap tests on esp32s2beta 2020-01-10 16:17:01 +11: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 ut: Move tests back from "esp32" subfolder 2020-01-06 17:13:53 +08:00
test_partitions.c bootloader_common: Fix esp_partition_get_sha256(), add unit tests 2019-12-30 13:47:47 +11:00
test_read_write.c ut: Move tests back from "esp32" subfolder 2020-01-06 17:13:53 +08:00
test_spi_flash.c feat(timer): refator timer group driver 2019-11-21 14:14:19 +08:00