compilation support for IDF4.4.3, plus compiling for ESP32-S3
- Updated ESP32 targets to use IDF 4.4.3 (thanks tasmota!) - Fixed a compilation problem in ARTI (WLED_FS instead of LITTLEFS) - Initial compilation support for ESP32-S3. Warning: there are still many problems to be solved before -S3 becomes usable! - audioreactive: added #ifdef for features not yet supported on ESP32-S3
This commit is contained in:
@@ -115,6 +115,7 @@ build_flags =
|
||||
-D DECODE_SONY=true
|
||||
-D DECODE_SAMSUNG=true
|
||||
-D DECODE_LG=true
|
||||
-D DECODE_RC5=true
|
||||
-DWLED_USE_MY_CONFIG
|
||||
; -D USERMOD_SENSORSTOMQTT
|
||||
|
||||
@@ -129,6 +130,7 @@ build_flags_all_features =
|
||||
|
||||
build_flags_esp8266 = ${common.build_flags} ${esp8266.build_flags}
|
||||
build_flags_esp32 = ${common.build_flags} ${esp32.build_flags}
|
||||
build_flags_esp32s3 = ${common.build_flags} ${esp32s3.build_flags}
|
||||
|
||||
ldscript_1m128k = eagle.flash.1m128.ld
|
||||
ldscript_2m512k = eagle.flash.2m512.ld
|
||||
@@ -208,25 +210,30 @@ lib_deps =
|
||||
makuna/NeoPixelBus @ 2.6.9
|
||||
|
||||
[esp32]
|
||||
#platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.2.3/platform-espressif32-2.0.2.3.zip
|
||||
platform = espressif32@3.5.0
|
||||
#platform = espressif32@3.5.0
|
||||
#platform_packages = framework-arduinoespressif32 @ https://github.com/Aircoookie/arduino-esp32.git#1.0.6.4
|
||||
|
||||
platform_packages = framework-arduinoespressif32 @ https://github.com/Aircoookie/arduino-esp32.git#1.0.6.4
|
||||
;; use latest tasmota framework, including IDF v4.4.3 and arduino-esp32 v2.0.4
|
||||
framework = arduino
|
||||
platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.4.1/platform-espressif32-2.0.4.1.zip
|
||||
platform_packages =
|
||||
|
||||
build_flags = -g
|
||||
-DARDUINO_ARCH_ESP32
|
||||
#-DCONFIG_LITTLEFS_FOR_IDF_3_2
|
||||
; -DCONFIG_LITTLEFS_FOR_IDF_3_2
|
||||
-D CONFIG_LITTLEFS_FOR_IDF_3_2 -D CONFIG_LITTLEFS_SPIFFS_COMPAT=1 -D CONFIG_LITTLEFS_CACHE_SIZE=512
|
||||
-D WLED_WATCHDOG_TIMEOUT=0
|
||||
-D CONFIG_ASYNC_TCP_USE_WDT=0
|
||||
#use LITTLEFS library by lorol in ESP32 core 1.x.x instead of built-in in 2.x.x
|
||||
-D LOROL_LITTLEFS
|
||||
; -D LOROL_LITTLEFS
|
||||
|
||||
default_partitions = tools/WLED_ESP32_4MB_1MB_FS.csv
|
||||
|
||||
lib_deps =
|
||||
${env.lib_deps}
|
||||
; https://github.com/lorol/LITTLEFS.git
|
||||
; WLEDSR specific: use patched version of lorol LittleFS
|
||||
https://github.com/softhack007/LITTLEFS-threadsafe.git#master
|
||||
; WLEDSR specific: use patched version of lorol LittleFS - unless using IDF v4
|
||||
; https://github.com/softhack007/LITTLEFS-threadsafe.git#master
|
||||
makuna/NeoPixelBus @ 2.6.9
|
||||
https://github.com/pbolduc/AsyncTCP.git @ 1.2.0
|
||||
|
||||
@@ -236,6 +243,7 @@ build_flags = -g
|
||||
-DARDUINO_ARCH_ESP32S2
|
||||
-DCONFIG_IDF_TARGET_ESP32S2
|
||||
-D CONFIG_ASYNC_TCP_USE_WDT=0
|
||||
-D WLED_NO_I2S1_BUS
|
||||
-DCO
|
||||
|
||||
lib_deps =
|
||||
@@ -243,12 +251,35 @@ lib_deps =
|
||||
makuna/NeoPixelBus @ 2.6.9
|
||||
https://github.com/pbolduc/AsyncTCP.git @ 1.2.0
|
||||
|
||||
|
||||
[esp32s3]
|
||||
build_flags = -g
|
||||
-DESP32
|
||||
-DARDUINO_ARCH_ESP32
|
||||
-DARDUINO_ARCH_ESP32S3
|
||||
-DCONFIG_IDF_TARGET_ESP32S3
|
||||
-D CONFIG_ASYNC_TCP_USE_WDT=0
|
||||
-D CONFIG_LITTLEFS_FOR_IDF_3_2 -D CONFIG_LITTLEFS_SPIFFS_COMPAT=1 -D CONFIG_LITTLEFS_CACHE_SIZE=512
|
||||
-D WLED_NO_I2S0_BUS
|
||||
-D WLED_NO_I2S1_BUS
|
||||
-D WLED_RELEASE_NAME=ESP32S3 -D WLED_DISABLE_BROWNOUT_DET -D WLED_WATCHDOG_TIMEOUT=0
|
||||
-D ARDUINO_USB_MODE=1 -D ARDUINO_USB_CDC_ON_BOOT=0 -D ARDUINO_USB_MSC_ON_BOOT=0
|
||||
-DCO
|
||||
|
||||
lib_deps =
|
||||
${env.lib_deps}
|
||||
https://github.com/Makuna/NeoPixelBus.git#master @ 2.7.0
|
||||
https://github.com/pbolduc/AsyncTCP.git @ 1.2.0
|
||||
|
||||
|
||||
[esp32c3]
|
||||
build_flags = -g
|
||||
-DARDUINO_ARCH_ESP32
|
||||
-DARDUINO_ARCH_ESP32C3
|
||||
-DCONFIG_IDF_TARGET_ESP32C3
|
||||
-D CONFIG_ASYNC_TCP_USE_WDT=0
|
||||
-D WLED_NO_I2S0_BUS
|
||||
-D WLED_NO_I2S1_BUS
|
||||
-DCO
|
||||
|
||||
lib_deps =
|
||||
@@ -444,6 +475,26 @@ lib_deps = ${esp8266.lib_deps}
|
||||
# ------------------------------------------------------------------------------
|
||||
# custom board configurations
|
||||
# ------------------------------------------------------------------------------
|
||||
[env:esp32s3-mdev]
|
||||
board = esp32-s3-devkitc-1
|
||||
platform = ${esp32.platform}
|
||||
upload_speed = 460800 ; or 921600
|
||||
platform_packages = ${esp32.platform_packages}
|
||||
build_unflags = ${common.build_unflags}
|
||||
|
||||
build_flags = ${common.build_flags_esp32s3}
|
||||
-D WLED_RELEASE_NAME=ESP32S3 #-D WLED_DISABLE_BLYNK #-D WLED_DISABLE_BROWNOUT_DET
|
||||
-D USERMOD_AUDIOREACTIVE
|
||||
-D UM_AUDIOREACTIVE_USE_NEW_FFT
|
||||
-D USERMOD_CUSTOMEFFECTS
|
||||
|
||||
lib_deps = ${esp32s3.lib_deps}
|
||||
; https://github.com/blazoncek/arduinoFFT.git ; arduinoFFT @ 1.5.6
|
||||
https://github.com/kosme/arduinoFFT#develop @ 1.9.2
|
||||
|
||||
board_build.partitions = tools/WLED_ESP32_8MB.csv
|
||||
board_build.f_flash = 80000000L
|
||||
board_build.flash_mode = dio
|
||||
|
||||
[env:esp32mdev]
|
||||
board = esp32dev
|
||||
|
||||
Reference in New Issue
Block a user