SPI Flash API ESP-IDF Version vs Chip-ROM Version

[中文]

There is a set of SPI flash drivers in Chip-ROM which you can use by enabling CONFIG_SPI_FLASH_ROM_IMPL. Most of the ESP-IDF SPI flash driver code are in internal RAM, therefore enabling this option frees some internal RAM usage. Note that if you enable this option, this means some SPI flash driver features and bugfixes that are done in ESP-IDF might not be included in the Chip-ROM version.

Feature Supported by ESP-IDF but Not in Chip-ROM

Bugfixes Introduced in ESP-IDF but Not in Chip-ROM

  • Detected flash physical size correctly, for larger than 256 MBit flash chips. (Commit ID: b4964279d44f73cce7cfd5cf684567fbdfd6fd9e)

  • Fixed issue that 4-line flash encryption can not work normally when 8-line PSRAM enabled. (Commit ID: 683d92bc884e0f2a7eebea40a551cf05f0c28256)

  • Fixed issue that only 128 KB virtual address ranges can be mapped to instructions on flash.

  • Fixed issue that only 16 MB virtual address ranges can be mapped to read-only data on flash.