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.

Compiler/TM4C129EKCPDT: Read back value after power on.

Part Number: TM4C129EKCPDT
Other Parts Discussed in Thread: EK-TM4C1294XL

Tool/software: TI C/C++ Compiler

My device have a batter power for  TM4C VBAT pin. I want to write a 32bit value while my program running.If restart device ,I can read back the param value which I write before power off.Thank you!

  • I'm sorry, but I am confused.  What behavior do you expect?  Why do you expect that behavior?  What behavior do you see instead?  Exactly how do you see that behavior?

    Thanks and regards,

    -George

  • thank you . I read datasheet and find HIBDATA register(Hibernation Data),I think it can help me achieve what I want. (Write any data to be retained during hibernation to the HIBDATA register at offsets 0x030-0x06F.) But I don't know how to use (HIBDATA ) function with API(how to init and write/read data to the register ). Can you give me some demo project to help me.thank you very much!
  • I added the following code in my project:

    uint32_t pin_vel;
    uint32_t print_io=0;
    void main()
    {
        pin_vel = 0x00000001;
        HibernateDataSet(&pin_vel,1);
        while(1)
        {
           HibernateDataGet(&print_io,1);
           printf("print_io=%d\r\n",print_io);
           delay(1000);
        }
    }

    result :The  return "print_io" value is 0,not I expect :0x00000001;

    how to get the expect value (0x00000001) ? thank you !

  • Hello,

    I don't see anywhere that you actually initialize the Hibernation module. You need to do that first before you can use API's like DataSet and DataGet. See the TivaWare example for how to do this at [Install Path]\TivaWare_C_Series-2.1.4.178\examples\boards\ek-tm4c1294xl\hibernate