Closed vortigont closed 1 year ago
@vortigont - I would not use _TASK_SLEEP_ON_IDLE_RUN
on esp32 at all. It never worked reliably.
yeah, it does not work as expected. The thing is looks like you've merged this feature in 3.6.1 recently while before that it was a noop for esp32, that was my surprise to hit a regression. Googled for same issues, looks like some older wroom boards has this issue with RTC watchdog, no solution found. As for S2, my bad, it is not crashing same way but also does not work as expected, looses STA connection, misses beacon frames, etc. I've checked ESP-IDF guides, it has some automatic light sleep mode via RTOS TICKLESS_IDLE, but this option is not enabled in Arduino's core (sigh!). And manual light_sleep call requires some other features to be set, like wifi/gpio wake, etc... Maybe better to disable it as it was before or else replace with vTaskDelay()? :)
Maybe better to disable it as it was before or else replace with vTaskDelay()? :)
or not use _TASK_SLEEP_ON_IDLE_RUN
on esp32 at all... :)
yep, done. that is easy if you know what caused the issue :)
I've hit the issue where watch dog triggers MCU reset if _TASK_SLEEP_ON_IDLE_RUN feature is used. It came out of nowhere in one of my existing projects that was working before. So looks like some combination of Tasks periods triggers it. Reproducible at esp32 and esp32-s2, do not have other boards to test for now. Removing
_TASK_SLEEP_ON_IDLE_RUN
solves the issue completely.I'll try to isolate it and provide the RCA a bit later.