From c245db59b6599db4687f590ea603121f1ff23005 Mon Sep 17 00:00:00 2001 From: "Michael (XIAO Xufeng)" Date: Sat, 26 Sep 2020 10:24:26 +0800 Subject: [PATCH] bootloader_support: fix fix spi flash clock config error Relates to: https://github.com/espressif/esp-idf/issues/5099 --- .../bootloader_support/src/bootloader_flash_config_esp32s2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/bootloader_support/src/bootloader_flash_config_esp32s2.c b/components/bootloader_support/src/bootloader_flash_config_esp32s2.c index 89e948aedba..70ed1228281 100644 --- a/components/bootloader_support/src/bootloader_flash_config_esp32s2.c +++ b/components/bootloader_support/src/bootloader_flash_config_esp32s2.c @@ -69,6 +69,7 @@ void IRAM_ATTR bootloader_flash_clock_config(const esp_image_header_t* pfhdr) break; } esp_rom_spiflash_config_clk(spi_clk_div, 0); + esp_rom_spiflash_config_clk(spi_clk_div, 1); } void IRAM_ATTR bootloader_flash_set_dummy_out(void)