AnsweredAssumed Answered

Where is STM32 RTC counter value? (Not F1 family)

Question asked by Martijn Jonkers on Dec 8, 2016
Latest reply on Dec 21, 2017 by Clive One



In the scheduling system we use we need a simple 32kHz low power counter value. 

Exactly like in the stm32F1 family is present.

But in any other family, the RTC registers are replaced by Time and Date registers.


I am able to covert the Time register back to a counter value that overflows every 24 hours and add the number of days.

This way I can get a 32 bit counter value running at 32kHz.

But it is an enourmous hassle and it takes a lot more processing time than needed.


Is there a simple way to get a low power 32kHz counter value, so we can use it for our scheduling?

We aim to disable the HSI/HSE/PLL clocks when no tasks needs to run, but keep de Low power LSE/LSI running to wakeup from stop mode.


We do not need any timestamp values like year month day hour minute second.


Thank you!