esp_efuse_disable_rom_download_mode() function
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.
Syntax
esp_err_t esp_efuse_disable_rom_download_mode(void); Return value
- 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
Notes
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. If ROM Download Mode is already disabled, this function does nothing and returns success.