Closed AZDane closed 4 months ago
It might be a watchdog reset. The main loop in wled_serial.cpp runs as long as there is data in the serial receive buffer. At 230Kbaud, this is basically "always". So after max 300ms of continuously receiving, the task watchdog will bite, and esp32 reboots.
The solution could be to add a time limit to the while
loop, and force-exit after maybe 30ms of receiving - this would be needed any way, to ensure that other WLED features have a chance to run.
Hey! This issue has been open for quite some time without any new comments now. It will be closed automatically in a week if no further activity occurs. Thank you for using WLED! ✨
What happened?
Adalight over serial causes ESP 32 (CP2104) crash.
To Reproduce Bug
To replicate, use HyperHDR to send adalight data over a serial connection to ESP 32 board. Board will crash and reboot after a short period of time. Lowest baud rates will not crash the ESP 32, but will be unusable for my purpose. I use 266 SK6812 LEDs for TV Ambilight.
Expected Behavior
Serial data should not cause board crashes.
Install Method
Binary from WLED.me
What version of WLED?
WLED 14.0b6
Which microcontroller/board are you seeing the problem on?
ESP32
Relevant log/trace output
No response
Anything else?
No response
Code of Conduct