Skip to main content
Explorer II
July 26, 2023
Question

Data retention of the internal SRAM in the STM32F769NI.

  • July 26, 2023
  • 1 reply
  • 981 views

Hi, I have a question about the internal SRAM1 in the STM32F769NI.
Do I need to do anything special to retain the data in SRAM1 on reset?
If data retention is established by default, do you know how it works?

    This topic has been closed for replies.

    1 reply

    Super User
    July 26, 2023

    Unless there is an explicit description in the Reference Manual (RM) of any portion of RAM being cleared upon reset, data are preserved as long as power supply (VDD) is uninterrupted.

    However, the C standard requires the translator (compiler and its suite, part of toolchain) to write to initialized variables, and to write zero to uninitialized global and static variables, upon program startup. This happens in the startup code, which is toolchain-dependent.

    JW

    TNAuthor
    Explorer II
    July 28, 2023

    Thank you for your reply and advice.
    I would like to review startup process.