Doubts about PSOC WDT | Cypress Semiconductor
Doubts about PSOC WDT
We are developing system where we need to use the WDT as safety method for system SW crash.
The WDT in only RESET works properly, (CY_SYS_WDT_MODE_RESET), but when we set WDT into ISR and Reset mode, it doesnt work properly, why?,
We have this code
With the Start function, we initialize the WDT, with a predefine time, that we obtain in the input argument of the function.
With the clear function we "clear or reset" the counter, to prevent the reset.
If we stay some time in a infinite loop, and don't want it, don't clear the WDT, and enter in Wdt_ISR_Stop(); we stop to attend the ISR, the system will be reboot in the third unattended ISR. If for some reason, between the RESET and the first ISR didn,t attend, the SW get out from the loop, and we have others ClearWdt, the reset won´t occur. It seems that CySysWdtResetCounters(CY_SYS_WDT_COUNTER0_RESET) function, reset the ISR unattended counter.
Thanks for all