mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 20:54:32 +02:00
spi_flash: make the auto_suspend default y on C3
This commit is contained in:
committed by
Cao Sen Miao
parent
fe0c81f67c
commit
a0573f5b9f
@@ -66,6 +66,10 @@ menu "SPI Flash driver"
|
||||
If making this as "y" in your project, you will increase free IRAM.
|
||||
But you may miss out on some flash features and support for new flash chips.
|
||||
|
||||
Currently the ROM cannot support the following features:
|
||||
|
||||
- SPI_FLASH_AUTO_SUSPEND (C3, S3)
|
||||
|
||||
choice SPI_FLASH_DANGEROUS_WRITE
|
||||
bool "Writing to dangerous flash regions"
|
||||
default SPI_FLASH_DANGEROUS_WRITE_ABORTS
|
||||
@@ -145,14 +149,14 @@ menu "SPI Flash driver"
|
||||
|
||||
config SPI_FLASH_AUTO_SUSPEND
|
||||
bool "Auto suspend long erase/write operations"
|
||||
default n
|
||||
default n if !IDF_TARGET_ESP32C3
|
||||
default y if IDF_TARGET_ESP32C3
|
||||
depends on IDF_TARGET_ESP32C3 && !SPI_FLASH_USE_LEGACY_IMPL && !SPI_FLASH_ROM_IMPL
|
||||
help
|
||||
This is made default n, because this needs bootloader support.
|
||||
This feature needs special bootloader support.
|
||||
If you want to OTA to a image with this feature
|
||||
(e.g. turn on this config option for OTA image), please make
|
||||
sure the bootloader has the support for it. (above IDF v4.3)
|
||||
This option is default n before ESP32-C3, because it needs bootloader support.
|
||||
|
||||
CAUTION: If you want to OTA to an app with this feature turned on, please make
|
||||
sure the bootloader has the support for it. (later than IDF v4.3)
|
||||
|
||||
config SPI_FLASH_WRITE_CHUNK_SIZE
|
||||
int "Flash write chunk size"
|
||||
|
Reference in New Issue
Block a user