pio.ini: optimizations (25 lines less)
pio.ini: - [Debug_Flags] - Board_ESP32_16MB in extends instead of board
This commit is contained in:
110
platformio.ini
110
platformio.ini
@@ -844,7 +844,6 @@ board_build.flash_mode = dio ; (dio = dual i/o; more compatible than qio = quad
|
||||
extends = esp32_4MB_S_base
|
||||
build_flags = ${esp32_4MB_S_base.build_flags} ${common_mm.build_flags_M}
|
||||
lib_deps = ${esp32_4MB_S_base.lib_deps} ${common_mm.lib_deps_M}
|
||||
board_build.partitions = ${esp32_4MB_S_base.board_build.partitions}
|
||||
; board_build.partitions = tools/WLED_ESP32-wrover_4MB.csv
|
||||
|
||||
[esp32_4MB_XL_base]
|
||||
@@ -895,6 +894,15 @@ build_flags =
|
||||
board = esp32_16MB
|
||||
board_build.partitions = tools/WLED_ESP32_16MB.csv
|
||||
|
||||
[Debug_Flags]
|
||||
build_flags =
|
||||
-D WLED_DEBUG ; lots of generic debug messages
|
||||
-D SR_DEBUG ; some extra debug messages from audioreactive
|
||||
;WLEDMM: only setting WLED_DEBUG_HOST is enough, ip and port can be defined in sync settings as well
|
||||
-D WLED_DEBUG_HOST='"192.168.x.x"' ;; to send debug messages over network to host 192.168.x.y - FQDN is also possible
|
||||
-D WLED_DEBUG_PORT=1768 ;; port for network debugging. default = 7868
|
||||
; -D MIC_LOGGER ; for sound input monitoring & debugging (use arduino serial plotter)
|
||||
|
||||
|
||||
; end of base entries
|
||||
|
||||
@@ -905,70 +913,59 @@ board_build.partitions = tools/WLED_ESP32_16MB.csv
|
||||
extends = esp32_4MB_S_base
|
||||
build_flags = ${esp32_4MB_S_base.build_flags}
|
||||
-D WLED_RELEASE_NAME=esp32_4MB_S
|
||||
; RAM: [== ] 24.1% (used 78900 bytes from 327680 bytes)
|
||||
; Flash: [======== ] 83.7% (used 1315729 bytes from 1572864 bytes)
|
||||
; RAM: [== ] 24.1% (used 78988 bytes from 327680 bytes)
|
||||
; Flash: [========= ] 85.7% (used 1348593 bytes from 1572864 bytes) WLEDMM: Earlier 83.7
|
||||
|
||||
[env:esp32_4MB_M]
|
||||
extends = esp32_4MB_M_base
|
||||
build_flags = ${esp32_4MB_M_base.build_flags}
|
||||
-D WLED_RELEASE_NAME=esp32_4MB_M
|
||||
; RAM: [== ] 24.4% (used 79804 bytes from 327680 bytes)
|
||||
; Flash: [========= ] 88.7% (used 1394813 bytes from 1572864 bytes)
|
||||
; RAM: [== ] 24.4% (used 79956 bytes from 327680 bytes)
|
||||
; Flash: [========= ] 91.1% (used 1432245 bytes from 1572864 bytes) WLEDMM: earlier 88.7
|
||||
|
||||
[env:esp32_4MB_XL]
|
||||
extends = esp32_4MB_XL_base
|
||||
build_flags = ${esp32_4MB_XL_base.build_flags}
|
||||
-D WLED_RELEASE_NAME=esp32_4MB_XL
|
||||
; RAM: [== ] 24.4% (used 79804 bytes from 327680 bytes)
|
||||
; Flash: [========= ] 88.7% (used 1394813 bytes from 1572864 bytes)
|
||||
; RAM: [== ] 24.4% (used 80060 bytes from 327680 bytes)
|
||||
; Flash: [==========] 95.3% (used 1499037 bytes from 1572864 bytes)
|
||||
|
||||
[env:esp32_16MB_M]
|
||||
extends = esp32_4MB_M_base
|
||||
extends = esp32_4MB_M_base, Board_ESP32_16MB
|
||||
build_flags = ${esp32_4MB_M_base.build_flags}
|
||||
-D WLED_RELEASE_NAME=esp32_16MB_M
|
||||
board = ${Board_ESP32_16MB.board}
|
||||
board_build.partitions = ${Board_ESP32_16MB.board_build.partitions}
|
||||
; RAM: [== ] 24.4% (used 79916 bytes from 327680 bytes)
|
||||
; Flash: [======= ] 67.0% (used 1405701 bytes from 2097152 bytes)
|
||||
;lib_ignore = IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compilation
|
||||
|
||||
[env:esp32_4MB_M_debug]
|
||||
extends = esp32_4MB_M_base
|
||||
build_unflags = ${common.build_unflags}
|
||||
build_unflags = ${common.build_unflags}
|
||||
-D CORE_DEBUG_LEVEL=0
|
||||
build_flags = ${esp32_4MB_M_base.build_flags}
|
||||
-D WLED_RELEASE_NAME=esp32_4MB_M_debug
|
||||
-D WLED_DEBUG ; lots of generic debug messages
|
||||
-D SR_DEBUG ; some extra debug messages from audioreactive
|
||||
;WLEDMM: only setting WLED_DEBUG_HOST is enough, ip and port can be defined in sync settings as well
|
||||
-D WLED_DEBUG_HOST='"192.168.x.x"' ;; to send debug messages over network to host 192.168.x.y - FQDN is also possible
|
||||
-D WLED_DEBUG_PORT=1768 ;; port for network debugging. default = 7868
|
||||
; -D MIC_LOGGER ; for sound input monitoring & debugging (use arduino serial plotter)
|
||||
build_flags = ${esp32_4MB_M_base.build_flags}
|
||||
${Debug_Flags.build_flags}
|
||||
-D CORE_DEBUG_LEVEL=2 ;; 2=warning
|
||||
-D WLED_RELEASE_NAME=esp32_4MB_M_debug
|
||||
monitor_filters = esp32_exception_decoder
|
||||
; RAM: [== ] 24.5% (used 80292 bytes from 327680 bytes)
|
||||
; Flash: [========= ] 94.5% (used 1487113 bytes from 1572864 bytes)
|
||||
|
||||
[env:esp32_16MB_M_debug]
|
||||
extends = esp32_4MB_M_base
|
||||
build_unflags = ${common.build_unflags}
|
||||
extends = esp32_4MB_M_base, Board_ESP32_16MB
|
||||
build_unflags = ${common.build_unflags}
|
||||
-D CORE_DEBUG_LEVEL=0
|
||||
build_flags = ${esp32_4MB_M_base.build_flags}
|
||||
build_flags = ${esp32_4MB_M_base.build_flags}
|
||||
${Debug_Flags.build_flags}
|
||||
-D CORE_DEBUG_LEVEL=2 ;; 2=warning
|
||||
-D WLED_RELEASE_NAME=esp32_16MB_M_debug
|
||||
-D WLED_DEBUG ; lots of generic debug messages
|
||||
-D SR_DEBUG ; some extra debug messages from audioreactive
|
||||
-D WLED_DEBUG_HOST='"192.168.xxx.xxx"' ;; to send debug messages over network to host 192.168.x.y - FQDN is also possible
|
||||
-D WLED_DEBUG_PORT=1768 ;; port for network debugging. default = 7868
|
||||
; -D MIC_LOGGER
|
||||
-D CORE_DEBUG_LEVEL=4 ;; 0=none, 1=error, 2=warning, 3=info, 4=debug, 5=verbose
|
||||
board = ${Board_ESP32_16MB.board}
|
||||
board_build.partitions = ${Board_ESP32_16MB.board_build.partitions}
|
||||
monitor_filters = esp32_exception_decoder
|
||||
; RAM: [== ] 24.5% (used 80292 bytes from 327680 bytes)
|
||||
; Flash: [======= ] 70.9% (used 1487129 bytes from 2097152 bytes)
|
||||
|
||||
[env:esp32_16MB_XL]
|
||||
extends = esp32_4MB_XL_base
|
||||
extends = esp32_4MB_XL_base, Board_ESP32_16MB
|
||||
build_flags = ${esp32_4MB_XL_base.build_flags}
|
||||
-D WLED_RELEASE_NAME=esp32_16MB_XL
|
||||
board = ${Board_ESP32_16MB.board}
|
||||
board_build.partitions = ${Board_ESP32_16MB.board_build.partitions}
|
||||
; RAM: [== ] 24.4% (used 79916 bytes from 327680 bytes)
|
||||
; Flash: [======= ] 67.0% (used 1405701 bytes from 2097152 bytes)
|
||||
;lib_ignore = IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compilation
|
||||
@@ -1164,32 +1161,27 @@ build_flags = ${esp32_4MB_V4_M_base.build_flags}
|
||||
|
||||
; compiled with ESP-IDF 4.4.1
|
||||
[env:esp32_16MB_V4_M]
|
||||
extends = esp32_4MB_V4_M_base
|
||||
extends = esp32_4MB_V4_M_base, Board_ESP32_16MB
|
||||
build_flags = ${esp32_4MB_V4_M_base.build_flags}
|
||||
-D WLED_RELEASE_NAME=esp32_16MB_V4_M
|
||||
-D WLED_WATCHDOG_TIMEOUT=0 #-D WLED_DISABLE_BROWNOUT_DET
|
||||
-D ARDUINO_USB_CDC_ON_BOOT=0 ; needed for arduino-esp32 >=2.0.4; avoids errors on startup
|
||||
board = ${Board_ESP32_16MB.board}
|
||||
board_build.partitions = ${Board_ESP32_16MB.board_build.partitions}
|
||||
; RAM: [== ] 24.8% (used 81316 bytes from 327680 bytes)
|
||||
; Flash: [======= ] 72.9% (used 1528253 bytes from 2097152 bytes)
|
||||
|
||||
[env:esp32_16MB_V4_M_debug]
|
||||
extends = esp32_4MB_V4_M_base
|
||||
extends = esp32_4MB_V4_M_base, Board_ESP32_16MB
|
||||
build_unflags = ${common.build_unflags}
|
||||
-D CORE_DEBUG_LEVEL=0
|
||||
build_flags = ${esp32_4MB_V4_M_base.build_flags}
|
||||
-D WLED_RELEASE_NAME=esp32_16MB_V4_M_debug
|
||||
-D WLED_DEBUG -D SR_DEBUG
|
||||
; -D MIC_LOGGER
|
||||
${Debug_Flags.build_flags}
|
||||
-D CORE_DEBUG_LEVEL=4 ;; 0=none, 1=error, 2=warning, 3=info, 4=debug, 5=verbose
|
||||
-D WLED_RELEASE_NAME=esp32_16MB_V4_M_debug
|
||||
-D WLED_WATCHDOG_TIMEOUT=0 #-D WLED_DISABLE_BROWNOUT_DET
|
||||
-D ARDUINO_USB_CDC_ON_BOOT=0 ; needed for arduino-esp32 >=2.0.4; avoids errors on startup
|
||||
board = ${Board_ESP32_16MB.board}
|
||||
board_build.partitions = ${Board_ESP32_16MB.board_build.partitions}
|
||||
monitor_filters = esp32_exception_decoder
|
||||
; RAM: [== ] 25.0% (used 81780 bytes from 327680 bytes)
|
||||
; Flash: [======== ] 76.9% (used 1611861 bytes from 2097152 bytes)
|
||||
; RAM: [=== ] 25.0% (used 82008 bytes from 327680 bytes)
|
||||
; Flash: [======== ] 78.1% (used 1638193 bytes from 2097152 bytes) WLEDMM: Earlier 76.9
|
||||
|
||||
;; experimental environment for boards with PSRAM (needs ESP-IDF 4.4.1).
|
||||
[env:esp32_4MB_PSRAM_M]
|
||||
@@ -1283,6 +1275,7 @@ build_unflags = ${common.build_unflags}
|
||||
-D WLED_ENABLE_DMX ;; disabled because it does not work with ESP-IDF 4.4.x (buggy driver in SparkFunDMX)
|
||||
|
||||
build_flags = ${common.build_flags} ${esp32s2.build_flags}
|
||||
; ${Debug_Flags.build_flags} ;ewowi: enabling debug causes Error: The program size (1463330 bytes) is greater than maximum allowed (1441792 bytes)
|
||||
-D WLED_WATCHDOG_TIMEOUT=0 -D CONFIG_ASYNC_TCP_USE_WDT=0
|
||||
${common_mm.build_flags_S} ${common_mm.build_flags_M}
|
||||
-Wno-misleading-indentation -Wno-format-truncation
|
||||
@@ -1309,16 +1302,11 @@ build_flags = ${common.build_flags} ${esp32s2.build_flags}
|
||||
-D MCLK_PIN=18
|
||||
;-D STATUSLED=-1
|
||||
-D WLED_USE_MY_CONFIG
|
||||
; -D WLED_DEBUG_HOST='"192.168.xxx.xxx"' ;; to send debug messages over network to host 192.168.x.y - FQDN is also possible
|
||||
; -D WLED_DEBUG_PORT=1768 ;; port for network debugging. default = 7868
|
||||
; -D WLED_DEBUG
|
||||
; -D SR_DEBUG
|
||||
; -D MIC_LOGGER
|
||||
lib_deps = ${env.lib_deps} ${esp32s2.lib_deps} ${common_mm.lib_deps_S} ${common_mm.lib_deps_V4_M}
|
||||
lib_ignore = IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compilation
|
||||
monitor_filters = esp32_exception_decoder
|
||||
; RAM: [=== ] 25.6% (used 83796 bytes from 327680 bytes)
|
||||
; Flash: [==========] 97.7% (used 1408626 bytes from 1441792 bytes)
|
||||
; RAM: [=== ] 25.6% (used 83892 bytes from 327680 bytes)
|
||||
; Flash: [==========] 99.1% (used 1429110 bytes from 1441792 bytes)
|
||||
|
||||
;; MM max environment for ESP32-C3 -> 4MB flash, no PSRAM
|
||||
;; to ewowi - i'll optimize this entry later ;-) really, I mean
|
||||
@@ -1425,47 +1413,37 @@ board_build.partitions = ${Board_ESP32_16MB.board_build.partitions}
|
||||
; Flash: [======= ] 66.4% (used 1393421 bytes from 2097152 bytes)
|
||||
|
||||
[env:wemos_shield_esp32_16MB_ICS4343x_M]
|
||||
extends = wemos_shield_esp32_4MB_M_base
|
||||
extends = wemos_shield_esp32_4MB_M_base, Board_ESP32_16MB
|
||||
build_flags = ${wemos_shield_esp32_4MB_M_base.build_flags} ${Shield_ICS4343x.build_flags}
|
||||
-D WLED_RELEASE_NAME=wemos_shield_esp32_16MB_ICS4343x_M
|
||||
board = ${Board_ESP32_16MB.board}
|
||||
board_build.partitions = ${Board_ESP32_16MB.board_build.partitions}
|
||||
; RAM: [== ] 24.4% (used 79820 bytes from 327680 bytes)
|
||||
; Flash: [========= ] 88.6% (used 1393421 bytes from 1572864 bytes)
|
||||
|
||||
[env:wemos_shield_esp32_16MB_ICS4343x_XL]
|
||||
extends = wemos_shield_esp32_4MB_XL_base
|
||||
extends = wemos_shield_esp32_4MB_XL_base, Board_ESP32_16MB
|
||||
build_flags = ${wemos_shield_esp32_4MB_XL_base.build_flags} ${Shield_ICS4343x.build_flags}
|
||||
-D WLED_RELEASE_NAME=wemos_shield_esp32_16MB_ICS4343x_XL
|
||||
board = ${Board_ESP32_16MB.board}
|
||||
board_build.partitions = ${Board_ESP32_16MB.board_build.partitions}
|
||||
; RAM: [== ] 24.4% (used 80044 bytes from 327680 bytes)
|
||||
; Flash: [======= ] 67.9% (used 1424185 bytes from 2097152 bytes)
|
||||
|
||||
[env:wemos_shield_esp32_16MB_SPM1423_M]
|
||||
extends = wemos_shield_esp32_4MB_M_base
|
||||
extends = wemos_shield_esp32_4MB_M_base, Board_ESP32_16MB
|
||||
build_flags = ${wemos_shield_esp32_4MB_M_base.build_flags} ${Shield_SPM1423.build_flags}
|
||||
-D WLED_RELEASE_NAME=wemos_shield_esp32_16MB_SPM1423_M
|
||||
board = ${Board_ESP32_16MB.board}
|
||||
board_build.partitions = ${Board_ESP32_16MB.board_build.partitions}
|
||||
; RAM: [== ] 24.4% (used 79820 bytes from 327680 bytes)
|
||||
; Flash: [========= ] 88.6% (used 1393421 bytes from 1572864 bytes)
|
||||
|
||||
[env:wemos_shield_esp32_16MB_SPM1423_XL]
|
||||
extends = wemos_shield_esp32_4MB_XL_base
|
||||
extends = wemos_shield_esp32_4MB_XL_base, Board_ESP32_16MB
|
||||
build_flags = ${wemos_shield_esp32_4MB_XL_base.build_flags} ${Shield_SPM1423.build_flags}
|
||||
-D WLED_RELEASE_NAME=wemos_shield_esp32_16MB_SPM1423_XL
|
||||
board = ${Board_ESP32_16MB.board}
|
||||
board_build.partitions = ${Board_ESP32_16MB.board_build.partitions}
|
||||
; RAM: [== ] 24.4% (used 79820 bytes from 327680 bytes)
|
||||
; Flash: [========= ] 88.6% (used 1393421 bytes from 1572864 bytes)
|
||||
|
||||
[env:wemos_shield_esp32_16MB_LineIn_M]
|
||||
extends = wemos_shield_esp32_4MB_M_base
|
||||
extends = wemos_shield_esp32_4MB_M_base, Board_ESP32_16MB
|
||||
build_flags = ${wemos_shield_esp32_4MB_M_base.build_flags} ${Shield_LineIn.build_flags}
|
||||
-D WLED_RELEASE_NAME=wemos_shield_esp32_16MB_LineIn_M
|
||||
board = ${Board_ESP32_16MB.board}
|
||||
board_build.partitions = ${Board_ESP32_16MB.board_build.partitions}
|
||||
|
||||
; ESP32 WLED pico board with builtin ICS-43432 microphpone
|
||||
[env:esp32_pico_4MB_M]
|
||||
|
||||
Reference in New Issue
Block a user