AnsweredAssumed Answered

MKV4x Watchdog refresh problem

Question asked by agostino facotti on Apr 27, 2018
Latest reply on Apr 27, 2018 by agostino facotti



I'm trying to add the watchdog on a MKV42F128VLH16 but i noticed the following issue:

- when the refresh happens too frequently the watchdog causes reset.


Trying more I see that adding a small for loop that eat time resolves the problem.

Someone has an idea on why this happens?


I'm attaching a sample project that shows the two behaviour; in main():

- with the "#if 0" the MCU reset after the timeout period;

- changing "#if 0" to "#if 1" the refresh is correct.