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.

cc3200 RTC without simplelink module

I am having problems working with the rtc. I have looked at the power management framework document as wella s both the idle and sensor profile examples. However, my code never returns from the call to cc_rt_set();

My question is the following: Do I have to have the simnplelink module initiated (make a call to sl_Start()) before I can use the rtc?

  • What are you trying to do with the RTC? If you are just wanting to set the time, and then access this time, I have a simple example of its use in a TI-RTOS example that uses a library I have created, you can view it here - github.com/.../startproject_cc3200_ti-rtos - Look at the startproject.c

    I am calling sl_Start before I set the time in the RTC.

    Glenn.
  • Glenn,

    Thank you for the response. ALl I want to do is set the time then be able to read it at a later day. I have done this with the calls to sl_DevSet() and then sl_DevGet(). However, these require the simplelink module to be started (a call to sl_Start()). Our project is power critical so I am trying to save power by not having the simplelink module on the whole time. That is why I was wondering if there was a way to use the RTC without having to call sl_Start() before. It seems all the API is written assuming sl_Start() would be called first.
  • I believe I figured it out. You must call set up the hw timer object and then call cc_rtc_init(). Then set the starting time calling cc_rtc_Set(). Lastly to read you call cc_rtc_get(). Then read the sec and nanosec values of your timer object which will contain the rtc values. This means that the time will be off by a sec or two but if that kind of resolution is not needed this will work.