# Capture watchdog reset

**URL:** <https://community.particle.io/t/capture-watchdog-reset/42330>\
**Category:** Firmware\
**Created:** [June 8, 2018, 5:51pm UTC](https://community.particle.io/t/capture-watchdog-reset/42330 "2018-06-08T17:51:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joost](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/joost/32/18337_2.png) [@joost](https://community.particle.io/u/joost)\
**Post date:** [June 8, 2018, 5:51pm UTC](https://community.particle.io/t/capture-watchdog-reset/42330/1 "2018-06-08T17:51:03Z")

</div>

I am using the watchdog defined in stm32f2xx\_iwdg.c - seems to work well. However, I would like to capture the number of times my product has reset due to a watchdog time out. The product may be reset “manually” as well so not every reset can be counted as a watchdog reset.

Ideally, I would like to capture the IWDG\_ reset before the actual system.reset happens (so I can set a retained variable). Is this at all possible?
