Merge branch 'feature/dis_uart_dl_mode' into 'master'

feature: Disable UART download mode

Closes IDF-1386

See merge request espressif/esp-idf!8590
This commit is contained in:
Angus Gratton
2020-05-29 14:09:54 +08:00
22 changed files with 331 additions and 80 deletions

View File

@@ -292,6 +292,16 @@ void start_cpu0_default(void)
#if CONFIG_ESP32S2_BROWNOUT_DET
esp_brownout_init();
#endif
#if CONFIG_SECURE_DISABLE_ROM_DL_MODE
err = esp_efuse_disable_rom_download_mode();
assert(err == ESP_OK && "Failed to disable ROM download mode");
#endif
#if CONFIG_SECURE_ENABLE_SECURE_ROM_DL_MODE
err = esp_efuse_enable_rom_secure_download_mode();
assert(err == ESP_OK && "Failed to enable Secure Download mode");
#endif
rtc_gpio_force_hold_dis_all();
#ifdef CONFIG_VFS_SUPPORT_IO