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.

MSPM0G3507: How can I retain the variable's previous value in the SRAM of the MSPM0G3507 when reset?

Part Number: MSPM0G3507


Tool/software:

Hi experts! Have a nice day!
When I use the linker to allocate a variable in RAM on the MSP430FR, the variable retains its value after a reset or startup because power is still supplied.

I applied the same approach on the MSPM0G3507, but the variable is reinitialized to 0 after a reset. I have tried many methods, but the variable is reinitialized to 0. 

How can I retain the variable's previous value in the SRAM of the MSPM0G3507 when reset?