Function esp_idf_svc::sys::esp_efuse_enable_rom_secure_download_mode
source ยท pub unsafe extern "C" fn esp_efuse_enable_rom_secure_download_mode() -> i32
Expand description
@brief Switch ROM Download Mode to Secure Download mode via eFuse
Permanently enables Secure Download mode. This mode limits the use of ROM Download Mode functions to simple flash read, write and erase operations, plus a command to return a summary of currently enabled security features.
@note If Secure Download mode is already enabled, this function does nothing and returns success.
@note Disabling the ROM Download Mode also disables Secure Download Mode.
@return
- ESP_OK If the eFuse was successfully burned, or had already been burned.
- ESP_ERR_INVALID_STATE ROM Download Mode has been disabled via eFuse, so Secure Download mode is unavailable.