Forums - Difference between Watchdog timer period and timeout

2 posts / 0 new
Last post
Difference between Watchdog timer period and timeout
aswin.v
Join Date: 22 Feb 17
Posts: 12
Posted: Wed, 2017-02-22 23:19

Hello,

I am developing a CSRmesh application.I would like to know following things related to watch dog timer.

1.What is the difference between Watchdog timer period and timeout.? I understand that timeout will reset the application.But what is timer period is doing?

2. What type of watch dog timer is in CSR1010.? Can it reset under hardware issues like some error in oscillation of external crystal?

3.Do the built in watch dog timer can reset under all hanging condition like hanging due to software and hardware?

  • Up0
  • Down0
abarak Moderator
Join Date: 7 Jun 16
Posts: 13
Posted: Tue, 2017-06-13 06:49
Please look at the fields in CsConfig tool for explanation.
Watchdog consists of 2 tasks:
1. A timer that counts back from "Watchdog timeout" - when reaches 0, resets the chip.
2. A background low priority task that counts back from "Watchdog period" - when reaches 0, "kicks" the first task to start counting from original value.
If the SW hangs for any reason, the second task will not run, therefore will not kick the first one, so the first task will timeout and will reset the chip.
Note comment for "Watchdog timeout":
"must be greater than the watchdog period "wd_period" and is recommended to be at least 125% of that value."
This is obviously for the second task to kick the first one before it times out.
  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.