platformio: new entry esp32_4MB_V4_min
* added esp32_4MB_V4_min, without all the feature clutter * added optional build flags in all MM environments
This commit is contained in:
@@ -46,6 +46,7 @@
|
||||
default_envs = esp32_4MB_max ; recommended default
|
||||
; default_envs = esp32_16MB_max
|
||||
; default_envs = esp8266_4MB_min
|
||||
; default_envs = esp32_4MB_V4_min
|
||||
; default_envs = esp32_4MB_V4_max
|
||||
; default_envs = esp32_16MB_V4_max
|
||||
; default_envs = esp32_4MB_PSRAM_max
|
||||
@@ -605,19 +606,26 @@ board_build.partitions = ${env:esp32_4MB_min_base.board_build.partitions}
|
||||
; board_build.partitions = tools/WLED_ESP32-wrover_4MB.csv
|
||||
|
||||
;esp32_4MB_V4_max_base: basis for V4 entries, uses build_flags_min, build_flags_max, lib_deps_min and lib_deps_max
|
||||
[env:esp32_4MB_V4_max_base]
|
||||
[env:esp32_4MB_V4_min_base]
|
||||
board = esp32dev
|
||||
upload_speed = 460800 ; or 921600
|
||||
platform = ${esp32.platformV4}
|
||||
platform_packages = ${esp32.platformV4_packages}
|
||||
build_unflags = ${common.build_unflags}
|
||||
build_flags = ${common.build_flags} ${esp32.build_flagsV4} ${common_mm.build_flags_min} ${common_mm.build_flags_max}
|
||||
build_flags = ${common.build_flags} ${esp32.build_flagsV4} ${common_mm.build_flags_min}
|
||||
-Wno-misleading-indentation
|
||||
lib_deps = ${esp32.lib_depsV4} ${common_mm.lib_deps_min} ${common_mm.lib_deps_max}
|
||||
lib_deps = ${esp32.lib_depsV4} ${common_mm.lib_deps_min}
|
||||
board_build.partitions = ${esp32.default_partitions}
|
||||
board_build.f_flash = 80000000L ; use full 80MHz speed for flash (default = 40Mhz)
|
||||
board_build.flash_mode = dio ; (dio = dual i/o; more compatible than qio = quad i/o)
|
||||
|
||||
[env:esp32_4MB_V4_max_base]
|
||||
extends = env:esp32_4MB_V4_min_base
|
||||
build_flags = ${env:esp32_4MB_V4_min_base.build_flags} ${common_mm.build_flags_max}
|
||||
lib_deps = ${env:esp32_4MB_V4_min_base.lib_deps} ${common_mm.lib_deps_max}
|
||||
board_build.partitions = ${env:esp32_4MB_V4_min_base.board_build.partitions}
|
||||
;board_build.flash_mode = qio ; (dio = dual i/o; more compatible than qio = quad i/o)
|
||||
|
||||
; end of base entries
|
||||
|
||||
; bin entries (with WLED_RELEASE_NAME)
|
||||
@@ -627,16 +635,27 @@ board_build.flash_mode = dio ; (dio = dual i/o; more compatible than qio = quad
|
||||
extends = env:esp32_4MB_min_base
|
||||
build_flags = ${env:esp32_4MB_min_base.build_flags}
|
||||
-D WLED_RELEASE_NAME=esp32_4MB_min ; This will be included in the firmware.bin filename
|
||||
; RAM: [== ] 24.1% (used 78900 bytes from 327680 bytes)
|
||||
; Flash: [======== ] 83.7% (used 1315729 bytes from 1572864 bytes)
|
||||
; RAM: [== ] 24.1% (used 78900 bytes from 327680 bytes)
|
||||
; Flash: [======== ] 83.7% (used 1315729 bytes from 1572864 bytes)
|
||||
; -D WLED_DISABLE_LOXONE
|
||||
; -D WLED_DISABLE_ALEXA
|
||||
; -D WLED_DISABLE_HUESYNC
|
||||
; -D WLED_DISABLE_MQTT
|
||||
; -D WLED_DISABLE_INFRARED
|
||||
; -D WLED_DEBUG
|
||||
; -D SR_DEBUG
|
||||
; -D MIC_LOGGER
|
||||
|
||||
; esp32_4MB_max: bin entry, uses esp32_4MB_max_base
|
||||
[env:esp32_4MB_max]
|
||||
extends = env:esp32_4MB_max_base
|
||||
build_flags = ${env:esp32_4MB_max_base.build_flags}
|
||||
-D WLED_RELEASE_NAME=esp32_4MB_max ; This will be included in the firmware.bin filename
|
||||
; RAM: [== ] 24.4% (used 79804 bytes from 327680 bytes)
|
||||
; Flash: [========= ] 88.7% (used 1394813 bytes from 1572864 bytes)
|
||||
; RAM: [== ] 24.4% (used 79804 bytes from 327680 bytes)
|
||||
; Flash: [========= ] 88.7% (used 1394813 bytes from 1572864 bytes)
|
||||
; -D WLED_DEBUG
|
||||
; -D SR_DEBUG
|
||||
; -D MIC_LOGGER
|
||||
|
||||
; esp32_16MB_max: bin entry, uses esp32_4MB_max_base and adds 16MB settings
|
||||
[env:esp32_16MB_max]
|
||||
@@ -645,8 +664,11 @@ board = esp32_twilord ; "TwilightLord" ESP32 with 16MB Flash
|
||||
board_build.partitions = tools/WLED_ESP32_16MB.csv ; for esp32_twilord with 16MB flash
|
||||
build_flags = ${env:esp32_4MB_max_base.build_flags}
|
||||
-D WLED_RELEASE_NAME=esp32_16MB_max ; This will be included in the firmware.bin filename
|
||||
; RAM: [== ] 24.4% (used 79804 bytes from 327680 bytes)
|
||||
; Flash: [======= ] 66.5% (used 1394813 bytes from 2097152 bytes)
|
||||
; RAM: [== ] 24.4% (used 79804 bytes from 327680 bytes)
|
||||
; Flash: [======= ] 66.5% (used 1394813 bytes from 2097152 bytes)
|
||||
; -D WLED_DEBUG
|
||||
; -D SR_DEBUG
|
||||
; -D MIC_LOGGER
|
||||
|
||||
; esp8266_4MB_min: bin entry for 8266, with 2D (WIP)
|
||||
[env:esp8266_4MB_min]
|
||||
@@ -671,6 +693,24 @@ build_flags = ${common.build_flags_esp8266}
|
||||
;; Warning: the build-in LittleFS (arduino-esp32 2.0.x) seems to be "slightly different" from Lorol LittleFS.
|
||||
;; When upgrading to the new framework, it might be necessary to first do a chip erase (make sure you have a backup of cfg.json and presets.json)
|
||||
|
||||
; esp32_4MB_V4_min: bin entry compiled with ESP-IDF 4.4.1, uses esp32_4MB_V4_min_base
|
||||
[env:esp32_4MB_V4_min]
|
||||
extends = env:esp32_4MB_V4_min_base
|
||||
build_flags = ${env:esp32_4MB_V4_min_base.build_flags}
|
||||
-D WLED_RELEASE_NAME=esp32_4MB_V4_min ; This will be included in the firmware.bin filename
|
||||
-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
|
||||
-D WLED_DISABLE_LOXONE
|
||||
-D WLED_DISABLE_ALEXA
|
||||
-D WLED_DISABLE_HUESYNC
|
||||
-D WLED_DISABLE_MQTT
|
||||
-D WLED_DISABLE_INFRARED
|
||||
; -D WLED_DEBUG
|
||||
; -D SR_DEBUG
|
||||
; -D MIC_LOGGER
|
||||
; RAM: [== ] 24.2% (used 79372 bytes from 327680 bytes)
|
||||
; Flash: [========= ] 88.8% (used 1396073 bytes from 1572864 bytes)
|
||||
|
||||
; esp32_4MB_V4_max: bin entry compiled with ESP-IDF 4.4.1, uses esp32_4MB_V4_max_base
|
||||
[env:esp32_4MB_V4_max]
|
||||
extends = env:esp32_4MB_V4_max_base
|
||||
|
||||
Reference in New Issue
Block a user