Merge branch 'feature/adds_check_in_app_that_flash_enc_is_on' into 'master'

bootloader: Adds a check that app is run under FE

Closes IDF-640

See merge request espressif/esp-idf!12368
This commit is contained in:
Angus Gratton
2021-02-25 22:39:13 +00:00
2 changed files with 19 additions and 7 deletions
+11
View File
@@ -804,5 +804,16 @@ menu "Security features"
It is also possible to enable secure download mode at runtime by calling
esp_efuse_enable_rom_secure_download_mode()
config SECURE_FLASH_CHECK_ENC_EN_IN_APP
bool "Check Flash Encryption enabled on app startup"
depends on SECURE_FLASH_ENC_ENABLED
default y
help
If set (default), in an app during startup code,
there is a check of the flash encryption eFuse bit is on
(as the bootloader should already have set it).
The app requires this bit is on to continue work otherwise abort.
If not set, the app does not care if the flash encryption eFuse bit is set or not.
endmenu # Security features