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.

How to wakeup CC2640 in Standby mode

Hi,
I want to ipmlement standby mode in my application (L application running time is 10sec, rest of the time is idle state). and i want to wakeup every2 minute.
to achieve this functionality an not using any power Constraint.

// commented the power constraint. 
// Power_setConstraint(Power_SB_DISALLOW);
// Power_setConstraint(Power_IDLE_PD_DISALLOW);
so I think, the cpu enter in to sleep mode after my application complete ( idle state).

I want to wake up after 2 minute, for that am using one TI RTOS clock instances. which will expire in every two minute.
to wake up from standby mode, Is the clock expiration callback(clockCB – function to be called upon clock expiration) is enough? or Do I need to call any wakeup API in this clock callback?

  • Hello. You do not need to manually change any power constraints. The easiest way to do this is to use the util clock functions as described in section 3.4 of the software developer's guide included with the 2.1 installer.
  • Yes, i am using util clock function. actually my doubt is whether the system wake by the clock expiration or do we need to call any wake API in clock cal back function?

  • When the clock expires the system will wake up (on the RTC interrupt handled by TI RTOS) and your callback will be executed.
    NOte that the callback is done in a SW interrupt context so you should avoid doing too much in that but rather post a semaphore or similar to wake up your application task.

    .:svend