From 86c647e93fefe5a5dff894f94b4d0b68c4103618 Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Thu, 16 Mar 2023 09:52:04 +0800 Subject: [PATCH] docs: add note about configuring panic/system reset for task WDT Closes https://github.com/espressif/esp-idf/issues/10995 --- docs/en/api-reference/system/wdts.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/en/api-reference/system/wdts.rst b/docs/en/api-reference/system/wdts.rst index 2a3845af8fb..3d5e9cd21be 100644 --- a/docs/en/api-reference/system/wdts.rst +++ b/docs/en/api-reference/system/wdts.rst @@ -112,6 +112,11 @@ The following config options control TWDT configuration. They are all enabled by - :ref:`CONFIG_ESP_TASK_WDT_CHECK_IDLE_TASK_CPU0` - {IDF_TARGET_IDLE_TASK} is subscribed to the TWDT during startup. If this option is disabled, it is still possible to subscribe the idle task by calling :cpp:func:`esp_task_wdt_init` again. :not CONFIG_FREERTOS_UNICORE: - :ref:`CONFIG_ESP_TASK_WDT_CHECK_IDLE_TASK_CPU1` - CPU1 Idle task is subscribed to the TWDT during startup. +.. note:: + + On a TWDT timeout the default behaviour is to simply print a warning and a backtrace before continuing running the app. If you want a timeout to cause a panic and a system reset then this can be configured through :ref:`CONFIG_ESP_TASK_WDT_PANIC`. + + .. only:: SOC_XT_WDT_SUPPORTED XTAL32K Watchdog Timer (XTWDT)