cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 Backup registers have aging effect like FLASH memory?

DanielGaspar
Associate

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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

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

View solution in original post

5 REPLIES 5

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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Piranha
Chief II

> 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 Employee

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.

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
Up vote any posts that you find helpful, it shows what's working..

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

Thanks