This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

F5659: Is RAM maintained during reset with PMMSWPOR ?

F5659: Is RAM maintained during reset with PMMSWPOR ?  I honestly can't find much information in the docs indicating the conditions when RAM is untrusted.

  • As long as power is stable, RAM contents will remain unchanged. Fixed locations can be used for flags/values that persist across soft resets.

    What you do have to be concerned about is the C runtime initialization sequence overwriting your variables. Generally, to make this work, you need to do a few things:

    1. Fix the location of the variables in RAM.
    2. Mark them as No-Init (varies by toolchain)
    3. Have a way of knowing good data from bad data (such that might occur with a brownout or hard power reset)
  • Yup, already have all that covered. Thanks.

**Attention** This is a public forum