2014-01-21 04:46 AM
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,2014-01-21 06:32 AM
Any suggestion to solve this problem in my project?
Rethink your delay loop2014-01-21 06:49 AM
''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.