mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'fix/fix_behaviour_of_api_to_set_fe_release_mode_v5.0' into 'release/v5.0'
esp_flash_encrypt: If it is supported then Enable secure download mode in... (v5.0) See merge request espressif/esp-idf!21493
This commit is contained in:
commit
0b971cf314
@ -204,7 +204,12 @@ void esp_flash_encryption_set_release_mode(void)
|
||||
ESP_LOGE(TAG, "Flash Encryption support not added, abort..");
|
||||
abort();
|
||||
#endif
|
||||
|
||||
#if CONFIG_SOC_SUPPORTS_SECURE_DL_MODE
|
||||
esp_efuse_enable_rom_secure_download_mode();
|
||||
#else
|
||||
esp_efuse_disable_rom_download_mode();
|
||||
#endif
|
||||
esp_efuse_batch_write_commit();
|
||||
|
||||
if (esp_get_flash_encryption_mode() != ESP_FLASH_ENC_MODE_RELEASE) {
|
||||
|
Loading…
Reference in New Issue
Block a user