Skip to content

Commit 6201e77

Browse files
committed
esp32/boards: Convert all boards to auto detect flash size.
Remove the "vfs" entry from all partitions-*.csv files, and then remove duplicated files. And remove the ESP32_GENERIC_S3-FLASH_4M variant, because it's no longer needed. Signed-off-by: Damien George <[email protected]>
1 parent 2a0e2b5 commit 6201e77

29 files changed

+18
-117
lines changed

ports/esp32/boards/ESP32_GENERIC/board.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
The following files are firmware that should work on most ESP32-based boards
2-
with 4MiB of flash, including WROOM WROVER, SOLO, PICO, and MINI modules.
2+
with 4MiB or more of flash, including WROOM WROVER, SOLO, PICO, and MINI modules.
33

44
This board has multiple variants available:
55

ports/esp32/boards/ESP32_GENERIC_C3/board.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The following files are firmware images that should work on most
2-
ESP32-C3-based boards with 4MiB of flash, including WROOM and MINI modules,
3-
that use the revision 3 silicon (or newer).
2+
ESP32-C3-based boards with 4MiB or more of flash, including WROOM and MINI
3+
modules, that use the revision 3 silicon (or newer).
44

55
USB serial/JTAG support is enabled on pin 18 and 19. Note that this
66
is not a full USB stack, the C3 just provides a CDC/ACM class serial

ports/esp32/boards/ESP32_GENERIC_S2/board.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
The following files are firmware that should work on most ESP32-S2-based
2-
boards with 4MiB of flash, including WROOM, WROVER, and MINI modules.
2+
boards with 4MiB or more of flash, including WROOM, WROVER, and MINI modules.
33

44
This firmware supports configurations with and without SPIRAM (also known as
55
PSRAM) and will auto-detect a connected SPIRAM chip at startup and allocate

ports/esp32/boards/ESP32_GENERIC_S3/board.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"url": "https://www.espressif.com/en/products/modules",
2222
"vendor": "Espressif",
2323
"variants": {
24-
"SPIRAM_OCT": "Support for Octal-SPIRAM",
25-
"FLASH_4M": "4MiB flash"
24+
"SPIRAM_OCT": "Support for Octal-SPIRAM"
2625
}
2726
}
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
The following files are firmware that should work on most ESP32-S3-based
2-
boards with 4/8MiB of flash, including WROOM and MINI modules.
2+
boards with 4MiB or more of flash, including WROOM and MINI modules.
33

44
This firmware supports configurations with and without SPIRAM (also known as
55
PSRAM) and will auto-detect a connected SPIRAM chip at startup and allocate
66
the MicroPython heap accordingly. However if your board has Octal SPIRAM, then
77
use the "spiram-oct" variant.
8-
9-
If your board has 4MiB flash (including ESP32-S3FH4R2 based ones with embedded flash), then use the "flash-4m" build.

ports/esp32/boards/ESP32_GENERIC_S3/mpconfigvariant_FLASH_4M.cmake

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,2 @@
11
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
22
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
3-
4-
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=
5-
CONFIG_ESPTOOLPY_FLASHSIZE_8MB=y
6-
CONFIG_ESPTOOLPY_FLASHSIZE_16MB=
7-
CONFIG_PARTITION_TABLE_CUSTOM=y
8-
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions-8MiB.csv"

ports/esp32/boards/ESP32_GENERIC_S3/sdkconfig.flash_4m

Lines changed: 0 additions & 4 deletions
This file was deleted.

ports/esp32/boards/SIL_WESP32/sdkconfig.board

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
# 16 MB flash
1+
# 8 MB+ flash
22

3-
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=
4-
CONFIG_ESPTOOLPY_FLASHSIZE_8MB=
5-
CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y
6-
CONFIG_ESPTOOLPY_FLASHSIZE="16MB"
3+
CONFIG_ESPTOOLPY_FLASHSIZE_8MB=y
74

85
# Fast flash
96

@@ -14,7 +11,7 @@ CONFIG_ESP32_REV_MIN_1=y
1411
# OTA
1512

1613
CONFIG_PARTITION_TABLE_CUSTOM=y
17-
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions-16MiB-ota.csv"
14+
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions-8MiBplus-ota.csv"
1815

1916
# Network name
2017

ports/esp32/boards/UM_FEATHERS2/sdkconfig.board

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
33

44
CONFIG_SPIRAM_MEMTEST=
55

6-
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=
7-
CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y
8-
CONFIG_PARTITION_TABLE_CUSTOM=y
9-
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions-16MiB.csv"
10-
116
# LWIP
127
CONFIG_LWIP_LOCAL_HOSTNAME="UMFeatherS2"
138
# end of LWIP

0 commit comments

Comments
 (0)