cancel
Showing results for 
Search instead for 
Did you mean: 

STM32f10x WWDG ''Window WatchDog Timer''

fatemehjml
Associate II
Posted on January 21, 2014 at 13:46

Hello

   I am using STM32f103RET6 in my project. This project is very important and device should never stop working. Also device is remote and it is not possible to reset it easily.

I try to use WWDG for unforeseen cpu faults. The problem is that I use 1sec delay loop in my project and the MAX timeout time for WWDG is about 58ms. When I use it in my project device reset before one loop running. Any suggestion to solve this problem in my project?

Regards,

Thanks,
2 REPLIES 2
Posted on January 21, 2014 at 15:32

Any suggestion to solve this problem in my project?

Rethink your delay loop
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
chen
Associate II
Posted on January 21, 2014 at 15:49

''Rethink your delay loop ''

LOL - Harsh but true ;)

Try a delay of 10ms and in your main loop count 100 of these delays.

On the 100th count - execute what you have now.

In the main loop - kick the WDT ie it get kicked every 10ms.

Also be sure to check the execution time of what ever is being executed - make sure it is shorter than the WDT period.

If it is longer - you will have to add some mode 'kick the WDT' in the code at regular time intervals.