2022-11-14 11:30 PM
2022-11-15 02:38 AM
You don't say which stm32 you're interested in; different ones have different features. Some only have the few words of RAM that are part of the real-time clock retained in lowest-power modes; others have more.
An important issue is that during power-up and power-down, it might happen that the processor behaves abnormally, possibly trying to overwrite the backup SRAM that you spent many microamp-hours protecting when there was no power. To make this less likely, there is generally a special write-enable bit somewhere e.g. the DBP bit in PWR->CR. Unless/until you activate the write-enable, you can't write to this SRAM. Oh and do remember to disable it once you've finished your intentional writes, to minimise the risk of accidental overwriting during during power-up and power-down.
Hope this helps, otherwise please reply explaining further your problem,
Danish
2022-11-15 05:17 AM
Thank you very much, Danish.
The microprocessor I am interested in is the stm32h7 value line.