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.

CC2640: could not find Power_releaseConstraint() function

Part Number: CC2640
Other Parts Discussed in Thread: SYSBIOS

Hello,

I am using simple_peripheral example but i could not find the Power_releaseConstraint() function. I want to check the status of constraints as they are preventing the device to go in standby mode.

Please help me to find it out.

Waiting for your kind reply.

Regards

  • Hi,

    Also you can also help me this trying out this experiment to verify if the device is going to standby or not.
    You can add the following code to get the power constraint counts from the RTOS Power driver:
    #include <ti/sysbios/family/arm/cc26xx/Power.h>
    #include <ti/sysbios/family/arm/cc26xx/PowerCC2650.h>

    extern volatile uint8_t ti_sysbios_family_arm_cc26xx_Power_constraintCounts[];
    volatile uint8_t SB_count = 0xFF;
    volatile uint8_t IDLE_count = 0xFF;
    SB_count = ti_sysbios_family_arm_cc26xx_Power_constraintCounts[2]; // Power_SB_DISALLOW
    IDLE_count = ti_sysbios_family_arm_cc26xx_Power_constraintCounts[3]; // Power_IDLE_PD_DISALLOW

    Essentially, these counts should always be 1 or 0. It should be 0 unless you make the a setConstraint call, then it goes to 1, and cleared when the release is called.
    So if SB_count is one, then it means it is not in sleep mode.

    Best wishes
  • Hi Zahid,

    I will try these at some point. Currently i am doing some thing else.

    Regards


    MAbbas