Skip to content

Commit

Permalink
fix for esp32S3_4MB_PSRAM builds (S3 zero and supermini)
Browse files Browse the repository at this point in the history
  • Loading branch information
softhack007 committed Dec 13, 2024
1 parent 655fada commit ae65a83
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2160,6 +2160,8 @@ extends = env:esp32S3_8MB_S
board = lolin_s3_mini ;; -S3 mini: 4MB flash 2MB PSRAM
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)
;; 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)
build_unflags = ${common.build_unflags}
-D WLED_ENABLE_HUB75MATRIX ;; board does not have enough pins for HUB75
build_flags = ${common.build_flags} ${esp32s3.build_flags} -Wno-misleading-indentation -Wno-format-truncation
${common_mm.build_flags_S}
-D WLED_RELEASE_NAME=esp32S3_4MB_PSRAM_S
Expand Down Expand Up @@ -2188,16 +2190,23 @@ build_flags = ${common.build_flags} ${esp32s3.build_flags} -Wno-misleading-inden
; -D WLED_DEBUG
; -D SR_DEBUG
; -D MIC_LOGGER
lib_deps = ${esp32s3.lib_deps} ${common_mm.lib_deps_S} ${common_mm.lib_deps_V4_M}
${common_mm.animartrix_lib_deps}
lib_ignore =
IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compilation
; RAM: [== ] 20.4% (used 66908 bytes from 327680 bytes)
; Flash: [========= ] 87.1% (used 1655529 bytes from 1900544 bytes)
${common_mm.HUB75_lib_ignore}
${common_mm.DMXin_lib_ignore}
; RAM: [== ] 18.6% (used 60828 bytes from 327680 bytes)
; Flash: [======== ] 76.9% (used 1461829 bytes from 1900544 bytes)

;; MM for esp32-s3 zero/supermini and lolin S3 mini boards - standard
[env:esp32S3_4MB_PSRAM_M]
extends = env:esp32S3_8MB_M
board = lolin_s3_mini ;; -S3 mini: 4MB flash 2MB PSRAM
board_build.partitions = ${esp32.default_partitions}
build_unflags = ${common.build_unflags}
-D WLED_ENABLE_HUB75MATRIX ;; board does not have enough pins for HUB75
-D USERMOD_ANIMARTRIX ;; not enough flash
build_flags = ${common.build_flags} ${esp32s3.build_flags} -Wno-misleading-indentation -Wno-format-truncation
${common_mm.build_flags_S} ${common_mm.build_flags_M}
-D WLED_RELEASE_NAME=esp32S3_4MB_PSRAM_M
Expand All @@ -2208,7 +2217,7 @@ build_flags = ${common.build_flags} ${esp32s3.build_flags} -Wno-misleading-inden
-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
;;-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
-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)
${common_mm.animartrix_build_flags}
;; ${common_mm.animartrix_build_flags} ;; not enough flash
-D LEDPIN=21
-D BTNPIN=-1 -D RLYPIN=-1 -D IRPIN=-1 -D AUDIOPIN=-1
-D HW_PIN_SDA=12 -D HW_PIN_SCL=13
Expand All @@ -2225,8 +2234,11 @@ build_flags = ${common.build_flags} ${esp32s3.build_flags} -Wno-misleading-inden
lib_deps = ${esp32s3.lib_deps} ${common_mm.lib_deps_S} ${common_mm.lib_deps_V4_M}
lib_ignore =
IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compilation
; RAM: [== ] 20.6% (used 67532 bytes from 327680 bytes)
; Flash: [==========] 98.4% (used 1547445 bytes from 1572864 bytes)
${common_mm.HUB75_lib_ignore}
${common_mm.DMXin_lib_ignore}
${common_mm.animartrix_lib_ignore}
; RAM: [== ] 18.7% (used 61172 bytes from 327680 bytes)
; Flash: [==========] 97.7% (used 1536157 bytes from 1572864 bytes)


# ------------------------------------------------------------------------------
Expand Down

0 comments on commit ae65a83

Please sign in to comment.