Improvements for -S2

- new partition table for boards with UF2 boot (Adafruit qt py S2)
- better treatment of debug out using "USBCDC" native port
- workarounds for watchdog crashes on -S2
- Add missing but mandatory build flags for -S2 and -C3
This commit is contained in:
Frank
2022-12-21 17:25:41 +01:00
parent 028b12cc5e
commit f9b9716fdd
7 changed files with 57 additions and 11 deletions

View File

@@ -260,6 +260,7 @@ build_flagsV4 = -g
-DARDUINO_ARCH_ESP32 -DESP32
-DCONFIG_LITTLEFS_FOR_IDF_3_2 -DLFS_THREADSAFE
-D CONFIG_ASYNC_TCP_USE_WDT=0
; -DARDUINO_USB_CDC_ON_BOOT=0 ;; mandatory for "classic ESP32" when builing with arduino-esp32 >=2.0.3
;;; V4.4.x libraries (without LOROL_LITTLEFS; with newer NeoPixelBus)
lib_depsV4 =
${env.lib_deps}
@@ -274,10 +275,11 @@ build_flags = -g
-DCONFIG_IDF_TARGET_ESP32S2
-D CONFIG_ASYNC_TCP_USE_WDT=0
-DCO
-DARDUINO_USB_MODE=0 ;; WLEDMM - mandatory for ESP32-S2 when builing with arduino-esp32 >=2.0.3
lib_deps =
${env.lib_deps}
makuna/NeoPixelBus @ 2.6.9
makuna/NeoPixelBus @ 2.7.1 ;; WLEDMM - new version is more stable on -S2
https://github.com/pbolduc/AsyncTCP.git @ 1.2.0
[esp32c3]
@@ -287,6 +289,7 @@ build_flags = -g
-DCONFIG_IDF_TARGET_ESP32C3
-D CONFIG_ASYNC_TCP_USE_WDT=0
-DCO
-DARDUINO_USB_MODE=1 ;; WLEDMM - mandatory for ESP32-C3 when builing with arduino-esp32 >=2.0.3
lib_deps =
${env.lib_deps}