AnsweredAssumed Answered

RTC timer is unstable in simulation

Question asked by liu.jianhui on Jul 8, 2016
Latest reply on Jul 13, 2016 by Clive One
Hi Team,

Use RTC as timer to restart STM32F030K6 from stop mode every 10mS, Set/Reset a dedicated I/O to show stop and running duration respectively in main loop like following procedure.  

while(1)
{
          if( RTC_Refresh_TimeOn )     
          {
               RTC_Refresh_TimeOn = 0;
               ...

               HAL_DBGMCU_EnableDBGStopMode();
               HAL_PWR_EnterSTOPMode(PWR_MAINREGULATOR_ON, PWR_SLEEPENTRY_WFI);
               HAL_DBGMCU_DisableDBGStopMode();
               EnablePLL();

               ...
               }

}

After burn the program or simulate the program, always got the I/O output pulse is not period, it is saying RTC is unstable. But when re-power the device, the I/O out wave is period.

Can you give some suggestion?

Best Regards
JHL


 

Outcomes