From 5433c4c3c503a1817a8ccf65541979b41a79148d Mon Sep 17 00:00:00 2001 From: gaoxu Date: Mon, 11 Aug 2025 18:09:44 +0800 Subject: [PATCH] fix(flash): fix H21/H4 error on FPGA because of wrong flash speed --- components/spi_flash/esp32h21/Kconfig.flash_freq | 3 +++ components/spi_flash/esp32h4/Kconfig.flash_freq | 3 +++ 2 files changed, 6 insertions(+) diff --git a/components/spi_flash/esp32h21/Kconfig.flash_freq b/components/spi_flash/esp32h21/Kconfig.flash_freq index a24b915877..c100eede1d 100644 --- a/components/spi_flash/esp32h21/Kconfig.flash_freq +++ b/components/spi_flash/esp32h21/Kconfig.flash_freq @@ -1,8 +1,11 @@ choice ESPTOOLPY_FLASHFREQ prompt "Flash SPI speed" + default ESPTOOLPY_FLASHFREQ_32M if IDF_ENV_FPGA default ESPTOOLPY_FLASHFREQ_48M config ESPTOOLPY_FLASHFREQ_48M bool "48 MHz" + config ESPTOOLPY_FLASHFREQ_32M + bool "32 MHz" config ESPTOOLPY_FLASHFREQ_24M bool "24 MHz" endchoice diff --git a/components/spi_flash/esp32h4/Kconfig.flash_freq b/components/spi_flash/esp32h4/Kconfig.flash_freq index a24b915877..c100eede1d 100644 --- a/components/spi_flash/esp32h4/Kconfig.flash_freq +++ b/components/spi_flash/esp32h4/Kconfig.flash_freq @@ -1,8 +1,11 @@ choice ESPTOOLPY_FLASHFREQ prompt "Flash SPI speed" + default ESPTOOLPY_FLASHFREQ_32M if IDF_ENV_FPGA default ESPTOOLPY_FLASHFREQ_48M config ESPTOOLPY_FLASHFREQ_48M bool "48 MHz" + config ESPTOOLPY_FLASHFREQ_32M + bool "32 MHz" config ESPTOOLPY_FLASHFREQ_24M bool "24 MHz" endchoice