cancel
Showing results for 
Search instead for 
Did you mean: 

Watch dog reset flag on STM32F051

CAPOSIENA.Philippe
Associate II
Posted on April 08, 2016 at 18:43

Hello,

i'm using a STM32F051 and i want to know if the reset is a watch dog reset or not.

I read the flag IWDGRSTF in the CSR register (RCC peripheral) but this bit is always set when a reset occurs.

I tried with no watch dog activated and the result is the same.

What's wrong with it ?

Thanks

Philippe
2 REPLIES 2
Posted on April 08, 2016 at 19:20

Do you clear the flag between tests?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
CAPOSIENA.Philippe
Associate II
Posted on April 11, 2016 at 11:16

Hello,

yes i clear flags by writing bit RMVF in the CSR register after reading the CSR register.

The flag IWDGRSTF is always set at reset even if watch dog is completely disabled.

Philippe