From de6e8ccea749f140c4fc9af8d52eaa6fd463969a Mon Sep 17 00:00:00 2001 From: chenjianqiang Date: Mon, 27 Apr 2020 17:33:30 +0800 Subject: [PATCH] flash: fix spi flash clock config error Closes https://github.com/espressif/esp-idf/issues/5099 --- components/bootloader_support/src/bootloader_flash_config.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/bootloader_support/src/bootloader_flash_config.c b/components/bootloader_support/src/bootloader_flash_config.c index b41146639d..b3a3ed9d7e 100644 --- a/components/bootloader_support/src/bootloader_flash_config.c +++ b/components/bootloader_support/src/bootloader_flash_config.c @@ -62,6 +62,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_gpio_config(const esp_image_header_t* pfhdr)