From 62b1422111228a4337505f0f67e0c96887fa8db2 Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Wed, 22 Feb 2023 18:06:34 +0100 Subject: [PATCH] enable core debug messages in 16MB_max_debug configs --- platformio.ini | 12 +++++++++++- wled00/wled00.ino.cpp | 15 +++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 wled00/wled00.ino.cpp diff --git a/platformio.ini b/platformio.ini index 54605ba2..4080e6b4 100644 --- a/platformio.ini +++ b/platformio.ini @@ -60,7 +60,7 @@ default_envs = esp32_pico_4MB_max esp32_4MB_PSRAM_max esp32S3_8MB_max - esp32s2_tinyUF2_PSRAM_max ;; experimental - only for adafruit -S2 boards with UF2 bootloader !!! + esp32s2_tinyUF2_PSRAM_max ;; experimental - only for adafruit -S2 boards with tinyUF2 bootloader !!! esp32c3dev_4MB_max ;; experimental esp32_4MB_V4_min ;; experimental esp32_16MB_V4_max ;; experimental @@ -943,9 +943,13 @@ board_build.partitions = ${Board_ESP32_16MB.board_build.partitions} [env:esp32_16MB_max_debug] extends = esp32_4MB_max_base +build_unflags = ${common.build_unflags} + -D CORE_DEBUG_LEVEL=0 build_flags = ${esp32_4MB_max_base.build_flags} -D WLED_RELEASE_NAME=esp32_16MB_max_debug -D WLED_DEBUG -D SR_DEBUG + ; -D MIC_LOGGER + -D CORE_DEBUG_LEVEL=4 ;; 0=none, 1=error, 2=warning, 3=info, 4=debug, 5=verbose board = ${Board_ESP32_16MB.board} board_build.partitions = ${Board_ESP32_16MB.board_build.partitions} monitor_filters = esp32_exception_decoder @@ -1131,14 +1135,20 @@ board_build.partitions = ${Board_ESP32_16MB.board_build.partitions} [env:esp32_16MB_V4_max_debug] extends = esp32_4MB_V4_max_base +build_unflags = ${common.build_unflags} + -D CORE_DEBUG_LEVEL=0 build_flags = ${esp32_4MB_V4_max_base.build_flags} -D WLED_RELEASE_NAME=esp32_16MB_V4_max_debug -D WLED_DEBUG -D SR_DEBUG + ; -D MIC_LOGGER + -D CORE_DEBUG_LEVEL=4 ;; 0=none, 1=error, 2=warning, 3=info, 4=debug, 5=verbose -D WLED_WATCHDOG_TIMEOUT=0 #-D WLED_DISABLE_BROWNOUT_DET -D ARDUINO_USB_CDC_ON_BOOT=0 ; needed for arduino-esp32 >=2.0.4; avoids errors on startup board = ${Board_ESP32_16MB.board} board_build.partitions = ${Board_ESP32_16MB.board_build.partitions} monitor_filters = esp32_exception_decoder +; RAM: [== ] 25.0% (used 81780 bytes from 327680 bytes) +; Flash: [======== ] 76.9% (used 1611861 bytes from 2097152 bytes) ;; experimental environment for boards with PSRAM (needs ESP-IDF 4.4.1). [env:esp32_4MB_PSRAM_max] diff --git a/wled00/wled00.ino.cpp b/wled00/wled00.ino.cpp new file mode 100644 index 00000000..6dbd505f --- /dev/null +++ b/wled00/wled00.ino.cpp @@ -0,0 +1,15 @@ +# 1 "C:\\Users\\Frank\\AppData\\Local\\Temp\\tmpewo3dp0a" +#include +# 1 "D:/ARDUINO_Work/WORK/#ESP32/WLED_soundreactive-GitHub_DEV/WLED_MoonModules/WLED_mdev_clean/wled00/wled00.ino" +# 13 "D:/ARDUINO_Work/WORK/#ESP32/WLED_soundreactive-GitHub_DEV/WLED_MoonModules/WLED_mdev_clean/wled00/wled00.ino" +#include "wled.h" +void setup(); +void loop(); +#line 15 "D:/ARDUINO_Work/WORK/#ESP32/WLED_soundreactive-GitHub_DEV/WLED_MoonModules/WLED_mdev_clean/wled00/wled00.ino" +void setup() { + WLED::instance().setup(); +} + +void loop() { + WLED::instance().loop(); +} \ No newline at end of file