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.

CC2340R5: How to config to Standby mode and wakeup from RTC in Basic BLE Application

Part Number: CC2340R5

Hello,

I am currently working on CC2340R5 module with SDK version of simplelink_lowpower_f3_sdk_7_40_00_64. Our application requires Basic BLE with device as peripheral, the module has to go from active to Standby and then wakeup from RTC at a particular time. So would you assist with some example code for the same?

Thanks & Regards,

Shashirekha

  • Shashirekha,

    Thanks for reaching out! Take a look at this thread that shares a similar topic to your ask. There are a few different snippets of code which should be useful to what you are attempting to implement. 

    You can find some useful information on how the RTC works and how to interact with it on the register level in the CC23XX Technical Reference Manual in Chapter 12 RTC.

    Best regards,

    Luke

  • Hi Luke,

    Thanks for the response. The thread you shared is GPIO wakeup, which is not the requirement in our application. Our application requires wakeup on RTC at a particular time from standby mode and then start advertising. I have gone through the CC2340 technical manual. The issue is, I do not know where exactly the control goes after the module goes to standby, to write wakeup piece of code. So it would be much helpful if you can share some example code for waking on RTC from standby. Looking forward for your assistance.

    Thanks & Regards,

    Shashirekha

  • Shashirekha,

    Here is another useful thread that discusses a similar function )(although not exact): https://e2e.ti.com/f/1/t/1234806/

    Also reference the RTC in CPU_MMAP (RTC) for register descriptions. 

    In Syscfg there is "LGPTIMER", click "examples" for some example code snippets which could be useful (I recommend going this route).

    You may also find some useful information in the hw_rtc.h file present in the SDK that may be helpful.

    Best regards,

    Luke