This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

ASSERTION FAIL [m_cb[p_instance->drv_inst_idx].state == NRFX_DRV_STATE_POWERED_0

Hello, I attempted to enable the zephyr task watchdog model but whenever I configure it to enable the hardware watchdog module I get the error above. Any idea why I am getting this? My code is very similar to the sample project and I have the following config statements:

CONFIG_WATCHDOG=y
CONFIG_WDT_LOG_LEVEL_DBG=y
CONFIG_WDT_DISABLE_AT_BOOT=n
CONFIG_TASK_WDT=y
CONFIG_TASK_WDT_MIN_TIMEOUT=100

Thanks!

Parents Reply
  • Simon, as mentioned I am using the zephyr task wdt module which internally configures the hardware wdt. I call the task_wdt_init function first, then task_wdt_add, and finally task_wdt_feed on a periodic event. Here is the link for the module code link. In the code, you can see that wdt_setup function is called within task_wdt_add.

    Please note that within task_wdt_add,  task_wdt_feed is called before wdt_setup which in turn call wdt_feed function. Not sure if this problematic. 

    Any ideas on how to proceed? Has the task_wdt module ever worked on a nordic SoC? Thx!

Children
No Data
Related