mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 11:03:11 +00:00
21f8ca5e6f
New API to check the SPI flash mode from the incoming firmware image during OTA updates could prevent bootloader/app incompatibility of DIO vs QIO flash modes. More information: - https://github.com/espressif/esp-hosted-mcu/issues/143#issuecomment-3741753788 - https://github.com/espressif/esp-idf/issues/9674#issuecomment-1232533757 - https://github.com/espressif/esp-idf/issues/9542#issuecomment-1211317354
46 lines
2.0 KiB
Plaintext
46 lines
2.0 KiB
Plaintext
menu "ESP HTTPS OTA"
|
|
|
|
config ESP_HTTPS_OTA_DECRYPT_CB
|
|
bool "Provide decryption callback"
|
|
default n
|
|
help
|
|
Exposes an additional callback whereby firmware data could be decrypted
|
|
before being processed by OTA update component. This can help to integrate
|
|
external encryption related format and removal of such encapsulation layer
|
|
from firmware image.
|
|
|
|
config ESP_HTTPS_OTA_ALLOW_HTTP
|
|
bool "Allow HTTP for OTA (WARNING: ONLY FOR TESTING PURPOSE, READ HELP)"
|
|
default n
|
|
help
|
|
It is highly recommended to keep HTTPS (along with server certificate validation) enabled.
|
|
Enabling this option comes with potential risk of:
|
|
- Non-encrypted communication channel with server
|
|
- Accepting firmware upgrade image from server with fake identity
|
|
|
|
config ESP_HTTPS_OTA_EVENT_POST_TIMEOUT
|
|
int "Time in millisecond to wait for posting event"
|
|
default 2000
|
|
help
|
|
This config option helps in setting the time in millisecond to wait for event to be posted to the
|
|
system default event loop. Set it to -1 if you need to set timeout to portMAX_DELAY.
|
|
|
|
config ESP_HTTPS_OTA_ENABLE_PARTIAL_DOWNLOAD
|
|
bool "Enable partial HTTP download for OTA"
|
|
default n
|
|
select ESP_HTTP_CLIENT_ENABLE_GET_CONTENT_RANGE
|
|
help
|
|
This enables use of range header in esp_https_ota component.
|
|
The firmware image will be downloaded over multiple HTTP requests.
|
|
|
|
config ESP_HTTPS_OTA_VERIFY_SPI_MODE
|
|
bool "Verify SPI flash mode compatibility for application during OTA"
|
|
default y
|
|
help
|
|
When enabled, the OTA process will verify that the SPI flash mode of the new
|
|
application image is compatible with the currently running firmware. This helps
|
|
prevent flashing firmware with incompatible SPI mode settings which could
|
|
cause flash write failures.
|
|
|
|
endmenu
|