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.

CCS/MSP430FR5969: Backup data in SRAM to FRAM with MSP430 board.

Part Number: MSP430FR5969
Other Parts Discussed in Thread: TIDM-FRAM-CTPL, MSP-FRAM-UTILITIES,

Tool/software: Code Composer Studio

Hello, 

I asked a question about saving data in specific memory. ( https://e2e.ti.com/support/development_tools/compiler/f/343/p/601090/2212990#2212990 )

I would like to know how to move data from SRAM to FRAM now.

I am trying to backup intermediate data from the application which will be saved in SRAM. 

Is there any documents or example code about it? 

How can I move data from SRAM to FRAM?

Best regards, 

Mirae

  • Hello Mirae,

    Perhaps I am completely missing the point here, but simply copy the SRAM data to a variable declared in FRAM using the PERSISTENT pragma. This is covered in the FRAM Best Practices App Report (SLAA628): www.ti.com/.../slaa628.pdf

    Regards,
    Ryan
  • I would like to move data in a specific address to another address. 

    For example, If there is an temperature sensing application, there will be some sensed data in SRAM.

    The application is sensing temperature and saves sensed data to SRAM, but I want to move it to FRAM when the device detect the power failure.

    I do not know if my understanding is correct,

    Is it right that If I use PERSISTENT pragma, the variable save in FRAM when code compiles?

    That is not what I want to do,  I would like to move data while application is running. 

    Best regards, 

    Mirae

  • Please review the TIDM-FRAM-CTPL resources included in the MSP-FRAM-UTILITIES software package.

    Regards,
    Ryan
  • I really appreciate for the information. 

    This document is what I was looking for. 

    Best regards, 

    Mirae

  • I was looking at the document about CTPL, (tidu885-intelligent system state restoration after power failure with compute through power loss utility)

    I was curious about where and how to estimate the following figures

    figure 4. Ctpl_enterShutdown() execution time at 1MHz

    figure 10. CTPL Enters Shutdown or LPM4.5 with interrupts disabled. 

    figure 11. Wake-up from CTPL shutdown

    Do you  know which location is selected to measure the voltage and current? 

    Which tool is used for the estimation? 

    Best regards, 

    Mirae

  • These tests were performed using the CTPL library programmed on a MSP430FR5969 device and recorded using a DC power supply, oscilloscope, and power analyzer.

    Regards,
    Ryan

**Attention** This is a public forum