2020-08-17 12:50 AM
Hello everyone,
I have currently two issues with the STM32F411CC STOP mode, it could be great to have some support.
I want to wake up each 1sec by an RTC interrupt. Here is my sequence to enter STOP mode:
These are my 2 issues:
1) the current consumption of my system is ~5mA.
2) after a certain amount of time in STOP mode (~20min), the MCU is reset by IWDG. Note that when I wake up the MCU each 1sec, I also reload the IWDG to a period of 8 seconds ...
Do you have any idea ?
Thanks a lot
2020-08-17 06:26 AM
Resetting IWDG should prevent it from resetting the MCU. Perhaps there is a bug in your code causing this. Hard to provide much useful info. Probe the IWDG during your 1sec wakeups to ensure it's actually being reloaded.
Are you checking the reset bits to ensure the IWDG was the source of the reset?
2020-08-19 01:15 AM
Thank you for you answer,
I think the WDG is well reloaded, but the problem may come from my "wake up" code (basically reloading the WDG and re-enabling the wake up timer). It looks like the code get stuck somewhere here. I will check that.
Yes, I am checking the reset bits and I am sure the reset is triggered by the watchdog.
For the current consumption problem, it was solved (not an issue from the STM).