Skip to content

Commit 68eee6b

Browse files
committed
re-enable RMTHI for debugging, simplified buildenv for deugging
* re-enabled RMTI on -S3 * added [env:esp32s3dev_8MB_PSRAM_opi]
1 parent d1d020b commit 68eee6b

1 file changed

Lines changed: 29 additions & 22 deletions

File tree

platformio.ini

Lines changed: 29 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -525,10 +525,10 @@ build_flags = -g
525525
-D CONFIG_ASYNC_TCP_TASK_STACK_SIZE=9472 ;; WLEDMM increase stack by 1.25Kb, as audioreactive needs bigger SETTINGS_STACK_BUF_SIZE
526526
-D CONFIG_ASYNC_TCP_STACK_SIZE=9472 ;; *sigh* newer asyncTCP uses this instead of .._TASK_..
527527
-DCO
528-
-D WLED_USE_SHARED_RMT ;; don't use the RMTHI driver (not compatible with -C3)
529528
-DARDUINO_USB_MODE=1 ;; this flag is mandatory for ESP32-C3
530529
;; please make sure that the following flags are properly set (to 0 or 1) by your board.json, or included in your custom platformio_override.ini entry:
531530
;; ARDUINO_USB_CDC_ON_BOOT
531+
-D WLED_USE_SHARED_RMT ;; don't use the RMTHI driver (not compatible with -C3)
532532

533533
lib_deps =
534534
esp32async/AsyncTCP @ 3.4.7
@@ -557,7 +557,7 @@ build_flags = -g
557557
-DCO
558558
;; please make sure that the following flags are properly set (to 0 or 1) by your board.json, or included in your custom platformio_override.ini entry:
559559
;; ARDUINO_USB_MODE, ARDUINO_USB_CDC_ON_BOOT
560-
-D WLED_USE_SHARED_RMT ;; RMTHI causes interrupt watchdog reset - needs more investigation
560+
;-D WLED_USE_SHARED_RMT ;; RMTHI causes interrupt watchdog reset - needs more investigation
561561
lib_deps =
562562
esp32async/AsyncTCP @ 3.4.7
563563
makuna/NeoPixelBus @ 2.7.9 ;; experimental
@@ -811,27 +811,34 @@ board_build.flash_mode = dio ;; some boards do not boot with the faster "qio" mo
811811
;; ; board_build.flash_mode = dio ;; try this if you have problems at startup
812812
;; monitor_filters = esp32_exception_decoder
813813

814-
;; [env:esp32s3dev_8MB_PSRAM_opi]
814+
815+
;; only for testing.
816+
[env:esp32s3dev_8MB_PSRAM_opi]
815817
;; ESP32-S3 development board, with 8MB FLASH and >= 8MB PSRAM (memory_type: qio_opi)
816-
;; board = esp32-s3-devkitc-1 ;; generic dev board; the next line adds PSRAM support
817-
;; board_build.arduino.memory_type = qio_opi ;; use with PSRAM: 8MB or 16MB
818-
;; platform = ${esp32s3.platform}
819-
;; platform_packages = ${esp32s3.platform_packages}
820-
;; upload_speed = 921600
821-
;; build_unflags = ${common.build_unflags}
822-
;; build_flags = ${common.build_flags} ${esp32s3.build_flags}
823-
;; -D CONFIG_LITTLEFS_FOR_IDF_3_2 -D WLED_WATCHDOG_TIMEOUT=0
824-
;; ;-D ARDUINO_USB_CDC_ON_BOOT=0 ;; -D ARDUINO_USB_MODE=1 ;; for boards with serial-to-USB chip
825-
;; -D ARDUINO_USB_CDC_ON_BOOT=1 -D ARDUINO_USB_MODE=1 ;; for boards with USB-OTG connector only (USBCDC or "TinyUSB")
826-
;; ; -D WLED_RELEASE_NAME=ESP32-S3_PSRAM
827-
;; -D WLED_USE_PSRAM -DBOARD_HAS_PSRAM ; tells WLED that PSRAM shall be used
828-
;; -D WLED_USE_PSRAM_JSON -DALL_JSON_TO_PSRAM ; WLEDMM --> force all JSON stuff into PSRAM; gives more free heap
829-
;; lib_deps = ${esp32s3.lib_deps}
830-
;; ${esp32.AR_lib_deps}
831-
;; board_build.partitions = ${esp32.large_partitions}
832-
;; board_build.f_flash = 80000000L
833-
;; board_build.flash_mode = qio
834-
;; monitor_filters = esp32_exception_decoder
818+
board = esp32-s3-devkitc-1 ;; generic dev board; the next lines add PSRAM support
819+
board_build.flash_mode = qio
820+
board_build.arduino.memory_type = qio_opi ;; use with PSRAM: 8MB or 16MB
821+
platform = ${esp32s3.platform}
822+
platform_packages = ${esp32s3.platform_packages}
823+
upload_speed = 921600
824+
build_unflags = ${common.build_unflags}
825+
; -DCORE_DEBUG_LEVEL=0
826+
;;-DNDEBUG ;; removing this flag leads to a massive flood of runtime warnings from NeoPixelBus 2.7.9
827+
build_flags = ${common.build_flags} ${esp32s3.build_flags}
828+
; -DCORE_DEBUG_LEVEL=5
829+
;;-DWLED_DEBUG ; -DDEBUG
830+
; -D WLED_USE_SHARED_RMT ;; RMTHI causes interrupt watchdog reset - needs more investigation
831+
-D ARDUINO_USB_CDC_ON_BOOT=0 -D ARDUINO_USB_MODE=1 ;; for boards with serial-to-USB chip
832+
;;-D ARDUINO_USB_CDC_ON_BOOT=1 -D ARDUINO_USB_MODE=1 ;; for boards with USB-OTG connector only (USBCDC or "TinyUSB")
833+
-D WLED_RELEASE_NAME=ESP32-S3_PSRAM_opi
834+
-D BOARD_HAS_PSRAM -D WLED_USE_PSRAM ; tells WLED that PSRAM shall be used
835+
-D WLED_USE_PSRAM_JSON -D ALL_JSON_TO_PSRAM ; WLEDMM --> force all JSON stuff into PSRAM; gives more free heap
836+
lib_deps = ${esp32s3.lib_deps}
837+
${esp32.AR_lib_deps}
838+
board_build.partitions = ${esp32.large_partitions}
839+
board_build.f_flash = 80000000L
840+
monitor_filters = esp32_exception_decoder
841+
835842

836843
;; [env:esp32s3dev_16MB_PSRAM_opi]
837844
;; extends = env:esp32s3dev_8MB_PSRAM_opi

0 commit comments

Comments
 (0)