Skip to content

Commit ae65a83

Browse files
committed
fix for esp32S3_4MB_PSRAM builds (S3 zero and supermini)
1 parent 655fada commit ae65a83

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

platformio.ini

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2160,6 +2160,8 @@ extends = env:esp32S3_8MB_S
21602160
board = lolin_s3_mini ;; -S3 mini: 4MB flash 2MB PSRAM
21612161
board_build.partitions = tools/WLED_ESP32_4MB_256KB_FS.csv ;; 1.8MB firmware, 256KB filesystem (esptool erase_flash needed when changing from "standard WLED" partitions)
21622162
;; board_build.partitions = tools/WLED_ESP32_4MB_512KB_FS.csv ;; 1.7MB firmware, 500KB filesystem (esptool erase_flash needed when changing from "standard WLED" partitions)
2163+
build_unflags = ${common.build_unflags}
2164+
-D WLED_ENABLE_HUB75MATRIX ;; board does not have enough pins for HUB75
21632165
build_flags = ${common.build_flags} ${esp32s3.build_flags} -Wno-misleading-indentation -Wno-format-truncation
21642166
${common_mm.build_flags_S}
21652167
-D WLED_RELEASE_NAME=esp32S3_4MB_PSRAM_S
@@ -2188,16 +2190,23 @@ build_flags = ${common.build_flags} ${esp32s3.build_flags} -Wno-misleading-inden
21882190
; -D WLED_DEBUG
21892191
; -D SR_DEBUG
21902192
; -D MIC_LOGGER
2193+
lib_deps = ${esp32s3.lib_deps} ${common_mm.lib_deps_S} ${common_mm.lib_deps_V4_M}
2194+
${common_mm.animartrix_lib_deps}
21912195
lib_ignore =
21922196
IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compilation
2193-
; RAM: [== ] 20.4% (used 66908 bytes from 327680 bytes)
2194-
; Flash: [========= ] 87.1% (used 1655529 bytes from 1900544 bytes)
2197+
${common_mm.HUB75_lib_ignore}
2198+
${common_mm.DMXin_lib_ignore}
2199+
; RAM: [== ] 18.6% (used 60828 bytes from 327680 bytes)
2200+
; Flash: [======== ] 76.9% (used 1461829 bytes from 1900544 bytes)
21952201

21962202
;; MM for esp32-s3 zero/supermini and lolin S3 mini boards - standard
21972203
[env:esp32S3_4MB_PSRAM_M]
21982204
extends = env:esp32S3_8MB_M
21992205
board = lolin_s3_mini ;; -S3 mini: 4MB flash 2MB PSRAM
22002206
board_build.partitions = ${esp32.default_partitions}
2207+
build_unflags = ${common.build_unflags}
2208+
-D WLED_ENABLE_HUB75MATRIX ;; board does not have enough pins for HUB75
2209+
-D USERMOD_ANIMARTRIX ;; not enough flash
22012210
build_flags = ${common.build_flags} ${esp32s3.build_flags} -Wno-misleading-indentation -Wno-format-truncation
22022211
${common_mm.build_flags_S} ${common_mm.build_flags_M}
22032212
-D WLED_RELEASE_NAME=esp32S3_4MB_PSRAM_M
@@ -2208,7 +2217,7 @@ build_flags = ${common.build_flags} ${esp32s3.build_flags} -Wno-misleading-inden
22082217
-DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=0 -DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=1 ;; for Serial-to-USB chip
22092218
;;-DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=1 ;; for Hardware-CDC USB mode
22102219
-D WLED_DISABLE_ADALIGHT ;; disables serial protocols - recommended for Hardware-CDC USB (Serial RX will receive junk commands when RX pin is unconnected, unless its pulled down by resistor)
2211-
${common_mm.animartrix_build_flags}
2220+
;; ${common_mm.animartrix_build_flags} ;; not enough flash
22122221
-D LEDPIN=21
22132222
-D BTNPIN=-1 -D RLYPIN=-1 -D IRPIN=-1 -D AUDIOPIN=-1
22142223
-D HW_PIN_SDA=12 -D HW_PIN_SCL=13
@@ -2225,8 +2234,11 @@ build_flags = ${common.build_flags} ${esp32s3.build_flags} -Wno-misleading-inden
22252234
lib_deps = ${esp32s3.lib_deps} ${common_mm.lib_deps_S} ${common_mm.lib_deps_V4_M}
22262235
lib_ignore =
22272236
IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compilation
2228-
; RAM: [== ] 20.6% (used 67532 bytes from 327680 bytes)
2229-
; Flash: [==========] 98.4% (used 1547445 bytes from 1572864 bytes)
2237+
${common_mm.HUB75_lib_ignore}
2238+
${common_mm.DMXin_lib_ignore}
2239+
${common_mm.animartrix_lib_ignore}
2240+
; RAM: [== ] 18.7% (used 61172 bytes from 327680 bytes)
2241+
; Flash: [==========] 97.7% (used 1536157 bytes from 1572864 bytes)
22302242

22312243

22322244
# ------------------------------------------------------------------------------

0 commit comments

Comments
 (0)