When I turn on watchod current consmuption rasises about 2uA ( it is about 50% more than without watchdog) - I want to get lowest power consumption while waiting for semaphore.
Is it possible that simple watchgod uses so much current ?
Initialziation looks like this (30sec reload):
int WatchdogInit(void)
{
int wdt_channel_id;
int err;
WdtDev = DEVICE_DT_GET(DT_ALIAS(watchdog0));
struct wdt_timeout_cfg wdt_config = {
.window.min = 0U,
.window.max = WDT_TIMEOUT_MS,
.flags = WDT_FLAG_RESET_SOC,
.callback = NULL
};
wdt_channel_id = wdt_install_timeout(WdtDev, &wdt_config);
wdt_setup(WdtDev, WDT_OPT_PAUSE_HALTED_BY_DBG);
CLR_WDT();
return wdt_channel_id;
}
I have an external 32 kHz crystal. And current consumption without watchodg is 4.3uA