nuttx/arch/risc-v/src/common/espressif: add 32MB flash size option

Add ESPRESSIF_FLASH_32M Kconfig option and the corresponding
esptool flash size mapping in Config.mk to support boards with
32MB NOR flash.

Signed-off-by: likun17 <likun17@xiaomi.com>
This commit is contained in:
likun17
2026-03-18 19:38:34 +08:00
committed by simbit18
parent bd6a466317
commit 6123cc3cbe
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -29,6 +29,9 @@ config ESPRESSIF_FLASH_8M
config ESPRESSIF_FLASH_16M
bool "16 MB"
config ESPRESSIF_FLASH_32M
bool "32 MB"
endchoice # ESPRESSIF_FLASH
config ESPRESSIF_IDF_ENV_FPGA
+2
View File
@@ -52,6 +52,8 @@ else ifeq ($(CONFIG_ESPRESSIF_FLASH_8M),y)
FLASH_SIZE := 8MB
else ifeq ($(CONFIG_ESPRESSIF_FLASH_16M),y)
FLASH_SIZE := 16MB
else ifeq ($(CONFIG_ESPRESSIF_FLASH_32M),y)
FLASH_SIZE := 32MB
endif
ifeq ($(CONFIG_ESPRESSIF_FLASH_MODE_DIO),y)