Function esp_idf_hal::sys::esp_efuse_disable_rom_download_mode

source ยท
pub unsafe extern "C" fn esp_efuse_disable_rom_download_mode() -> i32
Expand description

@brief Disable ROM Download Mode via eFuse

Permanently disables the ROM Download Mode feature. Once disabled, if the SoC is booted with strapping pins set for ROM Download Mode then an error is printed instead.

@note Not all SoCs support this option. An error will be returned if called on an ESP32 with a silicon revision lower than 3, as these revisions do not support this option.

@note If ROM Download Mode is already disabled, this function does nothing and returns success.

@return

  • ESP_OK If the eFuse was successfully burned, or had already been burned.
  • ESP_ERR_NOT_SUPPORTED (ESP32 only) This SoC is not capable of disabling UART download mode
  • ESP_ERR_INVALID_STATE (ESP32 only) This eFuse is write protected and cannot be written