Please kindly advise.
I have disabled the watchdog timer, but it seems to be reset by the watchdog timer.
The following sources. I am using SDK_2.6.0_MKE04Z128xxx4.
Disable the watchdog timer.
WDOG8_GetDefaultConfig (& wdogConfig);
wdogConfig.timeoutValue = WDOG_TIMEOUT;
wdogConfig.enableInterrupt = true;
wdogConfig.enableWdog8 = false; // for debug
WDOG8_Init (WDOG, & wdogConfig);
So, at startup, check with the following function at the beginning.
bool boardResetWDT (void)
{
uint32_t bl = SIM_SRSID_WDOG (1);
uint32_t srsid = (SIM-> SRSID);
.
if ((bl & srsid)! = 0u) { // 1 Reset caused by WDT
return true;
}
return false;
}
Then it will return true.
I left it unattended and restarted surely, so I was investigating whether the watchdog was the cause, but even if I disabled it, it restarted and it seems that the watchdog is the cause, but what is happening? Is not it?
Is there anything other than the watch dock that causes the reboot?
Thank you.
jun.