Task watchdog

Hello, I’m developing application for nRF9160 with Zephyr RTOS.
Currently I want to add a task watchdog module with a hardware watchdog fallback.
I use three threads which task watchdog timeouts are set to 30 seconds, 10 minutes and 30 minutes.


In description of a task_wdt_trigger function in task_wdt.c file, there is an information that CONFIG_TASK_WDT_MIN_TIMEOUT should be set to the minimum task watchdog timeout used in application.

1. What should be CONFIG_TASK_WDT_MIN_TIMEOUT set to if watchdog channels have longer timeout than max CONFIG_TASK_WDT_MIN_TIMEOUT value?
2. Why is CONFIG_TASK_WDT_MIN_TIMEOUT limited to 10000ms if task watchdog timeout can to set any uint32_t value?

  • Hi,

    1. What should be CONFIG_TASK_WDT_MIN_TIMEOUT set to if watchdog channels have longer timeout than max CONFIG_TASK_WDT_MIN_TIMEOUT value?

    Then you should set it to the maximum value meaning 10000. The task watchdog is something that was inherited from Zephyr and wasn't developed by Nordic. Thus, you need to direct this question to Zephyr directly.

    regards

    Jared 

Related