From 890aa6f9ac99430552758d9c15e308aea5ba0151 Mon Sep 17 00:00:00 2001 From: Frank Date: Wed, 22 Mar 2023 00:46:27 +0100 Subject: [PATCH] experimental esp32 buildenv with platform = espressif32@5.2.0 experimental ESP32 buildenv using ESP-IDF V4.4.x / arduino-esp32 v2.0.5 Warning: this build environment is not stable!! --- platformio.ini | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/platformio.ini b/platformio.ini index c684b57c7..7dbbfd123 100644 --- a/platformio.ini +++ b/platformio.ini @@ -227,6 +227,26 @@ lib_deps = makuna/NeoPixelBus @ 2.6.9 https://github.com/pbolduc/AsyncTCP.git @ 1.2.0 + +[esp32_idf_V4] +;; experimental buildenv for ESP32 using ESP-IDF 4.4.x / arduino-esp32 v2.0.5 +;; very similar to the normal ESP32 flags, but omitting Lorol LittleFS, as littlefs is included in the new framework already. +;; +;; please note that you can NOT update existing ESP32 installs with a "V4" build. Also updating by OTA will not work properly. +;; You need to completely erasse your device (esptool erase_flash) first, then install the "V4" build from VSCode+platformio. +platform = espressif32@5.2.0 +platform_packages = +build_flags = -g + -DARDUINO_ARCH_ESP32 -DESP32 + #-DCONFIG_LITTLEFS_FOR_IDF_3_2 + -D CONFIG_ASYNC_TCP_USE_WDT=0 + -DARDUINO_USB_CDC_ON_BOOT=0 ;; this flag is mandatory for "classic ESP32" when builing with arduino-esp32 >=2.0.3 +default_partitions = tools/WLED_ESP32_4MB_1MB_FS.csv +lib_deps = + ${env.lib_deps} + makuna/NeoPixelBus @ 2.7.3 + https://github.com/pbolduc/AsyncTCP.git @ 1.2.0 + [esp32s2] ;; generic definitions for all ESP32-S2 boards platform = espressif32@5.2.0 @@ -378,6 +398,21 @@ board_build.partitions = ${esp32.default_partitions} board_build.f_flash = 80000000L board_build.flash_mode = qio +[env:esp32dev_V4_qio80] +;; 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} +monitor_filters = esp32_exception_decoder +board_build.partitions = ${esp32_idf_V4.default_partitions} +board_build.f_flash = 80000000L +board_build.flash_mode = dio + [env:esp32_eth] board = esp32-poe platform = ${esp32.platform}