2022-07-13 11:13 AM
In my application I have configured IWDG to start running.
I would like to prevent the IWDG from resetting the MCU while in stop 1 mode for extended period of time.
In the reference manual it says: "Once running, the IWDG cannot be stopped."
But in the RCC section of the manual it says
"The LSI RC can be switched on and off using the LSION bit in the Control/status register (RCC_CSR)."
This would lead me to believe that its possible to turn off the LSI clock after the IWDG has been enabled.
If I try to turn off the LSI clock before entering Stop 1 mode, the MCU ends up being reset by the IWDG.
Is it true that LSI cannot be stopped ig IWDG has been engaged?
Solved! Go to Solution.
2022-07-19 04:47 PM
> There is no option byte to disable IWDG in Stop mode.
Bit 17 IWDG_STOP right between your yellow markers is literally that.
2022-07-13 12:02 PM
Correct, LSI cannot be stopped when the IWDG has been activated. This is also mentioned in RM0454, section 5.2.13:
If the Independent watchdog (IWDG) is started by either hardware option or software access, the LSI oscillator is forced ON and cannot be disabled.
Regards
/Peter
2022-07-13 12:59 PM
Hi Peter
Is there the possibility to freeze the IWDG in STOP clearing the corresponding bit in the option byte?
I cleared it but when in STOP the IWDG is still working and reset my system.
So the question is what's the purpose of these bits in the option byte?
Thanks
2022-07-14 07:14 AM
There is no option byte to disable IWDG in Stop mode.
There is, however, and option byte to disable IWDB in Standby mode. I can confirm that in my application when I enter Standby mode that IWDG does not reset the MCU.
See page 65 of RM0454:
2022-07-19 04:47 PM
> There is no option byte to disable IWDG in Stop mode.
Bit 17 IWDG_STOP right between your yellow markers is literally that.
2022-07-20 04:49 AM
2022-07-20 07:43 AM
Just reread my message carefully and look at your previous screenshot!
2022-07-20 12:08 PM
You right!
2022-07-20 12:09 PM
@Peter BENSCH
Does that mean I can stop the IWDG from restarting my app if I go into stop mode and wait for interrupt (potentially indefinitely?) provided that I set the bit 17 to 0?
2022-07-20 12:41 PM
It should be like that, but other people have problems. Could be related to the WB/WL parts with radio.
https://community.st.com/s/question/0D53W00001fQYksSAG/iwdg-in-stop2
Anyway, as many factors correlate with other low-power modes, you probably want to also read my article: