Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years ago.
Implementation of watchdog in STM32L1 series controller.
Unable to implement Watchdog method in STM32L152RE controller for time more than 25 secs (approx.). I need to implement watchdog for at-least 1 hour. Please help.
One hour is a very long time for a watchdog. This is very uncommon as far as I can tell, and it probably means you might want to rethink your strategy with the watchdog. The obvious suggestion is to find a way to check in every 20 seconds or less and report that everything is okay. Watchdog implementation depends on the structure of your program. Do you have one superloop? Are you using threads? I found this article helpful, especially about creating a watchdog task in a multitasking environment.
http://www.barrgroup.com/Embedded-Systems/How-To/Advanced-Watchdog-Timer-Tips
Graham
posted by Graham S. 04 Nov 2016@Graham:Thanks for response. My programs main loop takes only 7 seconds to runs once and then the controller goes to deep-sleep mode for at-least one hour to save battery. Controller wakes up and again runs the main loop once and goes back to sleep. I want to implement 1+ hour watchdog to wake up the controller from deep-sleep if its stuck in deep-sleep for more than 1 hour. Any help is appreciated.
Prerak
posted by PRERAK UJGARE 04 Nov 2016