-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spi_flash: added programming guide for ESP-IDF vs ESP-ROM flash driver
- Loading branch information
Showing
6 changed files
with
75 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
docs/en/api-reference/peripherals/spi_flash/spi_flash_idf_vs_rom.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
SPI Flash API ESP-IDF version vs Chip-ROM version | ||
================================================= | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
There is a set of SPI Flash drivers in Chip-ROM which you can use by enabling :ref:`CONFIG_SPI_FLASH_ROM_IMPL`. Most of the ESP-IDF SPI Flash driver code are in internal RAM, therefore enabling this option will free some internal RAM usage. Note 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 | ||
------------------------------------------------ | ||
|
||
.. list:: | ||
|
||
- Octal Flash chip support. See :ref:`oct-flash-doc` for details. | ||
- 32-bit-address support for GD25Q256. See :ref:`32-bit-flash-doc` for details. | ||
- TH Flash chip support. | ||
- Kconfig option :ref:`CONFIG_SPI_FLASH_CHECK_ERASE_TIMEOUT_DISABLED`. | ||
- :ref:`CONFIG_SPI_FLASH_VERIFY_WRITE`, enabling this option helps you detect bad writing. | ||
- :ref:`CONFIG_SPI_FLASH_LOG_FAILED_WRITE`, enabling this option will print the bad writing. | ||
- :ref:`CONFIG_SPI_FLASH_WARN_SETTING_ZERO_TO_ONE`, enabling this option will check if you're writing zero to one. | ||
:esp32h2 or esp32c6: - Flash MMAP driver isn't ready in Chip-ROM. | ||
|
||
|
||
Bugfixes Introduced in ESP-IDF but not in Chip-ROM | ||
-------------------------------------------------- | ||
|
||
.. list:: | ||
|
||
- Detected Flash physical size correctly, for larger than 256MBit Flash chips. (Commit ID: b4964279d44f73cce7cfd5cf684567fbdfd6fd9e) | ||
:esp32c3: - Improved SPI1 cs setup timing, otherwise issue may happen on ZB32Q128. (Commit ID: 08f1bbe0c75382f1702e40c941e93314285105d4) | ||
:esp32s3: - Fixed issue that 4-line Flash encryption cannot work normally when 8-line PSRAM enabled. (Commit ID: 683d92bc884e0f2a7eebea40a551cf05f0c28256) | ||
:esp32s2: - Fixed issue that only 4MB virtual address ranges can be mapped to read-only data on Flash. | ||
:esp32s3: - Fixed issue that only 128KB virtual address ranges can be mapped to instructions on Flash. | ||
:esp32s3: - Fixed issue that only 16MB virtual address ranges can be mapped to read-only data on Flash. | ||
:esp32c3: - Fixed issue that only 128KB virtual address ranges can be mapped to instructions on Flash. | ||
:esp32c2: - Fixed issue that only at most 128KB virtual address ranges can be mapped to instructions on Flash. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
docs/zh_CN/api-reference/peripherals/spi_flash/spi_flash_idf_vs_rom.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.. include:: /../en/api-reference/peripherals/spi_flash/spi_flash_idf_vs_rom.rst |