cancel
Showing results for 
Search instead for 
Did you mean: 

RTC issue when time goes from 23:59:59 to 00:00:00

Hello,

when my rtc time goes to 23:59:59 to 00:00:00 then my program while loop is slow 
ex. some led toggle with 500ms toggle time is incress X2 
so what is issue?

3 REPLIES 3
Saket_Om
ST Employee

Hello @parthkumar_patel 

Could you please share your code.

Did you measure the toggle time with oscilloscope ? 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Saket_Om
TDK
Super User

HAL_Delay doesn’t use RTC. The cause has the be something else in your code. You’ll need to share more to diagnose the issue. Look for an interrupt which may be executing then.

If you feel a post has answered your question, please click "Accept as Solution".
Andrew Neil
Super User

Welcome to the forum.

As others have said, you need to provide more information.

Please see: 

How to write your question to maximize your chances to find a solution

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.