1 menu "SPI Flash driver"
3 config SPI_FLASH_ENABLE_COUNTERS
4 bool "Enable operation counters"
7 This option enables the following APIs:
9 - spi_flash_reset_counters
10 - spi_flash_dump_counters
11 - spi_flash_get_counters
13 These APIs may be used to collect performance data for spi_flash APIs
14 and to help understand behaviour of libraries which use SPI flash.
16 config SPI_FLASH_ROM_DRIVER_PATCH
17 bool "Enable SPI flash ROM driver patched functions"
20 Enable this flag to use patched versions of SPI flash ROM driver functions.
21 This option is needed to write to flash on ESP32-D2WD, and any configuration
22 where external SPI flash is connected to non-default pins.
24 choice SPI_FLASH_WRITING_DANGEROUS_REGIONS
25 bool "Writing to dangerous flash regions"
26 default SPI_FLASH_WRITING_DANGEROUS_REGIONS_ABORTS
28 SPI flash APIs can optionally abort or return a failure code
29 if erasing or writing addresses that fall at the beginning
30 of flash (covering the bootloader and partition table) or that
31 overlap the app partition that contains the running app.
33 It is not recommended to ever write to these regions from an IDF app,
34 and this check prevents logic errors or corrupted firmware memory from
35 damaging these regions.
37 Note that this feature *does not* check calls to the esp_rom_xxx SPI flash
38 ROM functions. These functions should not be called directly from IDF
41 config SPI_FLASH_WRITING_DANGEROUS_REGIONS_ABORTS
43 config SPI_FLASH_WRITING_DANGEROUS_REGIONS_FAILS
45 config SPI_FLASH_WRITING_DANGEROUS_REGIONS_ALLOWED