Tool/software: Code Composer Studio
Hi
I have a running application, and I am now working on implementing watchdog.
I set up the watchdog for RESET, and this works fine: When I stop feeding (Watchdo_clear()), it resets as it is supposed to do.
So far, so good.
But when my application enters sleep mode, it seems like the watchdog is still running, and my application resets.
As I read the documentation and other forum posts, the WD should not be running during sleep?
I have then tried to stop the watchdog, bu calling Watchdog_Close().
But this has no effect. The aaplication still resets after putting it to sleep.
This is my code for starting the watchdog:
Watchdog_Params_init(¶ms);
params.resetMode = Watchdog_RESET_ON;
watchdogHandle = Watchdog_open(Board_WATCHDOG0, ¶ms);
Watchdog_setReload( watchdogHandle, 800000 );
And I try to stop it like this:
Watchdog_clear( watchdogHandle );
Watchdog_close( watchdogHandle );
Why can't I stop the watchdog?
Thanks
Kaare