From fb4524302397223735c98d70b7122c1ce8b264d7 Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Fri, 2 Dec 2022 00:18:03 +0100 Subject: [PATCH] DMX out: warning when compiling with new ESP-IDF versions I have observed crashes (watchdog timeout) so let's warn users ... E (24101) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time: E (24101) task_wdt: - IDLE (CPU 0) E (24101) task_wdt: Tasks currently running: E (24101) task_wdt: CPU 0: FFT E (24101) task_wdt: CPU 1: IDLE E (24101) task_wdt: Aborting. abort() was called at PC 0x40143b6c on core 0 Backtrace:0x4008500d:0x3ffbf28c |<-CORRUPTED --- wled00/dmx.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/wled00/dmx.cpp b/wled00/dmx.cpp index 0bdb4b64..0549e198 100644 --- a/wled00/dmx.cpp +++ b/wled00/dmx.cpp @@ -12,6 +12,20 @@ #ifdef WLED_ENABLE_DMX +// WLEDMM: seems that DMX output triggers watchdog resets when compiling for IDF 4.4.x +#ifdef ARDUINO_ARCH_ESP32 +#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 2, 0) +#warning DMX output support might cause watchdog reset when compiling with ESP-IDF V4.4.x +// E (24101) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time: +// E (24101) task_wdt: - IDLE (CPU 0) +// E (24101) task_wdt: Tasks currently running: +// E (24101) task_wdt: CPU 0: FFT +// E (24101) task_wdt: CPU 1: IDLE +// E (24101) task_wdt: Aborting. +//abort() was called at PC 0x40143b6c on core 0 +#endif +#endif + void handleDMX() { // don't act, when in DMX Proxy mode