mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-09 06:10:24 +00:00
add support for Flash 32MB..128MB (S2, S3)
ESP32-S2 and ESP32-S3 supports up to 1 GB of external flash and RAM add support for - 32MB - 64MB - 128MB ( example NOR spiFLASH 1G-BIT W25Q01JVZEIQ Winbond 0xEF 0x40 0x21 ) Merges https://github.com/espressif/esp-idf/pull/7688 Signed-off-by: Ivan Grokhotkov <ivan@espressif.com>
This commit is contained in:

committed by
Ivan Grokhotkov

parent
f02169bc04
commit
f242a1705a
@@ -921,6 +921,12 @@ int esp_image_get_flash_size(esp_image_flash_size_t app_flash_size)
|
||||
return 8 * 1024 * 1024;
|
||||
case ESP_IMAGE_FLASH_SIZE_16MB:
|
||||
return 16 * 1024 * 1024;
|
||||
case ESP_IMAGE_FLASH_SIZE_32MB:
|
||||
return 32 * 1024 * 1024;
|
||||
case ESP_IMAGE_FLASH_SIZE_64MB:
|
||||
return 64 * 1024 * 1024;
|
||||
case ESP_IMAGE_FLASH_SIZE_128MB:
|
||||
return 128 * 1024 * 1024;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user