Skip to main content
DanielGaspar
Associate
September 3, 2022
Solved

STM32 Backup registers have aging effect like FLASH memory?

Hi,

i'm needing to save the date and time on RTC backup register constantly (like once every second) in order to restore the saved time if the MCU was reseted, but im not sure if this registers could be written so constantly.

This topic has been closed for replies.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
September 3, 2022

They are just SRAM, small array, and within the low power domain

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..

5 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
September 3, 2022

They are just SRAM, small array, and within the low power domain

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Piranha
Principal III
September 3, 2022

> in order to restore the saved time if the MCU was reseted

Just use the RTC main counters. RTC can even run from HSE, if that's what you need.

Peter BENSCH
ST Technical Moderator
September 3, 2022

What's the point of reading back the time from some place if you can't know when that information was actually filed?

If the reset takes six hours (extreme example) because of a power failure during the night, for example, the time read back should be completely irrelevant, right?

Regards

/Peter

In order 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.
DanielGaspar
Associate
September 5, 2022

Yes, that's right. I only considered small reset events for this case.

Thanks

Tesla DeLorean
Guru
September 3, 2022

Well it's just a 32-bit counter, basing in on a 1970's epoch doesn't make a whole heap of sense.

But there are things like GPS which has a ~19 year (1024 week) roll over, and some time a useful characteristic of time is that it's doesn't go backward, here at least, so you can keep moving forward an earliest possible time marker so it can better manage whatever 19 or 68 year windows you're within.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..