diff --git a/platformio.ini b/platformio.ini index 2b4ebd8b..ca191c06 100644 --- a/platformio.ini +++ b/platformio.ini @@ -607,10 +607,9 @@ board_build.flash_mode = qio [env:esp32dev_V4_dio80] ;; experimental ESP32 env using ESP-IDF V4.4.x -;; Warning: this build environment is not stable!! -;; please erase your device before installing. board = esp32dev platform = ${esp32_idf_V4.platform} +platform_packages = ${esp32_idf_V4.platform_packages} build_unflags = ${common.build_unflags} build_flags = ${common.build_flags} ${esp32_idf_V4.build_flags} -D WLED_RELEASE_NAME=ESP32_V4_qio80 #-D WLED_DISABLE_BROWNOUT_DET lib_deps = ${esp32_idf_V4.lib_deps} @@ -664,6 +663,7 @@ lib_deps = ${esp32s2.lib_deps} [env:esp32c3dev] extends = esp32c3 platform = ${esp32c3.platform} +platform_packages = ${esp32c3.platform_packages} framework = arduino board = esp32-c3-devkitm-1 board_build.partitions = ${esp32.default_partitions} @@ -675,7 +675,9 @@ build_flags = ${common.build_flags} ${esp32c3.build_flags} -D WLED_RELEASE_NAME= upload_speed = 460800 build_unflags = ${common.build_unflags} lib_deps = ${esp32c3.lib_deps} -board_build.flash_mode = qio +board_build.flash_mode = dio ;; some boards do not boot with the faster "qio" mode +; RAM: [== ] 22.5% (used 73740 bytes from 327680 bytes) +; Flash: [==========] 96.3% (used 1515336 bytes from 1572864 bytes) [env:esp32s3dev_8MB] ;; ESP32-S3-DevKitC-1 development board, with 8MB FLASH, no PSRAM (flash_mode: qio) @@ -848,6 +850,8 @@ board_build.partitions = tools/WLED_ESP32_2MB_noOTA.csv board_build.flash_mode = dio board_upload.flash_size = 2MB board_upload.maximum_size = 2097152 +; RAM: [== ] 23.3% (used 76204 bytes from 327680 bytes) +; Flash: [==========] 95.2% (used 1497536 bytes from 1572864 bytes) ;WLEDMM: see below ; [env:wemos_shield_esp32] @@ -2435,9 +2439,9 @@ 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) -D WLED_ENABLE_DMX_INPUT ;; needs more testing ;-D WLED_DEBUG_HOST='"192.168.x.x"' ;; to disable net print - -D USERMOD_ANIMARTRIX ;; Tips our memory usage over the limit + ${common_mm.animartrix_build_flags} ;; Tips our memory usage over the limit -DUSERMOD_ARTIFX ;; over the limit - -DWLEDMM_FASTPATH ;; needs more testing on -C3 + -DWLED_ENABLE_FULL_FONTS ;; removing full unicode support saves 10KB of flash build_flags = ${common.build_flags} ${esp32c3.build_flags} ; -D WLED_DISABLE_OTA ;; OTA is not possible for boards with 2MB flash only (like some Ai-Thinker ESP32-C3-12F models) @@ -2462,14 +2466,15 @@ build_flags = ${common.build_flags} ${esp32c3.build_flags} -D SR_DMTYPE=1 -D I2S_SDPIN=5 -D I2S_WSPIN=6 -D I2S_CKPIN=4 -D MCLK_PIN=7 ; -D WLED_USE_MY_CONFIG -D WLED_DISABLE_PARTICLESYSTEM1D ;; exceeds flash size limit - -D WLED_DISABLE_PARTICLESYSTEM2D ;; exceeds flash size limit + ;; -D WLED_DISABLE_PARTICLESYSTEM2D ;; exceeds flash size limit lib_deps = ${esp32c3.lib_deps} ${common_mm.lib_deps_S} ${common_mm.lib_deps_V4_M} lib_ignore = ;IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compilation OneWire ; not needed as we don't include USERMOD_DALLASTEMPERATURE U8g2 ; not needed as we don't include USERMOD_FOUR_LINE_DISPLAY -; RAM: [== ] 24.6% (used 80732 bytes from 327680 bytes) -; Flash: [==========] 97.5% (used 1533360 bytes from 1572864 bytes) + ${common_mm.animartrix_lib_ignore} ;; Tips our memory usage over the limit +; RAM: [== ] 24.7% (used 81004 bytes from 327680 bytes) +; Flash: [==========] 99.2% (used 1559754 bytes from 1572864 bytes) ;; MM environment for ESP32-C3 "mini" and "super mini" -> flash mode "dio" instead of "qio" (see #101) [env:esp32c3mini_dio_4MB_M] extends = env:esp32c3dev_4MB_M @@ -2484,18 +2489,16 @@ build_flags = ${env:esp32c3dev_4MB_M.build_flags} -DARDUINO_USB_CDC_ON_BOOT=0 -D WLED_RELEASE_NAME=esp32c3mini_dio_4MB_M -D WLED_DISABLE_BROWNOUT_DET ;; the board only has a 500mA LDO, better to disable brownout detection - -D WLED_DISABLE_ADALIGHT ;; to disable serial protocols for boards with CDC USB (Serial RX will receive junk commands, unless its pulled down by resistor) -D HW_PIN_SDA=0 -D HW_PIN_SCL=1 ;; avoid pin conflicts - -D WLED_DISABLE_PARTICLESYSTEM1D ;; exceeds flash size limit - -D WLED_DISABLE_PARTICLESYSTEM2D ;; exceeds flash size limit -; RAM: [== ] 24.6% (used 80556 bytes from 327680 bytes) -; Flash: [==========] 97.3% (used 1530346 bytes from 1572864 bytes) +; RAM: [== ] 24.7% (used 80828 bytes from 327680 bytes) +; Flash: [==========] 99.0% (used 1556768 bytes from 1572864 bytes) [env:esp32c3dev_2MB_M] extends = env:esp32c3dev_4MB_M board = lolin_c3_mini ;;; replace WLED_RELEASE_NAME, disable CDC_ON_BOOT build_unflags = ${env:esp32c3dev_4MB_M.build_unflags} + -DWLED_ENABLE_FULL_FONTS ;; removing full unicode support saves 10KB of flash -DARDUINO_USB_CDC_ON_BOOT=1 -D WLED_RELEASE_NAME=esp32c3dev_4MB_M @@ -2515,9 +2518,9 @@ build_flags = ${env:esp32c3dev_4MB_M.build_flags} -D WLED_DISABLE_ADALIGHT ;; to disable serial protocols for boards with CDC USB (Serial RX will receive junk commands, unless its pulled down by resistor) -D HW_PIN_SDA=0 -D HW_PIN_SCL=1 ;; avoid pin conflicts -D WLED_DISABLE_PARTICLESYSTEM1D ;; exceeds flash size limit - -D WLED_DISABLE_PARTICLESYSTEM2D ;; exceeds flash size limit -; RAM: [== ] 24.0% (used 78676 bytes from 327680 bytes) -; Flash: [==========] 96.4% (used 1516068 bytes from 1572864 bytes) + ;; -D WLED_DISABLE_PARTICLESYSTEM2D ;; exceeds flash size limit +; RAM: [== ] 24.1% (used 78948 bytes from 327680 bytes) +; Flash: [==========] 98.0% (used 1541914 bytes from 1572864 bytes) ;; MM environment for "seeed xiao -C3" boards [env:seeed_esp32c3_4MB_S] @@ -2525,10 +2528,9 @@ extends = env:esp32c3dev_4MB_M board = seeed_xiao_esp32c3 platform = ${esp32.platformV4_pre} ;; standard IDF 4.4.1 platform - seems to work better for seeed xiao board platform_packages = ${esp32.platformV4_packages_pre} -board_build.flash_mode = qio +board_build.flash_mode = dio upload_speed = 460800 build_unflags = ${env:esp32c3dev_4MB_M.build_unflags} - -DWLEDMM_FASTPATH ;; needs more testing on -C3 -D WLED_ENABLE_HUB75MATRIX ;; not enough pins -DARDUINO_USB_CDC_ON_BOOT=1 ;; hangs on boot build_flags = ${common.build_flags} ${esp32c3.build_flags} @@ -2552,8 +2554,8 @@ build_flags = ${common.build_flags} ${esp32c3.build_flags} lib_deps = ${esp32c3.lib_deps} ${common_mm.lib_deps_S} lib_ignore = IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compilation monitor_filters = esp32_exception_decoder -; RAM: [== ] 22.4% (used 73388 bytes from 327680 bytes) -; Flash: [========= ] 92.7% (used 1458598 bytes from 1572864 bytes) +; RAM: [== ] 22.5% (used 73740 bytes from 327680 bytes) +; Flash: [==========] 96.3% (used 1515336 bytes from 1572864 bytes) # ------------------------------------------------------------------------------ # custom board environments # ------------------------------------------------------------------------------